/* Reset, document defaults, typography, layout primitives. */

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

.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;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--color-structure);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, var(--step-5)); }
h2 { font-size: clamp(1.9rem, 3.4vw, var(--step-4)); max-width: 22ch; }
h3 { font-size: var(--step-1); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 var(--s4); }

a { color: var(--color-accent-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--gold-ink); font-weight: 600;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* Layout primitives */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--s5); }
.measure { max-width: var(--measure); }
.lede { font-size: 1.14rem; color: var(--color-slate); line-height: 1.6; }
.muted { color: var(--color-slate); }
