/* Base styles: reset, body typography, links, utility classes, focus ring, reduced motion.
   Applies to every page; contains no layout or components. */

* { box-sizing: border-box; }
/* in-page anchors (outline, #cookies) must not hide under the sticky 56 px header */
[id] { scroll-margin-top: 72px; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* No ligatures anywhere: JetBrains Mono would draw != as ≠ and >= as ≥, while the student has to type the two characters.
     Chrome's `font` shorthand resets font-feature-settings too, so components set font longhands, never `font:`. */
  font-feature-settings: "calt" 0, "liga" 0;
}
/* form fields do not inherit font settings from body in the browser's own stylesheet */
input, textarea, select { font-feature-settings: "calt" 0, "liga" 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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