/* Reset, type and the few layout helpers every page uses. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin-top: 0; }
dd { margin-left: 0; }
h1, h2, h3 { color: var(--navy-deep); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h3 { color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 600; margin-bottom: 18px; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; margin-bottom: 8px; }
h2.h3-size { font-size: 1.3rem; }
p { margin-bottom: 16px; }

a { color: var(--navy-light); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy-light); outline-offset: 2px;
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

/* Vertical rhythm: one rule per band, so nothing fights over section padding. */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0 88px; }
.tint { background: var(--warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section[id], div[id] { scroll-margin-top: 24px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 40px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
