:root {
  color-scheme: light dark;
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --ink: #1b1916;
  --muted: #5f594f;
  --line: #d8d0c2;
  --accent: #b93a1c;
  --accent-ink: #fffdf8;
  --error: #a3241a;
  --ok: #2c6a43;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1e1c19;
    --ink: #f3eee5;
    --muted: #b1a999;
    --line: #38342d;
    --accent: #f08a6c;
    --accent-ink: #1b1109;
    --error: #ff9d90;
    --ok: #86d3a2;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 0.5rem; color: var(--bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.875rem;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; }
.nav__cta { color: var(--accent); font-weight: 600; }

.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem 4rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
  object-position: 50% 20%;
}
.section-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 2px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  max-width: 18ch;
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.lede { max-width: 38rem; color: var(--muted); font-size: 1.1875rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); }
.button:disabled { cursor: wait; opacity: 0.6; }

.section {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 5fr);
  gap: 1rem 2rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.section__label { color: var(--accent); font-family: var(--serif); font-size: 1.25rem; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
}
.large { max-width: 44rem; margin-top: 1.25rem; font-size: 1.1875rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { font-family: var(--serif); font-size: 1.375rem; }

.rows { margin-top: 2rem; border-bottom: 1px solid var(--line); }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.rows h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.3; }
.rows p { color: var(--muted); }

.form { display: grid; gap: 1.25rem; max-width: 40rem; margin-top: 2rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form__note { color: var(--muted); font-size: 0.875rem; }
.form .button { justify-self: start; }
.status { min-height: 1.6em; font-weight: 600; }
.status--error { color: var(--error); }
.status--ok { color: var(--ok); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.prose { max-width: 44rem; padding-block: clamp(3rem, 8vw, 5rem); }
.prose h1 { max-width: none; margin-top: 0; font-size: clamp(2.25rem, 6vw, 3.5rem); }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose p { margin-top: 0.75rem; }
.prose--center { min-height: 100vh; align-content: center; display: grid; }
.prose--center h1 { margin-top: 0.75rem; }
.prose--center .button { margin-top: 1rem; }

@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); }
  .hero__photo { aspect-ratio: 4 / 5; }
}

@media (max-width: 40rem) {
  .section { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .form .button, .hero .button { width: 100%; text-align: center; }
}

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