@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg:#0b1220; --bg2:#101a2b; --card:#16213a;
  --text:#e8eef9; --muted:#aab8cf; --dim:#8fa0bd;
  --line:#2a3a5c; --control:#64748b;
  --amber:#fbbf24; --amber-hover:#fcd34d; --amber-ink:#231604;
  --green:#34d399; --green-bg:#0e2b27; --green-line:#28685c;
  --font:'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter:clamp(1rem, 5vw, 2rem);
  --page-title:clamp(2rem, 1.65rem + 1.6vw, 3rem);
  --section-title:clamp(1.5rem, 1.3rem + .8vw, 2rem);
  --text-size:1rem; --small-size:.875rem;
  --radius:12px; --control-radius:8px; --target:44px;
}

*, *::before, *::after { box-sizing:border-box }
body { margin:0; color:var(--text); background:var(--bg); font:400 var(--text-size)/1.6 var(--font) }
:focus-visible { outline:2px solid var(--amber); outline-offset:3px }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important }
}

@media print {
  :root {
    color-scheme:light;
    --bg:#fff; --bg2:#fff; --card:#fff;
    --text:#111; --muted:#444; --dim:#444;
    --line:#cbd5e1; --control:#666;
    --amber:#000; --amber-hover:#000; --amber-ink:#fff;
    --green:#000; --green-bg:#fff; --green-line:#999;
  }
  body { background:#fff; color:#111 }
  a { color:#000 }
  .btn-primary, .mark { background:#fff; color:#000; border-color:#000 }
}
