/*
 * Design tokens — the canonical values for History, Non-Stop.
 *
 * Values are the ones the site actually ships (taken from the 800+ pages that declared
 * them inline), so moving a page onto this file is a zero-visual-change refactor.
 *
 * Linked FIRST in <head>, before any inline <style>, so page-level styles and theme
 * overrides ([data-theme="…"]) still win. To migrate a page or template: link this file,
 * delete the page's inline :root block, and swap hard-coded values for var(--token).
 * `npm run check:tokens` enforces both the values here and the migrated templates.
 */
:root {
  /* Color — default dark theme */
  --bg: #17120d;
  --bg-gradient: radial-gradient(1200px 800px at 50% -10%, #2b2118 0%, #1c1610 40%, #17120d 100%);
  --fg: #efe6d6;
  --muted: #b8a88e;
  --card: #221a13;
  --border: rgba(255, 255, 255, .08);
  --accent: #d9a441;
  --accent2: #cf7442;
  --on-accent: #0b1020;
  --ok: #22c55e;
  --err: #ef4444;
  --warn: #f59e0b;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif; /* face loaded by css/brand.css */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 32px;

  /* Space (4px scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  /* Layers — shared stacking order so overlays stop colliding */
  --z-header: 100;
  --z-nav: 1000;
  --z-fab: 1500;
  --z-toast: 2000;
  --z-modal: 3000;

  /* Layout */
  --content-max: 1200px;
  --tap-min: 44px;
}
