/* ═══════════════════════════════════════════
   Design tokens — the full palette
   ═══════════════════════════════════════════ */

:root {
  /* Light theme (default) */
  --bg: #fafafa;
  --bg-surface: #f0f0f0;
  --bg-border: #e4e4e7;
  --bg-noise: rgba(0, 0, 0, 0.03);

  --text-primary: #18181b;
  --text-muted: #71717a;

  --accent: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-hover: #4338ca;
  --accent-subtle: rgba(99, 102, 241, 0.06);

  --particle-color: rgba(99, 102, 241, 0.12);

  --aurora-1: #4548ff;
  --aurora-2: #009dff;
  --aurora-3: #0e19e9;
  --aurora-opacity: 0.11;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 42.5rem;
  --nav-height: 3.75rem;
  --section-gap: 6.25rem;
}

/* ─── Dark theme (OS preference) ─── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b;
    --bg-surface: #141416;
    --bg-border: #1f1f23;
    --bg-noise: rgba(255, 255, 255, 0.015);

    --text-primary: #e4e4e7;
    --text-muted: #a1a1aa;

    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.16);
    --accent-hover: #a5b4fc;
    --accent-subtle: rgba(129, 140, 248, 0.08);

    --particle-color: rgba(99, 102, 241, 0.2);

    --aurora-1: #6366f1;
    --aurora-2: #8b5cf6;
    --aurora-3: #0ea5e9;
    --aurora-opacity: 0.13;
  }
}

/* ─── Dark theme (explicit) ─── */
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-surface: #141416;
  --bg-border: #1f1f23;
  --bg-noise: rgba(255, 255, 255, 0.015);

  --text-primary: #e4e4e7;
  --text-muted: #a1a1aa;

  --accent: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.16);
  --accent-hover: #a5b4fc;
  --accent-subtle: rgba(129, 140, 248, 0.08);

  --particle-color: rgba(99, 102, 241, 0.2);

  --aurora-1: #6366f1;
  --aurora-2: #8b5cf6;
  --aurora-3: #0ea5e9;
  --aurora-opacity: 0.13;
}
