:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #17243a;
  --muted: #68768b;
  --accent: #4169df;
  --accent-strong: #2f54c8;
  --accent-soft: #e9efff;
  --border: #e1e7ef;
  --shadow: 0 24px 70px rgba(28, 45, 75, .08);
  --radius: 20px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1220;
  --surface: #111a2b;
  --surface-soft: #131e31;
  --text: #e9eff9;
  --muted: #9ba9bd;
  --accent: #8baaff;
  --accent-strong: #abc0ff;
  --accent-soft: #1e2d4c;
  --border: #253249;
  --shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .3s, color .3s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.04em; margin-bottom: 1.35rem; }
h3 small { font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: .4rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { color: #fff; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
