/* ===== reset ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--text);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.16rem, 1.05rem + .45vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li + li { margin-top: var(--space-1); }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-7) 0; }

::selection { background: var(--navy-200); color: var(--navy-900); }

/* ===== layout =========================================================== */

.container {
  width: min(100% - 2.5rem, 1140px);
  margin-inline: auto;
}

.container--narrow { width: min(100% - 2.5rem, 760px); }

.section { padding-block: clamp(3rem, 1.9rem + 4.6vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.section--subtle { background: var(--bg-subtle); }

.section--dark {
  background: var(--navy-900);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C7D4EC; }
.section--dark a { color: var(--navy-200); }

.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: var(--space-7); }
.prose > * + h3 { margin-top: var(--space-5); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ===== utilities ======================================================== */

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.section--dark .eyebrow { color: #8FA8D4; }

.lead {
  font-size: clamp(1.08rem, 1rem + .38vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-muted);
}
.section--dark .lead { color: #C7D4EC; }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}
