:root {
  --bg: #f4f0e8;
  --paper: #fbf8f2;
  --text: #1d1d1a;
  --muted: #6d6a61;
  --line: #d8d1c4;
  --accent: #8a3f2d;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

a { color: inherit; text-underline-offset: .18em; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: .6rem .8rem;
  z-index: 10;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker,
.small,
.section-head p {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 500;
}

.subtitle {
  margin: 1.6rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
}

main { padding-bottom: 5rem; }

.lead {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.lead p { margin: 0; }
.big {
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head p { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  min-height: 19rem;
  padding: 1.6rem;
  background: var(--paper);
}
.card h3 {
  margin: 3.5rem 0 1rem;
  font-size: 1.65rem;
  line-height: 1.08;
  font-weight: 500;
}
.card p:last-child { margin-bottom: 0; }
.kicker { margin: 0; color: var(--accent); font-size: .8rem; }

.note { border-bottom: 0; }
.quote {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.note > p:last-child { color: var(--muted); margin-top: 2rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }

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

@media (max-width: 760px) {
  .lead,
  .section-head,
  .grid { grid-template-columns: 1fr; }
  .lead { gap: 1.5rem; }
  .card { min-height: auto; }
  .card h3 { margin-top: 2.5rem; }
  .site-footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151513;
    --paper: #1b1b18;
    --text: #ece7dd;
    --muted: #aaa59a;
    --line: #39362f;
    --accent: #d99074;
  }
}

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