:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #080c12;
  --color-surface: #111923;
  --color-raised: #17212c;
  --color-border: #2a3947;
  --color-text: #edf3f7;
  --color-muted: #a8b7c4;
  --color-subtle: #8293a1;
  --color-accent: #56c6ee;
  --color-accent-strong: #2eacd9;
  --color-accent-contrast: #06151d;
  --color-focus: #8bdcff;
  --color-shadow: 0 18px 50px rgb(0 0 0 / 24%);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
html[data-theme="light"] {
  color-scheme: light;
  --color-canvas: #f4f7fb;
  --color-surface: #fff;
  --color-raised: #eef3f8;
  --color-border: #d5dfe8;
  --color-text: #142434;
  --color-muted: #4f6272;
  --color-subtle: #657989;
  --color-accent: #087da3;
  --color-accent-strong: #066b8d;
  --color-accent-contrast: #fff;
  --color-focus: #076f9b;
  --color-shadow: 0 16px 40px rgb(28 52 74 / 12%);
}
html { background: var(--color-canvas); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
::selection { color: var(--color-accent-contrast); background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
