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

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

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

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.65em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--green-900);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--speed) var(--ease);
}

a:hover {
  color: var(--brown);
}

strong {
  font-weight: 700;
  color: var(--ink);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

blockquote {
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--green-950);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--green-800);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.prose h2,
.prose h3 {
  margin-top: 1.7em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #3c443f;
}

@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;
  }
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.35;
}

.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
