/* ============================================================
   AEIVA v3 — "The Dark Dossier" design tokens
   Obsidian canvas · cream ink ramp · gold accent · teal secondary
   Brand hexes unchanged (navy/teal/gold/cream) — canvas inverted.
   Token NAMES preserved from v2 so kept components still resolve.
   ============================================================ */

:root {
  /* ---- Brand palette (unchanged) ---- */
  --navy:        #002244;
  --navy-900:    #001a35;
  --navy-800:    #002a54;
  --navy-700:    #0a3a6b;
  --teal:        #008080;
  --teal-600:    #0a6f6f;
  --teal-300:    #4db6ac;
  --gold:        #cfb53b;
  --gold-600:    #b89a2a;
  --gold-200:    #e7d78a;
  --cream:       #faf9f6;

  /* ---- Obsidian canvas ---- */
  --obsidian:    #08080a;
  --cream-100:   #0d0d10;   /* raised surface (name kept from v2) */
  --cream-200:   #17171b;   /* higher surface (name kept from v2) */

  /* ---- Ink ramp: cream at opacities ---- */
  --ink:         var(--cream);
  --ink-soft:    rgba(250, 249, 246, 0.72);  /*  9.8:1 on obsidian */
  --ink-faint:   rgba(250, 249, 246, 0.58);  /*  6.6:1 */
  /* mute-2 was 0.32 = 2.69:1 and carried real text: every input placeholder
     (the labels are .sr-only, so it was the only visible field hint), the
     carousel counter, the footer attribution, and `.dim` at display size in a
     slab headline. 0.48 is the lowest alpha that clears 4.5:1, so ink-faint was
     lifted to 0.58 to keep the ramp ordered instead of inverting it. */
  --mute-2:      rgba(250, 249, 246, 0.48);  /*  4.8:1 */
  --strike:      rgba(250, 249, 246, 0.48);  /*  4.8:1 — was 0.35 = 3.0:1 */
  --line:        rgba(250, 249, 246, 0.08);
  --line-strong: rgba(250, 249, 246, 0.16);
  --cell:        rgba(255, 255, 255, 0.10);

  /* ---- On-navy tints (dark sections ≈ same canvas now) ---- */
  --on-navy:        var(--cream);
  --on-navy-soft:   rgba(250, 249, 246, 0.72);
  --on-navy-faint:  rgba(250, 249, 246, 0.48);
  --line-navy:      rgba(207, 181, 59, 0.16);
  --line-navy-soft: rgba(255, 255, 255, 0.10);

  /* ---- Ambient glows ---- */
  --glow-teal:  rgba(0, 128, 128, 0.09);
  --glow-blue:  rgba(0, 34, 68, 0.35);
  --glow-gold:  rgba(207, 181, 59, 0.18);

  /* ---- Semantic ---- */
  --bg:      var(--obsidian);
  --surface: var(--cream-100);
  --text:    var(--cream);
  --accent:  var(--teal);
  --gilt:    var(--gold);

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fraunces variation presets */
  --frx:    "SOFT" 40, "opsz" 144;
  --frx-em: "SOFT" 100, "opsz" 144;

  --fs-eyebrow: 0.6875rem;                                   /* 11px mono labels */
  --fs-small:   0.9rem;
  --fs-body:    1.03rem;
  --fs-lead:    clamp(1.1rem, 0.9rem + 0.8vw, 1.35rem);
  --fs-h3:      clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem);
  --fs-h2:      clamp(2rem, 1.2rem + 3.2vw, 3.8rem);
  --fs-h1:      clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);
  --fs-display: clamp(2.9rem, 1rem + 7.4vw, 7.6rem);
  --fs-slab:    clamp(2.2rem, 1rem + 5.2vw, 5.6rem);
  --fs-numeral: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem);

  --lh-tight:   1.02;
  --lh-snug:    1.16;
  --lh-body:    1.72;
  --tracking-eyebrow: 0.22em;
  --tracking-chapter: 0.28em;
  --track-display: -0.035em;

  /* ---- Spacing ---- */
  --space-section: clamp(6rem, 5rem + 9vh, 11rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3rem);
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 780px;

  /* ---- Radii (tightened) ---- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* ---- Shadows / glass ---- */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-sm: 0 8px 24px rgba(0, 0, 0, 0.45);
  --sh-md: 0 20px 50px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 40px 90px rgba(0, 0, 0, 0.6);
  --sh-navy: 0 30px 80px rgba(0, 0, 0, 0.65);
  --sh-gold: 0 20px 60px -20px rgba(207, 181, 59, 0.35);
  --sh-glass: 0 40px 120px -30px rgba(0, 128, 128, 0.22), inset 0 0 0 1px rgba(207, 181, 59, 0.18);
  --glow-teal-dot: 0 0 20px rgba(0, 128, 128, 0.6);
  --glow-gold-dot: 0 0 12px rgba(207, 181, 59, 0.8);

  /* ---- Motion (two eases only) ---- */
  --ease-hero: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 620ms;

  /* ---- Z-index scale ---- */
  --z-bg: 0;
  --z-content: 10;
  --z-nav: 50;
  --z-overlay: 80;
  --z-modal: 100;
}
