/* ==========================================================================
   Base — reset, document defaults, typography rhythm, a11y utilities
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  background-color: var(--sand-050);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.125rem);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  text-wrap: pretty;
}

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--brand-700);
  text-decoration-color: rgba(18, 117, 106, 0.45);
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease),
    text-decoration-color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--brand-800);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}

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

/* --------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.wrap--mid {
  max-width: 880px;
}

.section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}

.section--tint {
  background: var(--white);
  border-block: 1px solid var(--line-100);
}

.section--deep {
  background: var(--brand-900);
  color: var(--brand-100);
}

.section--deep h2,
.section--deep h3 {
  color: var(--white);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--sp-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  color: var(--brand-600);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.section--deep .section__eyebrow {
  color: var(--brand-300);
}

.section__lead {
  margin-top: var(--sp-4);
  max-width: 40rem;
  color: var(--ink-500);
  font-size: var(--fs-lead);
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.section--deep .section__lead {
  color: var(--brand-200);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------- a11y */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 200;
  transform: translateY(-200%);
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--white);
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
