*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}
body > main { min-height: 60vh; }
main { min-width: 0; }
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: var(--line-height-tight);
  margin-block: 0;
  text-wrap: balance;
}
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
p { margin-block: 0; }
a { color: var(--color-link); text-underline-offset: 0.18em; }
a:hover { color: var(--color-primary-hover); text-decoration-thickness: 0.12em; }
img { display: block; height: auto; max-width: 100%; }
main p, main li, main dd, main a { overflow-wrap: anywhere; }
:focus-visible { box-shadow: 0 0 0 0.15rem var(--color-surface); outline: 0.2rem solid var(--color-focus); outline-offset: 0.2rem; }
.visually-hidden { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  background: var(--color-heading);
  color: var(--color-surface);
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  position: fixed;
  top: var(--space-2);
  transform: translateY(-200%);
  z-index: 10;
}
.skip-link:focus { color: var(--color-surface); transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
