/* Tokens copied by name and value from index.html (tools/nations_lint.py fails when any value drifts), then the
   nations-only tokens. Maya Radiance is the landing's :root; Sovereign Skeleton is :root:not([data-theme]). */
:root {
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-ceremony: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 0.18s;
  --dur-2: 0.42s;
  --dur-3: 0.9s;
  --fs-h2: clamp(40px, 4.6vw, 76px);
  --lh-h2: 1.02;
  --fs-read: clamp(16px, 1.1vw, 17px);
  --lh-read: 1.6;
  --fs-label: 11px;
  --fw-label: 500;
  --tr-label: 0.2em;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --col-max: 1280px;
  --measure: 64ch;
  --line-alpha-min: 0.55;
  --bg-floor: #02101E;
  --bg-deep: #0A2E48;
  --ink: #F4ECD8;
  --ink-2: #B5C4D0;
  --ink-3: #8FA5B5;
  --ink-4: #6E8294;
  --ink-5: #3F5566;
  --cochineal: #B4873C;
  --gold-shadow: #9D6D31;
  --gold-highlight: #F1DFB4;
  --gold-mid: #CDA45E;
  --gold-gradient: linear-gradient(112deg, var(--gold-shadow) 0%, var(--cochineal) 18%, var(--gold-highlight) 24%, var(--cochineal) 30%, var(--gold-shadow) 43%, var(--gold-mid) 60%, var(--gold-highlight) 66%, var(--cochineal) 73%, var(--gold-shadow) 86%, var(--gold-shadow) 100%);
  --rule: rgba(244, 236, 216, 0.16);
  --rule-soft: rgba(244, 236, 216, 0.08);
  --surface: rgba(244, 236, 216, 0.04);

  --zn-names: 'Instrument Serif', 'ZN Serif', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', serif;
  --zn-names-fb: 'ZN Serif', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', serif;
  --zn-read: 'DM Sans', 'ZN Sans', 'ZN Devanagari', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', system-ui, sans-serif;
  --zn-read-fb: 'ZN Sans', 'ZN Devanagari', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', system-ui, sans-serif;
  --zn-mono: 'JetBrains Mono', 'ZN Mono', ui-monospace, monospace;
  --page-bg: var(--bg-floor);
  --ink-low: var(--ink-4);
  --line: color-mix(in oklab, var(--ink) 55%, transparent);
  --rim-hover: color-mix(in oklab, var(--ink) 85%, transparent);
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
[data-theme="codex"] {
  --bg-floor: #C8B078;
  --bg-deep: #E8DBC0;
  --ink: #1A0F08;
  --ink-2: #4A3A2A;
  --ink-3: #6B5945;
  --ink-4: #9A8870;
  --ink-5: #B5A488;
  --cochineal: #6E0F25;
  --rule: rgba(26, 15, 8, 0.20);
  --rule-soft: rgba(26, 15, 8, 0.10);
  --surface: rgba(26, 15, 8, 0.04);
  --page-bg: var(--bg-deep);
  --ink-low: var(--ink-3);
  color-scheme: light;
}
[data-theme="skeleton"] {
  --bg-floor: #050507;
  --bg-deep: #14110E;
  --ink: #EDE4D3;
  --ink-2: #B8AC95;
  --ink-3: #8A7F6E;
  --ink-4: #5a5247;
  --ink-5: #3a342d;
  --cochineal: #8B1934;
  --rule: rgba(237, 228, 211, 0.10);
  --rule-soft: rgba(237, 228, 211, 0.05);
  --surface: rgba(237, 228, 211, 0.03);
  --ink-low: var(--ink-3);
}
:root:not([data-theme]) {
  --bg-floor: #000000;
  --bg-deep: #000000;
  --ink: #FFFFFF;
  --ink-2: #C8C8C8;
  --ink-3: #A3A3A3;
  --ink-4: #8A8A8A;
  --ink-5: #4D4D4D;
  --cochineal: #FFFFFF;
  --rule: rgba(255, 255, 255, 0.16);
  --rule-soft: rgba(255, 255, 255, 0.09);
  --surface: #000000;
  --page-bg: #000000;
  --line: rgba(255, 255, 255, 0.55);
  --rim-hover: rgba(255, 255, 255, 0.85);
}

[data-theme="calavera"] {
  --bg-floor: #090716; --bg-mid: #110D22; --bg-deep: #17112D; --bg-warm: #231632; --bg-halo: #302047;
  --ink: #FFF3E8; --ink-2: #E1D1ED; --ink-3: #C9B4E5; --ink-4: #B3A0CB; --ink-5: #716082;
  --cochineal: #FF70D9; --cochineal-deep: #74295E; --cochineal-rgb: 255,112,217; --cochineal-text: #FFB3E9;
  --pulse-green: #77E8BA; --pulse-green-rgb: 119,232,186;
  --gold-shadow: #BE914C; --gold-mid: #E8BC72; --gold-highlight: #FFE7B0;
  --basalt-1: #21162E; --basalt-2: #090716; --basalt-3: #17112D;
  --rule: rgba(225,209,237,.23); --rule-soft: rgba(225,209,237,.12);
  --surface: rgba(225,209,237,.045); --surface-2: rgba(225,209,237,.025);
  --page-bg: #090716; --ink-low: #B3A0CB; --line: rgba(225,209,237,.55); --rim-hover: #FFB3E9;
  --hdr-band: #090716; --zt-frame-ground: #090716; --zt-frame-ink: #C9B4E5; --zt-frame-accent: #77E8BA;
  --cn-spectrum: linear-gradient(110deg,#FFE7B0 0%,#FFB3E9 24%,#C9B4E5 48%,#77E8BA 74%,#FFE7B0 100%);
  color-scheme: dark;
}
