/* base.css: Deep ocean design tokens, reset, typography, focus. */
:root {
  --paper: #070E1C;      /* page */
  --plate: #0F1B33;      /* panels, cards */
  --plate-deep: #0A1426; /* inputs, wells */
  --deep: #040A15;       /* bands */
  --ink: #EAF0F8;
  --muted: #9DB0CB;
  --line: #223559;
  --accent: #4C8DFF;
  --accent-hi: #7DB0FF;
  --on-accent: #FFFFFF;
  --accent-fill: #2A70EE;
  --star: #FFC15A;
  --ok: #5BD08B;
  --warn: #FFC15A;
  --bad: #FF9C8F;
  --info: #7FB6FF;

  --font-display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.625rem, 1.35rem + 1.4vw, 2.375rem);
  --step-3: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 74rem;
  --radius: 8px;
  --header-h: 4.25rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, .d, button, label, legend, th, .btn { font-family: var(--font-display); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; font-family: var(--font-display); font-weight: 600; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.tabular { font-variant-numeric: tabular-nums; }
.stars { color: var(--star); letter-spacing: 0.08em; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
