/* Semantic design tokens. Raw color values appear only in this file.
   Contrast ratios are computed by tests/ui/static.test.ts for each declared pair. */

:root {
  color-scheme: light dark;

  --color-bg: #ffffff;
  --color-surface: #f5f7f9;
  --color-border: #6b7682;
  --color-text: #1b1f24;
  --color-text-muted: #47515c;
  --color-accent: #0b5cad;
  --color-on-accent: #ffffff;
  --color-error: #a1260d;
  --color-success: #1d6b33;
  --color-banner-bg: #fff4d6;
  --color-banner-text: #4d3800;
  --color-focus: #1a4fd8;
  --color-disabled-bg: #e3e7eb;
  --color-disabled-text: #4f5963;

  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --font-size-small: 0.875rem;
  --font-size-h1: 1.5rem;
  --font-size-h2: 1.25rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  --radius: 4px;
  --border-width: 1px;
  --focus-width: 3px;
  --target-min: 44px;
  --content-max: 72rem;

  --motion-duration: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121417;
    --color-surface: #1c2026;
    --color-border: #8c96a0;
    --color-text: #e8eaed;
    --color-text-muted: #b6bdc5;
    --color-accent: #8ab4f8;
    --color-on-accent: #0b1a2e;
    --color-error: #ff9e8a;
    --color-success: #7fd197;
    --color-banner-bg: #3a2f10;
    --color-banner-text: #ffe7a8;
    --color-focus: #ffd166;
    --color-disabled-bg: #2a3038;
    --color-disabled-text: #c2c8ce;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration: 0ms;
  }
}
