/* =====================================================================
   Cadence · design tokens
   Podcasts and audio. Light is "Studio"; dark is "Late night".
   --cobalt is the one accent (buttons, links, the played part of the waveform, the current chapter and line).
   --volt is a level-meter lime, for fills only (the waveform bars, the on-air light, highlights in the transcript, the totals panel); text on it is ink. --volt-ink is its text colour.
   --ok marks what fits your time; --alert marks invalid fields.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #f6f3ee;
  --card: #ffffff;
  --well: #ece7df;
  --line: #dcd5ca;
  --ink: #17131f;
  --ink-2: #3b3546;
  --muted: #5f5869;
  --cobalt: #3140c4;
  --cobalt-2: #2532a3;
  --on-cobalt: #ffffff;
  --cobalt-soft: #e6e8fb;
  --volt: #d9f26b;
  --volt-soft: #f1f8cf;
  --volt-ink: #4d5a00;
  --ok: #1d6b45;
  --alert: #b3261e;
  --focus: #3140c4;
  --shadow-card: 0 1px 2px rgba(23, 19, 31, 0.06), 0 18px 36px -26px rgba(23, 19, 31, 0.42);
  --shadow-lift: 0 30px 60px -30px rgba(23, 19, 31, 0.5);

  --display: "Darker Grotesque", system-ui, sans-serif;
  --body: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, Menlo, monospace;

  --fs-h1: clamp(52px, 7.4vw, 112px);
  --fs-h2: clamp(38px, 4.6vw, 66px);
  --fs-h3: 23px;
  --fs-lead: clamp(17.5px, 1.35vw, 20.5px);
  --fs-body: 16.5px;
  --fs-small: 15px;
  --fs-label: 12px;

  --wrap: 1200px;
  --gutter: max(20px, 4vw);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 150ms;
  --d: 300ms;
  --d-slow: 900ms;
}

/* ---------- Late night ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111019;
    --card: #1b1a26;
    --well: #15141e;
    --line: #2e2c3c;
    --ink: #f1eff6;
    --ink-2: #d2cfdc;
    --muted: #a29fb0;
    --cobalt: #aab3ff;
    --cobalt-2: #c7cdff;
    --on-cobalt: #10143d;
    --cobalt-soft: #1f2140;
    --volt: #d9f26b;
    --volt-soft: #262b12;
    --volt-ink: #d9f26b;
    --ok: #7fd6a0;
    --alert: #ff9a90;
    --focus: #aab3ff;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111019;
  --card: #1b1a26;
  --well: #15141e;
  --line: #2e2c3c;
  --ink: #f1eff6;
  --ink-2: #d2cfdc;
  --muted: #a29fb0;
  --cobalt: #aab3ff;
  --cobalt-2: #c7cdff;
  --on-cobalt: #10143d;
  --cobalt-soft: #1f2140;
  --volt: #d9f26b;
  --volt-soft: #262b12;
  --volt-ink: #d9f26b;
  --ok: #7fd6a0;
  --alert: #ff9a90;
  --focus: #aab3ff;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
}
