/* ==========================================================================
   Base / reset / typography
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--bd-ink);
  background: var(--bd-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.28;
  margin: 0 0 var(--sp-4);
  color: var(--bd-charcoal);
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 3vw + 1rem, var(--fs-3xl)); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); font-weight: 400; }
h4 { font-size: var(--fs-md); font-weight: 500; }

p { margin: 0 0 var(--sp-4); color: var(--bd-ink-muted); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Visible, brand-neutral focus ring for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--bd-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bd-black);
  color: var(--bd-white);
  padding: var(--sp-3) var(--sp-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Any in-page anchor target (nav dropdown deep links, breadcrumbs, etc.)
   needs the same clearance as #main so the sticky header never covers the
   heading it jumped to. */
[id] { scroll-margin-top: 90px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
