@font-face {
  font-family: Zalando;
  src: url("/assets/fonts/zalando-expanded.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("/assets/fonts/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0d10;
  --panel: #11171a;
  --bg-panel: var(--panel);
  --raised: #1b2327;
  --text: #f1f2ef;
  --body-ink: #d2dadd;
  --text-muted: #b4c0c4;
  --paper: var(--text);
  --accent: #ffab76;
  --accent-soft: #ffcdab;
  --signal: var(--accent);
  --border: #344046;
  --input-edge: #718088;
  --mono: Space, Consolas, monospace;
  --display: Zalando, Arial, sans-serif;
  --serif: var(--sans);
  --page-width: 1660px;
  --page-gutter: clamp(20px, 5.3vw, 85px);
}
html { scroll-padding-top: 4.7rem; }
body { background: var(--bg); color: var(--text); line-height: 1.65; }
::selection { background: var(--accent); color: #1a100b; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { background: var(--accent); color: #1a100b; }
.header-inner, .folio-wrap, .archive-wrap.studio-page {
  width: min(100%, var(--page-width));
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.site-header, .site-nav, .site-footer { background: var(--bg); border-color: var(--border); }
.header-inner { min-height: 66px; }
.site-logo, .foot-inner strong {
  color: var(--text);
  font: 800 clamp(15px, 1.45vw, 20px)/1 var(--display);
  letter-spacing: -.05em;
}
.site-logo img { width: 28px; height: 28px; flex: none; }
.site-nav a { color: var(--text); font: 400 12px/1.5 var(--mono); }
.site-logo:hover, .site-nav a:hover, .site-nav a[aria-current=page] { color: var(--accent); }
.nav-toggle { border-color: var(--input-edge); color: var(--text); }
.site-footer { color: var(--text-muted); margin-top: 1rem; }
.foot-inner strong { font-size: 1.12rem; }
.foot-inner nav a { color: var(--text-muted); }
.foot-inner nav a:hover { color: var(--accent); }

.folio-wrap h1, .studio-page h1, .section .wrap h1 {
  font: 800 clamp(2.3rem, 4.6vw, 4.85rem)/1.03 var(--display);
  letter-spacing: -.065em;
  color: var(--text);
  margin-bottom: .65rem;
}
.folio-wrap h1 em { color: var(--accent); font: inherit; }
.folio-wrap h2, .section .wrap h2 {
  font: 650 clamp(1.45rem, 2.35vw, 2.15rem)/1.22 var(--sans);
  letter-spacing: -.035em;
}
.folio-wrap h3 { font: 650 clamp(1.12rem, 1.5vw, 1.38rem)/1.3 var(--sans); letter-spacing: -.015em; }
.page-heading, .section-first, .studio-page { position: relative; isolation: isolate; }
.page-heading { padding-top: clamp(2.5rem, 5vw, 5.1rem); }
.page-heading > .eyebrow, .studio-page > .overline, .station-ui .intro .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  font: 400 .72rem/1.55 var(--mono);
  letter-spacing: .1em;
}
.page-heading > .eyebrow::before, .studio-page > .overline::before, .station-ui .intro .eyebrow::before {
  content: "";
  width: 1.65rem;
  height: 2px;
  background: currentColor;
  flex: none;
}
/* A quiet crop of the home image leaves the copy and source navigation in the foreground. */
@media(min-width: 54rem) {
  .page-heading::before, .section-first::before, .studio-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: 0;
    right: 0;
    width: min(39%, 35rem);
    height: min(14rem, 100%);
    background: url("/assets/img/optical-jupiter.webp") no-repeat right 38% / min(100%, 34rem) auto;
    mask-image: linear-gradient(to right, transparent 1%, #000 63%), linear-gradient(to bottom, #000 10%, transparent 96%);
    mask-composite: intersect;
    opacity: .43;
  }
  .section-first::before { right: var(--page-gutter); opacity: .28; }
  .studio-page::before { right: var(--page-gutter); }
  .page-heading > h1, .studio-page > h1 { max-width: 18ch; }
}
.folio-wrap .deck, .studio-page .archive-lead, .studio-page .help, .studio-monitor figcaption,
.film-tile p, .case-story p, .case-story li { color: var(--body-ink); }
.read-index { margin-block: 1.4rem 0; border-color: var(--border); gap: .35rem 1.6rem; }
.read-index a { color: var(--text); }
.read-index strong, .source-list small, .film-tile small, .eyebrow { color: var(--text-muted); }
.folio-wrap .reading-spread, .folio-wrap .guide-grid { column-gap: clamp(25px, 5vw, 85px); }
.folio-wrap p, .section .wrap p { max-width: 67ch; }
.section .wrap-narrow { max-width: 48rem; }
.section .wrap-narrow h1 { margin-block: 0 1.5rem; }
.section .wrap-narrow h1::before {
  content: ""; display: block; background: var(--accent); width: 2rem; height: 2px; margin-bottom: 1rem;
}
.section .wrap-narrow h2 { margin: 1.8rem 0 .55rem; }
.section .wrap-narrow p, .section .wrap-narrow li { color: var(--body-ink); }
.section .wrap-narrow .hero-meta { font: .78rem/1.55 var(--mono); color: var(--text-muted); }
.tile-action strong, .file-pair strong { font-family: var(--sans); font-weight: 650; }
.story-track span, .guide-grid dd { color: var(--text-muted); }
.crew-row summary, .faq-item summary { min-height: 44px; }
.folio-wrap .ink-button, .studio-page .action.fill {
  color: #1a100b; background: var(--accent); border-radius: 0;
}
.folio-wrap .ink-button:hover, .studio-page .action.fill:hover { background: var(--accent-soft); color: #170f0b; }
.folio-wrap .thumb, .source-print > a { background: var(--panel); border: 1px solid var(--border); }
.folio-wrap .thumb i { color: var(--text); background: var(--bg); border-color: var(--input-edge); }
.folio-wrap .tile-action:hover strong, .folio-wrap .tile-action:focus-visible strong { color: var(--accent); }
.edition-note { font: 11px/1.6 var(--mono); color: var(--text-muted); margin: .8rem 0; }
.edition-note a { color: inherit; }

.submission input:not([type=checkbox]), .submission select, .submission textarea,
.studio-grid input, .studio-grid textarea, .studio-grid select {
  color: var(--text); background: var(--bg); border: 1px solid var(--input-edge);
  color-scheme: dark; border-radius: 0;
}
input, textarea, select { accent-color: var(--accent); }
.studio-grid fieldset {
  background: var(--panel); border: 1px solid var(--border); border-top: 2px solid var(--accent);
  border-radius: 0; padding: clamp(1rem, 2.2vw, 2rem);
}
.studio-grid legend { color: var(--accent); font: .78rem/1.6 var(--mono); }
.studio-page .action.outline, .transport-cues a, .flip-paper {
  background: var(--panel); border: 1px solid var(--input-edge); color: var(--text); border-radius: 0;
}
.studio-page .action.outline:hover, .transport-cues a:hover, .flip-paper:hover { background: var(--raised); border-color: var(--accent); color: var(--accent-soft); }
.studio-page .text-action { color: var(--accent); }
.studio-grid .studio-monitor canvas { background: var(--bg); border: 1px solid var(--input-edge); border-radius: 0; }
.submission form { border-top: 1px solid var(--border); }
.submission .form-pair > *, .studio-grid > * { min-width: 0; }

.record-spread {
  background: var(--panel); border: 1px solid var(--border); border-radius: 0;
  padding: clamp(14px, 2vw, 30px); gap: clamp(17px, 3vw, 42px);
}
.record-spread aside {
  align-self: stretch; background: var(--bg); border-top: 2px solid var(--accent);
  padding: clamp(13px, 2vw, 24px);
}
.record-spread video { border: 1px solid var(--border); border-radius: 0; }
.record-id { color: var(--accent); }
.record-console .page-heading .deck { max-width: 61ch; }
.record-console .lexicon > div { grid-template-columns: minmax(80px, .7fr) 1.3fr; }
.transcript li:target, .transcript li[data-current] { background: var(--raised); }
.record-console .transcript li > a { border: 1px solid var(--input-edge); padding: .22rem .45rem; text-decoration: none; color: var(--accent); font-size: .83rem; }
.record-console .transcript li > a:hover { border-color: var(--accent); }
.transport-cues { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0; }
.transport-cues a, .flip-paper { padding: .4rem .7rem; text-decoration: none; font: 12px/1.5 var(--mono); cursor: pointer; }
.flip-paper { margin: .65rem 0 0; }
/* The fictional carbon duplicate is a physical exhibit on a dark reading desk. */
.paper-exhibit { color: #302b20; background: #e0d4b5; }
.paper-exhibit figcaption { color: #494131; }
.paper-exhibit a { color: #4a3824; font-weight: 600; text-underline-offset: 3px; }
.paper-exhibit .paper-notes { display: flex; gap: 1rem; align-items: baseline; }
.station-fallback { padding: 1rem; background: var(--panel); }
.recording-directory { margin: 1.5rem auto; }
.recording-directory strong { display: block; }
.record-clock { font: 13px var(--mono); color: var(--text-muted); white-space: nowrap; }
.guide-grid { line-height: 1.67; }

.guide-note { max-width: 68ch; line-height: 1.65; margin: 0 0 1.1rem; }
.manifest + .guide-note { margin-top: 1rem; }
#versions .sec-head { flex-wrap: wrap; gap: 1rem; }
.folio-wrap #versions .ink-button { padding: .7rem 1rem; align-self: center; text-decoration: none; }
.fiction-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--border); }
.fiction-link span, .survivor-table small { color: var(--text-muted); }
.survivor-table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 1.2rem 0; font-size: 1rem; line-height: 1.55; text-align: left; }
.survivor-table caption { text-align: left; font-weight: 650; margin-bottom: .75rem; }
.survivor-table th, .survivor-table td { padding: .75rem .8rem; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--border); }
.survivor-table thead th { background: var(--raised); color: var(--text); }
.survivor-table th:first-child { width: 37%; }
.survivor-table small { display: block; font-size: .8rem; font-weight: 400; }
.game-notes { padding: .6rem 0; }
.game-notes summary { cursor: pointer; color: var(--accent); font-weight: 650; padding: .4rem 0; }
.reaction-notes figure { margin: 0 0 1.5rem; }
.reaction-notes blockquote { margin: 0 0 .4rem; border-left: 2px solid var(--accent); padding-left: .8rem; font-size: 1.2rem; }
.reaction-notes figcaption { font-size: .95rem; line-height: 1.55; }
.reaction-followup { grid-column: 1/-1; }
.fan-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.fan-works article { border-top: 1px solid var(--input-edge); padding-top: 1rem; }
.fan-works h3 { margin-block: .4rem; }
.fan-works article p:not(.eyebrow) { color: var(--body-ink); line-height: 1.6; margin-bottom: .75rem; }
.fan-tip { margin: 1.3rem 0 0; }

@media(max-width: 47.99rem) {
  .header-inner { min-height: 54px; }
  .site-logo img { width: 24px; height: 24px; }
  .site-nav { background: var(--panel); }
  .page-heading { padding-top: 1.85rem; }
  .folio-wrap h1, .studio-page h1, .section .wrap h1 { font-size: clamp(2.05rem, 8vw, 3.3rem); }
  .section .wrap-narrow { padding-inline: var(--page-gutter); }
  .record-spread, .fan-works { grid-template-columns: 1fr; }
  .read-index { gap: .25rem 1rem; }
  .record-spread aside { padding: 12px; }
  .source-print small, .thumb { overflow-wrap: anywhere; }
}
@media(max-width: 36rem) {
  .survivor-table { font-size: .9rem; }
  .survivor-table td, .survivor-table th { padding: .65rem .4rem; }
}
