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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 1.15rem + 3vw, 4.35rem);
}

h2 {
  font-size: clamp(2.15rem, 1.2rem + 2.2vw, 3rem);
}

h3 {
  font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.75rem);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p + p {
  margin-top: 1rem;
}

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

::selection {
  background: var(--charcoal);
  color: var(--ivory);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: none;
}

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

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

.section {
  padding-block: var(--space-section);
}

.section--white {
  background: var(--white);
}

.section--stone {
  background: #efebe4;
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--espresso);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 0.75rem;
  background: var(--brass);
}

.section-header {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-header .lede {
  margin-top: 1rem;
}

[id] {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
