
:root {
  --sand: #efe4d2;
  --paper: #f8f3ea;
  --ink: #1d2a24;
  --muted: #5f6d66;
  --cedar: #7f3f22;
  --sage: #6f7f57;
  --line: rgba(29, 42, 36, 0.14);
  --shadow: 0 18px 55px rgba(33, 28, 17, 0.14);
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(127, 63, 34, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(111, 127, 87, 0.16), transparent 24%),
    linear-gradient(180deg, #f5ecdf 0%, #f8f3ea 35%, #fbf8f2 100%);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }

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

.site-header {
  padding: 1.25rem 0 0.75rem;
}

.topline {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--cedar);
  color: var(--ink);
}

.hero {
  padding: 3.4rem 0 2.7rem;
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  width: fit-content;
  background: rgba(127, 63, 34, 0.09);
  color: var(--cedar);
  border: 1px solid rgba(127, 63, 34, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.article-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.hero p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  min-width: 12rem;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.section {
  padding: 0 0 3rem;
}

.section-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 1rem;
}

.section-head h2,
.article-body h2,
.article-body h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(127, 63, 34, 0.35);
  background: rgba(255, 255, 255, 0.96);
}

.card h3 {
  margin: 0.4rem 0 0.65rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.chip {
  width: fit-content;
  border: 1px solid rgba(111, 127, 87, 0.25);
  color: var(--sage);
  background: rgba(111, 127, 87, 0.09);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.archive-list {
  display: grid;
  gap: 0.8rem;
}

.archive-row {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.archive-row a {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.4rem;
  text-decoration: none;
}

.archive-row p {
  margin: 0;
  color: var(--muted);
}

.article-wrap {
  padding: 2.4rem 0 4rem;
}

.article-rail {
  display: grid;
  gap: 1.4rem;
}

.article-kicker {
  color: var(--cedar);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 15ch;
}

.article-dek {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-body {
  max-width: 46rem;
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.article-body p,
.article-body li {
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 2.4rem;
  font-size: 2rem;
}

.article-body h3 {
  margin-top: 1.8rem;
  font-size: 1.4rem;
}

.article-body blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid rgba(127, 63, 34, 0.32);
  color: #3f4a45;
}

.article-body code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: rgba(29, 42, 36, 0.06);
  padding: 0.1rem 0.28rem;
  border-radius: 0.3rem;
}

.article-body pre {
  overflow-x: auto;
  background: #f1ebdf;
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 42, 36, 0.08);
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.article-body .footnotes {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.article-body .footnotes ol {
  padding-left: 1.1rem;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 0 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .topline { align-items: start; flex-direction: column; }
  .hero { padding-top: 2.4rem; }
  .section-head { align-items: start; flex-direction: column; }
}
