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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; max-width: 68ch; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--green-700); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--green-900); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, var(--space-8)); }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--green-900); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--white); }
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.section--dark .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.section--dark .lede { color: var(--cream-2); }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--space-3); }

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

@media print {
  .topbar, .header, .footer, .sticky-cta { display: none !important; }
  body { background: #fff; color: #000; }
}