:root {
  --bg: #f5f2ec;
  --card: #fafaf8;
  --ink: #1c1a16;
  --muted: #6a6560;
  --faint: #8a8478;
  --sage: #4a6b5c;
  --quote: #eae6dc;
  --line: rgba(28, 26, 22, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--sage); }
a:hover { text-decoration: none; }

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

.home-template main.wrap {
  width: min(100% - 2.5rem, 64rem);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover { color: var(--ink); }

main { padding: 2.5rem 0 4rem; }

.kicker {
  margin: 0 0 0.5rem;
  color: var(--sage);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.dek {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.listing {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.listing:last-of-type { border-bottom: 1px solid var(--line); }

.listing time,
.essay time {
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing h2 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.45rem;
}

.listing h2 a {
  color: var(--ink);
  text-decoration: none;
}

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

.essay .page-intro { margin-bottom: 1.5rem; }

.post-body h2 { margin: 2rem 0 0.5rem; font-size: 1.45rem; }
.post-body h3 { margin: 1.5rem 0 0.4rem; font-size: 1.2rem; }
.post-body p { margin: 0.85rem 0; }
.post-body ul, .post-body ol { padding-left: 1.2rem; }
.post-body li + li { margin-top: 0.35rem; }
.post-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--quote);
  border-radius: 1.25rem;
}
.post-body img,
.kg-image,
.kg-width-wide img,
.kg-width-full img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.kg-card { margin: 1.5rem 0; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer p { margin: 0.75rem 0 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
}

.skip:focus {
  left: 0.75rem;
  z-index: 2;
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.4rem 0.7rem;
}

.hero {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.hero-copy { order: 2; }
.hero-mark {
  order: 1;
  width: 11rem;
  height: 11rem;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr) 14.5rem; }
  .hero-copy { order: 1; }
  .hero-mark {
    order: 2;
    width: 232px;
    height: 232px;
    justify-self: end;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3rem);
  line-height: 1.05;
}

.tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  background: var(--sage);
  color: #fdfbf7;
  font-size: 0.9rem;
  text-decoration: none;
}

.button:hover { text-decoration: none; color: #fdfbf7; }

.band { margin-top: 3.5rem; }

.band > h2,
.band-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.band-head a,
.section-dek {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.band-head a { color: var(--sage); }

.section-dek {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cards li {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.25rem;
}

.cards a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cards h3 {
  margin: 0;
  font-size: 1.25rem;
}

.cards p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards .step + h3 { margin-top: 0.5rem; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pills a {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(107, 140, 125, 0.1);
  padding: 0.35rem 0.75rem;
  color: var(--sage);
  font-size: 0.9rem;
  text-decoration: none;
}

.cta {
  margin-top: 3.5rem;
  border-radius: 1.5rem;
  background: #eef3f0;
  padding: 1.5rem;
}

.cta h2 { margin: 0; font-size: 1.5rem; }

.cta p {
  max-width: 36rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .cta { padding: 1.5rem 1.75rem; }
}
