/* assets/css/design-tokens.css
   Single source of truth for the design system. Every component consumes
   these custom properties — never hard-code a color, radius or spacing
   value anywhere else. */

:root {
  /* Colors — light */
  --color-primary: #1F3A5F;
  --color-secondary: #2E6F5E;
  --color-bg: #FAFBFC;
  --color-bg-alt: #F1F4F8;
  --color-surface: #FFFFFF;
  --color-text: #1A1D21;
  --color-text-muted: #5B6572;
  --color-border: #E4E7EB;
  --color-success: #1E8E5A;
  --color-warning: #B7791F;
  --color-error: #C0392B;
  --color-focus: #3B82F6;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-h1: 32px;
  --text-h2: 26px;
  --text-h3: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --line-h1: 40px;
  --line-h2: 34px;
  --line-h3: 28px;
  --line-body: 26px;
  --line-small: 20px;

  /* Shadows — used sparingly, on hover only */
  --shadow-sm: 0 1px 2px rgba(20, 24, 30, 0.06);
  --shadow-md: 0 6px 16px rgba(20, 24, 30, 0.10);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

:root[data-theme="dark"] {
  --color-bg: #0F1417;
  --color-bg-alt: #151A1F;
  --color-surface: #171C21;
  --color-text: #EDEFF2;
  --color-text-muted: #9AA4AE;
  --color-border: #2B323A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  :root {
    --text-h1: 26px;
    --line-h1: 34px;
    --text-h2: 22px;
    --line-h2: 30px;
  }
}
