:root {
  --bg: #f6f3ee;
  --band: #ece7df;
  --ink: #1b1a18;
  --muted: #5d5850;
  --accent: #d9481f;
  --accent-ink: #ffffff;
  --rule: #d8d1c6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --band: #1e1c19;
    --ink: #eee9e1;
    --muted: #a8a196;
    --accent: #ff6a3d;
    --accent-ink: #151412;
    --rule: #34302b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Horizontal padding only: a section that is also .wrap keeps its own vertical padding. */
.wrap { max-width: 68rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap;
}
.mark { font: 600 1.3rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.mark .x { color: var(--accent); font-style: italic; }
nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin: 0.2em 0 0.35em; max-width: 14ch; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--muted); margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.hero { padding-top: clamp(3rem, 10vw, 7rem); padding-bottom: clamp(3rem, 10vw, 6rem); }
.cta { margin-top: 2rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(1.08); }

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.band { background: var(--band); }

/* Five cards: three across, then two, rather than four and an orphan. */
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.grid p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 2rem; }
.split ul { list-style: none; padding: 0; margin: 0; }
.split li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.split li::before { content: "×"; color: var(--accent); margin-right: 0.6rem; font-weight: 700; }

.why { margin-top: 3rem; font-size: 1.1rem; max-width: 40rem; }
.why i { font-family: var(--serif); }

.contact .button { font-size: 1.05rem; overflow-wrap: anywhere; }

.stats {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.stats li { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.stats b {
  display: block; font: 600 clamp(2rem, 5vw, 2.6rem)/1.1 var(--serif);
  color: var(--accent); letter-spacing: -0.02em; margin-bottom: 0.4rem;
}
.stats span { color: var(--muted); }

.who p { max-width: 40rem; }
.who p:not(.lede) { color: var(--muted); }

.foot { padding-top: 2rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); }

.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
