/* === TOKENS === */
:root {
  /* Colors — Dark (Sacred Luxury Default) */
  --bg: #090908;
  --bg-elevated: #131210;
  --bg-subtle: #181613;
  --bg-card: #151310;
  --bg-card-hover: #1c1915;
  --fg: #F7F3EB;
  --fg-muted: #ABA293;
  --fg-subtle: #787062;
  --accent: #D4A359;
  --accent-fg: #100E0B;
  --accent-hover: #E2B56E;
  --accent-subtle: rgba(212, 163, 89, 0.09);
  --accent-glow: rgba(212, 163, 89, 0.22);
  --border: rgba(247, 243, 235, 0.08);
  --border-subtle: rgba(247, 243, 235, 0.04);
  --border-strong: rgba(212, 163, 89, 0.28);
  --border-accent: rgba(212, 163, 89, 0.45);
  --ring: var(--accent);
  --error: #D4453A;
  --error-subtle: rgba(212, 69, 58, 0.1);

  /* Convenience aliases */
  --accent-color: var(--accent);
  --text-color: var(--fg);
  --text-color-muted: var(--fg-muted);
  --border-color: var(--border);
  --bg-body: var(--bg);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-serif-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-display: clamp(3.2rem, 8vw, 5.6rem);
  
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;
  --leading-loose: 1.95;
  
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;
  --tracking-widest: 0.22em;

  /* Spacing (4/8 base) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */
  --space-20: 5rem;   /* 80px */
  --space-24: 6rem;   /* 96px */

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 24px rgba(212, 163, 89, 0.18);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1120px;
  --measure: 44rem; /* reading width */
  --nav-height: 4rem;
  --bottom-nav-height: 3.85rem;
}

/* Light theme */
.light-mode {
  --bg: #F8F5EE;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #EFE9DC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F6F1E5;
  --fg: #181512;
  --fg-muted: #6C6457;
  --fg-subtle: #8E8679;
  --accent: #A87932;
  --accent-fg: #FAF8F2;
  --accent-hover: #926625;
  --accent-subtle: rgba(168, 121, 50, 0.10);
  --accent-glow: rgba(168, 121, 50, 0.20);
  --border: rgba(24, 21, 18, 0.10);
  --border-subtle: rgba(24, 21, 18, 0.05);
  --border-strong: rgba(168, 121, 50, 0.28);
  --border-accent: rgba(168, 121, 50, 0.45);
  --shadow-sm: 0 1px 3px rgba(24, 21, 18, 0.06);
  --shadow: 0 4px 16px rgba(24, 21, 18, 0.08);
  --shadow-lg: 0 12px 36px rgba(24, 21, 18, 0.12);
  --shadow-gold: 0 0 20px rgba(168, 121, 50, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

