/* Theme: CRT. The whole look of the site pages lives here: colour, type, spacing, the CRT frame, textures and motion.
   assets/site.css is structure only and reads nothing but these tokens and the skin hooks below.
   A reskin is a new assets/theme-<name>.css with the same tokens (and its own skin block), then one <link> swapped
   in scripts/build-site.mjs (THEME). The CRT is a frame: scanlines and glow sit on the chrome (the top bar, the thumb
   bar, the bezel around the terminal, the footer). Listings, guides and body text never get a filter over them. */
@font-face{font-family:'Archivo';src:url('/assets/fonts/archivo.woff2') format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/jetbrains-mono.woff2') format('woff2');font-weight:100 800;font-display:swap}

:root{
  /* colour */
  --c-bg:#0C0C0C;          /* ink */
  --c-surface:#121212;
  --c-raise:#181818;
  --c-fg:#F3F0E8;          /* paper */
  --c-body:#C9C6BE;
  --c-muted:#9A978F;
  --c-dim:#7A776F;
  --c-line:#242424;
  --c-edge:#2E2E2E;
  --c-accent:#D4FF00;      /* acid, the same yellow the terminal uses */
  --c-on-accent:#0C0C0C;
  --c-focus:#D4FF00;
  /* type */
  --f-display:'Archivo',system-ui,sans-serif;
  --f-body:'Archivo',system-ui,sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --fw-display:900;--fx-display:125%;--tt-display:uppercase;--ls-display:-.02em;
  --fs-h1:clamp(30px,6.4vw,56px);--fs-h2:clamp(18px,2.4vw,22px);--fs-body:16px;--fs-small:14px;--fs-tiny:12px;--lh-body:1.55;
  --f-label:var(--f-mono);--fs-label:12px;--tt-label:lowercase;
  /* spacing and size */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--sp-8:72px;
  --gutter:clamp(16px,4vw,40px);--maxw:1160px;--measure:62ch;
  --top-h:52px;--tab-h:60px;--tap:44px;
  --r-frame:18px;--r-card:2px;--bw:1px;
  /* motion */
  --t-fast:.12s;--t-med:.22s;--ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-reduced-motion:reduce){:root{--t-fast:0s;--t-med:0s}}

/* ---------- skin: the CRT frame. Chrome only. ---------- */
/* Scanlines and a faint phosphor glow on the bars. Content never sits under these layers. */
.s-top,.s-tab{background-color:rgba(12,12,12,.94);background-image:repeating-linear-gradient(to bottom,rgba(243,240,232,.035) 0 1px,transparent 1px 3px)}
.s-top{border-bottom:var(--bw) solid var(--c-line);box-shadow:0 1px 0 rgba(212,255,0,.05),0 8px 24px rgba(0,0,0,.5)}
.s-tab{border-top:var(--bw) solid var(--c-edge);box-shadow:0 -1px 0 rgba(212,255,0,.06)}
@supports (backdrop-filter:blur(1px)){.s-top,.s-tab{backdrop-filter:blur(8px)}}
.s-brand-mark{color:var(--c-accent);text-shadow:0 0 10px rgba(212,255,0,.45)}
.s-nav a[aria-current=page],.s-tab a[aria-current=page],.s-mini a[aria-current=page]{color:var(--c-accent);text-shadow:0 0 8px rgba(212,255,0,.35)}
.s-nav a[aria-current=page]::before{background:var(--c-accent);box-shadow:0 0 6px rgba(212,255,0,.8)}
.s-tab a[aria-current=page]{box-shadow:inset 0 2px 0 var(--c-accent)}

/* The bezel around the home terminal: the set's plastic edge, scanlines on the edge only, glow outside it.
   The screen inside is opaque, so nothing here draws over the terminal's text. */
.s-crt{background-color:#161616;background-image:repeating-linear-gradient(to bottom,rgba(243,240,232,.04) 0 1px,transparent 1px 3px),radial-gradient(120% 90% at 50% 0,#202020,#111 70%);
  border:var(--bw) solid var(--c-edge);border-radius:var(--r-frame);box-shadow:0 0 0 1px #050505,0 0 60px rgba(212,255,0,.07),0 24px 60px rgba(0,0,0,.6),inset 0 1px 0 rgba(243,240,232,.06)}
.s-crt .eh{border-radius:calc(var(--r-frame) - 8px);box-shadow:inset 0 0 0 1px #050505}
.s-crt-lbl{color:var(--c-dim)}
.s-crt-led{background:var(--c-accent);box-shadow:0 0 8px rgba(212,255,0,.8)}

/* Labels, tags and the little "static:" lines wear the terminal type. */
.s-kicker,.s-tag,.s-say,.s-meta,.s-lbl{font-family:var(--f-mono)}
.s-say{color:var(--c-accent)}
.s-tag{border:var(--bw) solid var(--c-edge);color:var(--c-muted)}
.s-tag[data-k=live]{color:var(--c-on-accent);background:var(--c-accent);border-color:var(--c-accent)}
.s-tag[data-k=soon]{color:var(--c-fg);border-style:dashed}
.s-tag[data-k=free]{color:var(--c-accent);border-color:var(--c-accent)}

/* Cards: flat, sharp, a hairline. Hover lifts the edge to acid. No texture on content. */
.s-card,.s-row,.s-door{background:var(--c-surface);border:var(--bw) solid var(--c-line);border-radius:var(--r-card);transition:border-color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
a.s-card:hover,a.s-door:hover,.s-row:hover,.s-card:focus-within,.s-door:focus-visible{border-color:var(--c-accent);background:var(--c-raise)}
.s-door:hover .s-door-go,.s-door:focus-visible .s-door-go{color:var(--c-accent)}
.s-band{background:var(--c-raise);border-left:3px solid var(--c-accent)}
.s-soon{border:var(--bw) dashed var(--c-edge);background:var(--c-bg)}

/* The on-air light: the one thing that moves on its own, and not at all under reduced motion. */
.s-live-dot{background:var(--c-accent);box-shadow:0 0 10px rgba(212,255,0,.9);animation:s-pulse 2.4s var(--ease) infinite}
@keyframes s-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.s-live-dot{animation:none}}

/* Buttons and fields */
.s-btn{background:var(--c-accent);color:var(--c-on-accent);font-family:var(--f-display);font-weight:var(--fw-display);font-stretch:var(--fx-display);text-transform:uppercase;letter-spacing:.02em}
.s-btn:hover{background:var(--c-fg)}
.s-btn.alt{background:transparent;color:var(--c-fg);border:var(--bw) solid var(--c-edge)}
.s-btn.alt:hover,.s-btn.alt[aria-pressed=true]{border-color:var(--c-accent);color:var(--c-accent)}
.s-field{background:var(--c-bg);color:var(--c-fg);border:1.5px solid var(--c-edge)}
.s-field:focus{border-color:var(--c-accent)}
