/* ============================================
   SPARK - Design Tokens
   Mana Reactor: the WUBRG color system IS the UI
   ============================================ */

:root {
  /* --- Backgrounds (warm blacks, not cold) --- */
  --void: #07060a;
  --bg: #0c0b10;
  --surface: #14121a;
  --surface-raised: #1c1924;
  --surface-hover: #24202e;
  --surface-border: rgba(201, 120, 12, 0.12);
  --surface-border-hover: rgba(201, 120, 12, 0.25);

  /* --- Primary Accents --- */
  --gold: #c9780c;
  --gold-bright: #e8a634;
  --gold-glow: rgba(201, 120, 12, 0.3);
  --gold-dim: #8b5a0a;
  --arcane: #6b3fa0;
  --arcane-bright: #9b6dd7;
  --arcane-glow: rgba(107, 63, 160, 0.3);
  --blood: #8b2252;
  --blood-bright: #c24b7a;

  /* --- Gradients --- */
  --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-bright));
  --gradient-arcane: linear-gradient(135deg, var(--arcane), var(--gold));
  --gradient-ember: linear-gradient(135deg, #2d1b69, #c9780c, #6b1d1d);

  /* --- Text (warm parchment whites) --- */
  --text: #e8e4df;
  --text-secondary: #a09a90;
  --text-muted: #6b655c;
  --text-dim: #4a4540;

  /* --- WUBRG Mana Colors --- */
  --mana-w: #f9faf4;
  --mana-u: #0e67ab;
  --mana-b: #150b00;
  --mana-r: #d3312e;
  --mana-g: #00733e;
  --mana-c: #9ea4a8;

  /* --- WUBRG Glow Colors (lighter, for effects) --- */
  --glow-w: #fffde0;
  --glow-u: #4da6ff;
  --glow-b: #8a6fad;
  --glow-r: #ff6b5a;
  --glow-g: #4ade80;
  --glow-c: #cbd5e1;

  /* --- WUBRG Ambient Colors (for page-level tinting) --- */
  --ambient-w: rgba(255, 253, 224, 0.06);
  --ambient-u: rgba(77, 166, 255, 0.06);
  --ambient-b: rgba(138, 111, 173, 0.06);
  --ambient-r: rgba(255, 107, 90, 0.06);
  --ambient-g: rgba(74, 222, 128, 0.06);

  /* --- Mana Reactor State (0 = off, 1 = on, animated via JS) --- */
  --reactor-w: 0;
  --reactor-u: 0;
  --reactor-b: 0;
  --reactor-r: 0;
  --reactor-g: 0;

  /* --- Typography --- */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-hero: clamp(2.5rem, 6vw, 4.5rem);

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

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-glow: 0 0 30px var(--gold-glow);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-lifted: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);

  /* --- Easing --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-forge: cubic-bezier(0.6, 0.6, 0, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-reveal: 600ms;

  /* --- Layout --- */
  --nav-height: 56px;
  --max-width: 1200px;
  --content-padding: clamp(1rem, 4vw, 2rem);
}
