/* Nythra tokens — generated from tokens.json. Dark (Void) is the default; set data-theme="light" on <html> for Paper. */
:root, [data-theme="dark"] {
  --surface-0: #0a0a0a;
  --surface-1: #0f0f0f;
  --surface-2: #171717;
  --surface-3: #212121;
  --overlay: rgba(0,0,0,0.72);
  --line-subtle: #1c1c1c;
  --line: #2b2b2b;
  --line-strong: #808080;
  --ink: #ffffff;
  --ink-muted: #b0b0b0;
  --ink-subtle: #9b9b9b;
  --focus: var(--ink);
  --action: #ffffff;
  --action-hover: #d9d9d9;
  --on-action: #0a0a0a;
  --accent: #ff6262;
  --accent-hover: #ff7a7a;
  --accent-soft: rgba(255,98,98,0.10);
  --on-accent: #0a0a0a;
  --critical: var(--accent);
  --critical-soft: var(--accent-soft);
  --high: var(--ink);
  --high-soft: rgba(255,255,255,0.10);
  --medium: var(--ink-muted);
  --medium-soft: rgba(255,255,255,0.07);
  --low: var(--ink-subtle);
  --low-soft: rgba(255,255,255,0.05);
  --success: #3ecf8e;
  --success-soft: rgba(62,207,142,0.14);
  --shadow-panel: 0 0 0 1px rgba(255,255,255,0.05), 0 24px 64px -32px rgba(0,0,0,0.9);
  --shadow-pop: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 40px -8px rgba(0,0,0,0.9);
  --glow-accent: 0 0 40px rgba(255,98,98,0.28);
  --focus-ring: 0 0 0 2px #0a0a0a, 0 0 0 4px #ffffff;
}
[data-theme="light"] {
  --surface-0: #ffffff;
  --surface-1: #f7f7f7;
  --surface-2: #f0f0f0;
  --surface-3: #ebebeb;
  --overlay: rgba(13,13,13,0.4);
  --line-subtle: #ececec;
  --line: #dcdcdc;
  --line-strong: #7a7a7a;
  --ink: #0d0d0d;
  --ink-muted: #4d4d4d;
  --ink-subtle: #666666;
  --focus: var(--ink);
  --action: #0d0d0d;
  --action-hover: #333333;
  --on-action: #ffffff;
  --accent: #b71c1c;
  --accent-hover: #961818;
  --accent-soft: rgba(183,28,28,0.08);
  --on-accent: #ffffff;
  --critical: var(--accent);
  --critical-soft: var(--accent-soft);
  --high: var(--ink);
  --high-soft: rgba(13,13,13,0.08);
  --medium: var(--ink-muted);
  --medium-soft: rgba(13,13,13,0.06);
  --low: var(--ink-subtle);
  --low-soft: rgba(13,13,13,0.05);
  --success: #0a6e46;
  --success-soft: rgba(10,110,70,0.10);
  --shadow-panel: 0 0 0 1px rgba(9,9,11,0.06), 0 24px 48px -28px rgba(9,9,11,0.25);
  --shadow-pop: 0 0 0 1px rgba(9,9,11,0.08), 0 16px 32px -8px rgba(9,9,11,0.22);
  --glow-accent: 0 0 32px rgba(183,28,28,0.18);
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0d0d0d;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --nav-h: 64px;
  --content-max: 1200px;
  --halo: radial-gradient(closest-side, rgba(255,255,255,0.10), rgba(255,255,255,0));
  --halo-accent: radial-gradient(closest-side, rgba(255,98,98,0.22), rgba(255,98,98,0));
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 480ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Michroma", "Geist", system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Michroma'; src: url('../fonts/Michroma-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
.hero { font-family: var(--font-sans); font-size: 72px; line-height: 76px; font-weight: 600; letter-spacing: -0.045em; }
.h1 { font-family: var(--font-sans); font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.04em; }
.h2 { font-family: var(--font-sans); font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
.h4 { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400;  }
.body { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 400;  }
.body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400;  }
.label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.005em; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400;  }
.eyebrow { font-family: var(--font-display); font-size: 11px; line-height: 16px; font-weight: 400; letter-spacing: 0.24em; }
.display-sm { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: 0.16em; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400;  }
.code-sm { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 400;  }
.kbd { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; }
