/* =========================================================================
   BASE — reset and element defaults.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.5; font-weight: var(--fw-normal);
  color: var(--foreground); background: var(--background);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-medium); letter-spacing: var(--tracking-tighter); line-height: 1.1; text-wrap: balance; color: var(--foreground); }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-tight); line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
figure, blockquote { margin: 0; }
strong { font-weight: var(--fw-semibold); }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.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; }
.sr-only:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; border-radius: 999px; background: var(--brand); color: var(--brand-foreground); }

/* Rich text inside sections */
.rich { display: grid; gap: 14px; color: var(--muted-foreground); }
.rich p { line-height: 1.65; }
.rich a, .check-list a, .tbl a, .note a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rich a:hover, .check-list a:hover, .tbl a:hover, .note a:hover { text-decoration-color: var(--link); }
.rich strong, .check-list strong { color: var(--foreground); font-weight: var(--fw-medium); }

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after { transition-duration: .01ms !important; }
}
