/* Design tokens and base. The ONLY file that defines colours, sizes, spacing, radii, elevation and motion: everything else consumes these.
   Dark theme only. Contrast of every text/background pair is computed in DESIGN.md. */
:root {
  color-scheme: dark;

  /* colour roles: surfaces (cool blue-slate, three levels), borders, text, accent, semantics */
  --bg:#0a0f1a;              /* page: deep blue-slate */
  --bg-lift:#111b30;         /* top of the page: a faint lift so the field is lit from above, not flat */
  --surface:#121824;         /* panels, cards, drawer */
  --surface-2:#1a2230;       /* inputs, raised, hover */
  --surface-3:#242e40;       /* pressed, user bubble, progress track */
  --border:#263042;          /* dividers, decorative edges */
  --border-strong:#66748b;   /* boundaries that carry meaning (controls, inputs): >= 3:1 */
  --text:#e9edf5;            /* primary */
  --text-2:#aab4c5;          /* secondary */
  --text-3:#919eb4;          /* tertiary: hints, timestamps */
  --accent:#f88000;          /* brand orange, from the logo: primary action, selected, focus, progress */
  --accent-hover:#ff9430;
  --accent-press:#e27400;
  --accent-soft:#2b2118;     /* selected background */
  --accent-hi:#ffa94d;       /* top edge highlight of the primary button */
  --on-accent:#0a0f1a;       /* text on the accent: dark ink, white would be 2.5:1 */
  --danger:#f0787a;          /* text and borders */
  --danger-soft:#2a1519;
  --danger-solid:#d6363c;    /* END CALL and Stop: the only solid red on screen; white on it is >= 4.5:1 */
  --danger-solid-hover:#cc3238;
  --danger-solid-press:#b02a30;
  --on-danger:#ffffff;
  --ctl:#2a3548;             /* round call buttons (mic, speaker) */
  --ctl-hover:#344259;
  --ctl-press:#222b3b;
  --ctl-on:#e9edf5;          /* pressed state (mic muted, speaker off): inverted light fill, dark icon; not red */
  --ctl-on-ink:#0a0f1a;
  --hl:rgba(255,255,255,.10);   /* 1px top-edge highlight on raised controls */
  --hl-strong:rgba(255,255,255,.22);   /* same, on the saturated red */
  --shadow-accent-press:0 4px 12px rgba(248,128,0,.2);
  --ok:#3dc58b;
  --warn:#ebb447;
  --warn-soft:#2a2213;
  /* orb voices: four tones of ONE hue each, deep (edge) / mid (body) / light (clouds, core) / rim (rim light). Never a rainbow. */
  --voice-a-0:#d4600a; --voice-a:#f7891a; --voice-a-2:#ffbd66; --voice-a-3:#ffe0c2;   /* assistant, host: warm orange -> amber, peach rim */
  --voice-b-0:#3568d0; --voice-b:#5a9cf0; --voice-b-2:#9ccfff; --voice-b-3:#e0f0ff;   /* guest, expert: ice blue, same construction */
  --scrim:rgba(5,8,13,.6);
  --fade-mask:linear-gradient(to right, #000 calc(100% - 32px), transparent);   /* alpha only: scroll affordance on horizontal rows */
  --shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px -8px rgba(0,0,0,.6);   /* overlays only: sheet, dialog */
  --shadow-ctl:0 1px 2px rgba(0,0,0,.3), 0 8px 20px -6px rgba(0,0,0,.45);          /* raised round buttons: a tight contact shadow plus a soft diffuse one */
  --shadow-ctl-hover:0 2px 4px rgba(0,0,0,.3), 0 14px 28px -8px rgba(0,0,0,.5);
  --shadow-accent:0 1px 2px rgba(0,0,0,.25), 0 10px 28px -8px rgba(248,128,0,.55);   /* primary button: soft orange bloom */
  --shadow-accent-hover:0 2px 4px rgba(0,0,0,.25), 0 16px 36px -10px rgba(248,128,0,.65);
  --shadow-danger:0 1px 2px rgba(0,0,0,.25), 0 10px 26px -8px rgba(214,54,60,.6);
  --shadow-card:0 1px 2px rgba(0,0,0,.2), 0 10px 30px -14px rgba(0,0,0,.5);        /* hovered cards and list rows */
  --ring:0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);              /* soft halo around a focused field, under the 1px accent border */
  --glass:color-mix(in srgb, var(--surface) 78%, transparent);                      /* fixed chrome (top bar, side panel) lets the lit field show through */

  /* type: Inter, six sizes, three weights */
  --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-display:"Be Vietnam Pro",var(--font);   /* headlines only (h1, episode title, voice names): one weight, 600 */
  --fs-xs:13px;   /* timestamps, counters */
  --fs-sm:14px;   /* labels, secondary text, buttons */
  --fs-md:16px;   /* body, inputs, chat, hint */
  --fs-lg:18px;   /* live caption */
  --fs-xl:24px;   /* headline on phones, episode title */
  --fs-2xl:28px;  /* the one hero headline per screen on desktop */
  --fw-regular:400; --fw-medium:500; --fw-semibold:600;
  --lh-tight:1.25; --lh-base:1.5;

  /* space (4-pt), shape, size, motion */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px;
  --r-sm:8px; --r-md:12px; --r-lg:16px;
  --tap:44px;        /* minimum touch target, also icon buttons */
  --control:48px;    /* buttons and inputs */
  --call:60px; --call-end:68px;   /* round call buttons: mic / speaker, end (>= 44 always) */
  --dur-state:300ms;              /* state-to-state transitions */
  --topbar:56px; --pad:var(--gutter); --drawer-w:392px; --gutter:24px; --sheet-h:min(56dvh, 480px);
  --dur:160ms; --dur-slow:240ms; --ease:cubic-bezier(.2,.8,.2,1);
  --ease-spring:cubic-bezier(.32,.72,0,1);   /* hover lifts, selection changes: a heavy, settled deceleration */
}

/* ---------- base ---------- */
* { box-sizing:border-box; margin:0; }
html, body { height:100%; overscroll-behavior:none; -webkit-text-size-adjust:100%; touch-action:manipulation; }
body { background:radial-gradient(120% 70% at 50% -10%, var(--bg-lift), transparent 62%), radial-gradient(90% 50% at 50% 112%, #0e1626, transparent 70%), var(--bg); color:var(--text); font:var(--fw-regular) var(--fs-md)/var(--lh-base) var(--font); overflow:hidden; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button, input, textarea { font:inherit; color:inherit; }
button, a, input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
[hidden] { display:none !important; }
time, .num { font-variant-numeric:tabular-nums; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ico { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r-sm); }
::selection { background:color-mix(in srgb, var(--accent) 35%, transparent); }
details > summary { list-style:none; } details > summary::-webkit-details-marker { display:none; }
#scene { position:fixed; inset:0; width:100%; height:100%; display:block; }
.grain { position:fixed; inset:0; pointer-events:none; background:url(grain.png); background-size:160px; opacity:.55; }   /* fine film grain: breaks up gradient banding, keeps the field from looking flat */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
