:root {
  color-scheme: light dark;
  --bg: #f5f2ea;
  --surface: #fcfaf5;
  --ink: #20231f;
  --muted: #62685f;
  --line: #d7d3c8;
  --accent: #315c4a;
  --accent-ink: #f6fbf7;
  --measure: 48rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171916;
    --surface: #1e211d;
    --ink: #edf0e9;
    --muted: #aeb6aa;
    --line: #383d37;
    --accent: #91c8ad;
    --accent-ink: #14231b;
  }
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.68;
}
main {
  width: min(calc(100% - 2rem), 68rem);
  margin: 0 auto;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.wordmark,
nav a,
footer a {
  color: var(--ink);
  text-decoration: none;
}
.wordmark {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
nav a,
footer {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
}
nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible { text-decoration: underline; }
article {
  max-width: var(--measure);
  padding: clamp(4rem, 9vw, 8rem) 0 5rem;
}
.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}
.lede {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  text-wrap: pretty;
}
section {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0 0 .7rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: -.01em;
}
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: .18em; }
.button {
  display: inline-block;
  min-height: 44px;
  margin-top: .5rem;
  padding: .6rem .9rem;
  border-radius: .25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible,
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 36rem) {
  html { font-size: 16px; }
  footer { flex-direction: column; }
}
