:root {
    color-scheme: dark;
    --ink: #eff3eb;
    --paper: #101718;
    --rule: #394849;
    --lime: #d0ff71;
    --mono: ui-monospace, 'Courier New', monospace;
    --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { background: var(--paper); color: var(--ink); margin: 0; font: 16px/1.5 'Helvetica Neue', Arial, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.width { width: min(1344px, 90%); margin-inline: auto; }
.skip { color: var(--paper); position: absolute; z-index: 3; background: var(--lime); padding: 12px; transform: translateY(-110%); }
.skip:focus { transform: none; }
.mast, .hero { color: #f6f5e9; background-color: #131e20; }
.mast { border-bottom: 1px solid #40504a; }
.mast-inner, .mast nav, .brand, .foot, .foot div, .section-line, .caption, .card-meta, .plates { display: flex; align-items: center; }
.mast-inner, .foot, .section-line, .caption, .card-meta { justify-content: space-between; }
.mast-inner { min-height: 70px; }
.brand, .mast nav a, .signature, .card, .hero-plate { text-decoration: none; }
.brand { gap: 10px; font-weight: 730; letter-spacing: -.035em; font-size: 20px; }
.brand b, .signature { color: var(--lime); font: bold 37px/1 var(--serif); }
.mast nav, .foot div { gap: clamp(16px, 3vw, 48px); }
.mast nav a { padding-block: 12px; font-size: 14px; }
.mast nav a:hover, .foot a:hover { text-decoration: underline; }
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 2%; min-height: min(560px, 48vw); }
.intro { padding-block: 54px; position: relative; z-index: 1; }
.eyebrow, .count, .card-meta, .filemeta, dt, .caption, .ledger small, .foot div { font: 12px/1.45 var(--mono); }
.eyebrow, .card-meta { text-transform: uppercase; letter-spacing: .09em; }
.eyebrow { margin: 0 0 14px; font-weight: bold; }
.intro .eyebrow { color: var(--lime); }
.eyebrow i { display: inline-block; width: .65em; height: .65em; margin-right: .45em; background: currentColor; border-radius: 50%; }
.intro h1, .display, .section-line h2, .ledger h2 { font: normal clamp(52px, 6.9vw, 108px)/.98 var(--serif); letter-spacing: -.067em; margin: 0; }
.intro h1 span { color: var(--lime); }
.lead { font: italic clamp(23px, 2.25vw, 37px)/1.15 var(--serif); margin: 14px 0; }
.summary { color: #c6d1c8; max-width: 45ch; margin: 18px 0 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 19px; min-height: 46px; background: var(--ink); color: var(--paper); font: 600 14px/1.3 Arial, sans-serif; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.primary { background: var(--lime); border-color: var(--lime); color: var(--paper); }
.button:hover { box-shadow: inset 0 0 0 2px currentColor; }
.lime { color: var(--paper); background: var(--lime); border-color: var(--lime); }
.hero-plate, .plate, .thumb { position: relative; isolation: isolate; overflow: hidden; }
.hero-plate, .plate { background: radial-gradient(ellipse at 52% 55%, #3d524b, #1e302e 66%, #172927); }
.hero-plate:before, .plate:before, .thumb:before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg, #a8c3b616 1px, transparent 1px), linear-gradient(#a8c3b616 1px, transparent 1px); background-size: 32px 32px; }
.hero-plate { align-self: stretch; display: grid; align-items: center; border-inline: 1px solid #54706355; }
.hero-plate img { display: block; width: 99%; max-height: 490px; object-fit: contain; }
.caption { position: absolute; inset: auto 5% 4%; gap: 10px; color: #eef3e9; }
.caption b { display: block; font: 600 15px/1.35 Arial,sans-serif; }
.caption > span:last-child { border: 1px solid #b2c4b4; border-radius: 50%; padding: 6px 10px; }
.collection, .record, .ledger { padding-bottom: clamp(55px, 7vw, 100px); }
.collection { padding-top: clamp(40px, 5vw, 80px); }
.section-line { align-items: end; gap: 16px; }
.section-line h2, .ledger h2 { font-size: clamp(38px, 4.8vw, 72px); }
.underlink, .back { font-weight: 650; font-size: 14px; }
.filters { margin: 26px 0 22px; border-block: 1px solid var(--rule); padding: 15px 0; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filters label { display: grid; gap: 4px; font: bold 12px/1.3 var(--mono); }
.filters select, .filters input { font: 15px/1.3 Arial,sans-serif; border: 1px solid #60726f; border-radius: 0; background: #192527; color: var(--ink); padding: 9px 12px; min-height: 44px; }
.filters .count { margin-left: auto; align-self: center; }
.filters .underlink { align-self: center; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 38px 18px; }
.thumb { background: radial-gradient(ellipse at 50% 52%, #2a3c3e, #1a282a 75%); border: 1px solid var(--rule); aspect-ratio: 1.35; display: grid; place-items: center; }
.thumb:before { background-image: linear-gradient(90deg, #c9e2de0a 1px, transparent 1px),linear-gradient(#c9e2de0a 1px, transparent 1px); background-size: 20px 20px; }
.thumb img { width: 90%; height: 100%; position: absolute; object-fit: contain; }
.card:hover .thumb, .card:focus-visible .thumb { border-color: var(--lime); }
.card-meta { margin-block: 11px 4px; color: #b5c4bd; font-size: 10px; }
.card h3 { font: 600 clamp(17px,1.4vw,23px)/1.15 Arial,sans-serif; letter-spacing: -.03em; margin: 0; }
.card h3 span { font-size: .7em; }
.empty { grid-column: 1/-1; }
.foot { border-top: 1px solid var(--rule); gap: 16px; flex-wrap: wrap; padding-block: 25px; }
.signature { color: var(--ink); }
.signature span { font: 700 15px/1 Arial,sans-serif; vertical-align: middle; }
.foot div { flex-wrap: wrap; }
.back { display: inline-block; margin-block: 28px; }
.record-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(24px,5vw,86px); }
.plate { aspect-ratio: 1/1; }
.plate img { width: 100%; height: 100%; object-fit: contain; }
.plates { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plates a { text-decoration: none; border: 1px solid var(--rule); padding: 10px 16px; }
.plates a[aria-current] { color: var(--lime); border-color: var(--lime); background: #203127; }
.display { font-size: clamp(44px,5vw,78px); overflow-wrap: break-word; }
.description { max-width: 62ch; font-size: 18px; }
.specs { margin: 24px 0; }
.specs div { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
dd { margin: 0; }
.filemeta { color: #b1c2bb; }
.verify { border-top: 1px solid var(--rule); padding: 14px 0; }
.verify summary { cursor: pointer; font-weight: bold; }
.verify code { overflow-wrap: anywhere; }
.ledger-group { margin-top: 42px; }
.ledger small { color: #b1c2bb; margin-inline-start: 5px; }
.ledger table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.ledger td, .ledger th { text-align: left; border-block-start: 1px solid var(--rule); padding: 10px 8px; }
.ledger th { font-family: var(--mono); }
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .intro h1 { font-size: clamp(50px,7vw,72px); }
}
@media (max-width: 700px) {
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .intro { padding: 30px 0 24px; }
    .intro h1 { font-size: clamp(48px,12vw,80px); }
    .hero-plate { aspect-ratio: 1.9; margin-bottom: 20px; }
    .hero-plate img { height: 125%; width: 100%; position: absolute; top: -12%; }
    .caption { inset: auto 3% 5%; }
    .record-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
    .filters input { width: 100%; }
    .filters label:first-child { flex: 1 0 100%; }
    .section-line { align-items: start; flex-wrap: wrap; }
    .section-line .eyebrow { margin-bottom: 6px; }
    .mast-inner { min-height: 54px; }
    .brand { font-size: 16px; gap: 6px; }
    .brand b { font-size: 30px; }
    .ledger td { vertical-align: top; }
}
@media(max-width: 380px) {
    .width { width: 92%; }
    .card-meta { align-items: start; flex-direction: column; }
    .filters .count { margin-left: 0; }
}
.brief { max-width: 54ch; margin-top: 4px; color: #c0cbc5; font-size: 14px; }

.stage { border: 1px solid var(--rule); }
.stage .fallback, .stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage model-viewer { display: block; opacity: 0; pointer-events: none; --poster-color: transparent; }
.ready .stage model-viewer { opacity: 1; pointer-events: auto; }
.ready .stage .fallback { opacity: 0; }
.stage .fallback { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .stage .fallback, .stage model-viewer { transition: opacity 140ms ease-out; }
}
.viewer-status { position: absolute; top: 12px; left: 12px; right: auto; max-width: calc(100% - 24px); margin: 0; padding: 6px 10px; border: 1px solid var(--rule); background: #101718ed; color: var(--ink); font: 12px/1.45 var(--mono); pointer-events: none; }
.viewer-status:empty { display: none; }
.viewer-controls { border: 0; margin: 0; min-inline-size: 0; padding-inline: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-block: 10px 4px; }
.viewer.unavailable .viewer-controls, .viewer.unavailable .viewer-help { visibility: hidden; }
.viewer-controls:disabled button, .viewer-controls:disabled select { opacity: .55; cursor: wait; }
.viewer-controls button, .viewer-controls select { min-height: 44px; padding: 7px 13px; border: 1px solid var(--rule); background: #1b2829; color: var(--ink); font: 600 14px/1.3 Arial,sans-serif; cursor: pointer; }
.viewer-controls button[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); }
.viewer-controls button:hover, .viewer-controls select:hover, .plates a:hover { border-color: #a9c0ae; }
.viewer-controls label, .viewer-help { color: #bbc9c2; font: 13px/1.45 var(--mono); }
.viewer-controls label { margin-inline-start: auto; }
.viewer-help { margin: 8px 0 0; }
.plates { border-top: 1px solid var(--rule); padding-top: 12px; }
@media(max-width: 450px) {
    .viewer-controls label { margin-inline-start: 0; }
}

/* HOLO-linked releases are deliberately distinct from the completed source catalog. */
.workbench { border-top: 1px solid var(--rule); padding-block: 56px 86px; }
.workbench .section-line h2 { font: normal clamp(38px, 4.8vw, 72px)/1 var(--serif); letter-spacing: -.055em; margin: 0; }
.workbench-counter, .workbench-versions { font: 12px/1.4 var(--mono); color: var(--lime); }
.workbench-intro { max-width: 67ch; color: #c0ccc4; }
.workbench-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.workbench-card { display: grid; grid-template-columns: 42% 1fr; min-width: 0; gap: 0; border: 1px solid var(--rule); text-decoration: none; }
.workbench-card:hover, .workbench-card:focus-visible { border-color: var(--lime); }
.workbench-art { background: #102428; display: grid; place-items: center; }
.workbench-art img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; }
.workbench-copy { padding: clamp(16px,2.5vw,30px); align-self: center; }
.workbench-copy h3 { font: 600 clamp(22px,2.3vw,32px)/1.1 Arial,sans-serif; margin: 0 0 12px; }
.workbench-copy h3 span { font-size: .72em; }
.workbench-copy p:not(.eyebrow) { font-size: 14px; color: #c5d0c9; }
.workbench-detail .display { margin-bottom: 18px; }
.version-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 28px; }
.version-head h2 { margin: 0; font-size: 18px; }
.version-head span { font: 12px var(--mono); color: #c0cec5; }
.version-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 24px; }
.version-choices a { display: grid; gap: 5px; border: 1px solid var(--rule); padding: 12px; text-decoration: none; }
.version-choices a[aria-current] { border-color: var(--lime); color: var(--lime); background: #1c3028; }
.version-choices small { font: 12px var(--mono); color: #a5b7b0; }
@media (max-width: 1000px) { .workbench-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .workbench-card { grid-template-columns: 1fr; } .workbench-art img { max-height: 240px; object-fit: contain; } .version-choices { grid-template-columns: 1fr 1fr; } .mast nav { gap: 12px; } }

/* Editorial front page: keep recently published work ahead of the verified library. */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.edition-backlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; }
@media (max-width: 600px) { .mast-inner { flex-wrap: wrap; padding-block: .45rem; }.mast nav { flex-wrap: wrap; } }
.button.ghost { background: transparent; color: var(--ink); border-color: #78918b; }
.button.ghost:hover { border-color: var(--lime); color: var(--lime); }
.hero-plate-latest img { object-fit: contain; max-height: 490px; padding: clamp(8px, 2vw, 20px); }
.hero-plate-latest .caption { background: #101718ed; border: 1px solid #405b51; padding: 12px 14px; inset: auto 3% 4%; }
.workbench { border-top: none; border-bottom: 1px solid var(--rule); padding-top: clamp(40px,5vw,80px); }
@media (max-width: 700px) {
    .hero-plate-latest img { position: static; height: 100%; max-height: none; object-fit: contain; }
    .hero-plate-latest .caption { inset: auto 2% 3%; padding: 8px 10px; }
    .hero-actions .button { flex: 1 1 180px; }
}
