/* ============================================================
   RESET — minimal, modern, hand-written.
   Only removes browser defaults that fight the design system.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* Margin is owned by the layout, never inherited from the UA. */
body, h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Headings inherit weight from the type scale, not from the UA's bold. */
h1, h2, h3 { font-size: inherit; font-weight: inherit; text-wrap: balance; }

p, li { text-wrap: pretty; }

a { color: inherit; text-decoration-skip-ink: auto; }

img, picture, svg, video, canvas { display: block; max-width: 100%; }

svg { fill: currentColor; }

/* Form controls do not inherit typography in any browser. Force it. */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

textarea { resize: vertical; }

button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; }

/* Anchor scrolling must clear the sticky header. */
:target { scroll-margin-top: var(--header-clearance); }

/* The UA focus ring is replaced in main.css, never simply removed. */
:focus-visible { outline: none; }

/* No global reduced-motion nuke here: every animation in main.css is opted
   in behind (prefers-reduced-motion: no-preference), so there is nothing to
   override and no !important anywhere in the stylesheet. */
