/* ============================================
   Design Tokens — Deep Navy Theme
   Dark mode is DEFAULT. Light mode overrides below.
   ============================================ */

:root {
  /* Colors — Dark (default) */
  --color-bg: #0D1B2A;
  --color-bg-alt: #112240;
  --color-surface: #1B3A5C;
  --color-surface-hover: #234b73;
  --color-text: #E8EDF2;
  --color-text-muted: #8892a4;
  --color-heading: #FFFFFF;
  --color-accent: #3A6B94;
  --color-accent-hover: #4a7fad;
  /* Legible accent for TEXT on dark surfaces (>=4.5:1 on bg and surface). Use for
     eyebrows, section labels, outline-button text, and body links. Do NOT reuse
     --color-accent for small text: it fails WCAG AA on the dark theme. */
  --color-accent-text: #8FB8DC;
  --color-accent-light: rgba(58, 107, 148, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-code-bg: #0a1628;
  --color-overlay: rgba(13, 27, 42, 0.85);
  --color-tag-bg: rgba(58, 107, 148, 0.2);
  --color-tag-text: #6fa3d4;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font sizes — fluid (compact) */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.75rem, 0.72rem + 0.2vw, 0.8125rem);
  --text-base: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-lg: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  --text-xl: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  --text-4xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --nav-height: 72px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================
   Light Mode Overrides
   ============================================ */
[data-theme="light"] {
  --color-bg: #F5F7FA;
  --color-bg-alt: #EDF1F5;
  --color-surface: #FFFFFF;
  --color-surface-hover: #E8EDF2;
  --color-text: #1B3A5C;
  --color-text-muted: #5a6b7d;
  --color-heading: #0D1B2A;
  --color-accent: #3A6B94;
  --color-accent-hover: #2d5a80;
  --color-accent-text: #2d5a80;
  --color-accent-light: rgba(58, 107, 148, 0.1);
  --color-border: rgba(13, 27, 42, 0.08);
  --color-border-strong: rgba(13, 27, 42, 0.15);
  --color-code-bg: #eef1f5;
  --color-overlay: rgba(245, 247, 250, 0.85);
  --color-tag-bg: rgba(58, 107, 148, 0.1);
  --color-tag-text: #2d5a80;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}
