:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #1f1f1c;
  --muted: #64645f;
  --line: #d8d3c6;
  --accent: #a04323;
  --accent-2: #0f6a73;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, #efe5ce 0%, transparent 40%),
    radial-gradient(circle at 85% 0%, #e6efe5 0%, transparent 35%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--accent), white 30%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--paper), white 40%);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d06b36);
}

.brand strong {
  display: block;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.site-main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.lede {
  font-size: 1.08rem;
  color: color-mix(in oklab, var(--ink), black 15%);
  max-width: 68ch;
}

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

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  padding: clamp(1rem, 2vw, 1.8rem);
  box-shadow: 0 2px 12px rgb(0 0 0 / 4%);
}

.hero h1 a {
  text-decoration: none;
}

.section-head {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cards-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.story-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.card-body {
  padding: 1rem;
  flex: 1;
}

.story-card h3 a {
  text-decoration: none;
}

.topic-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: color-mix(in oklab, var(--paper), white 30%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
}

.topic-card a {
  text-decoration: none;
}

.digest {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.75rem 0 1rem;
  display: block;
}

.digest .intro {
  margin-top: 1.2rem;
}

.digest .intro h2 {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.archive-group + .archive-group {
  margin-top: 1.6rem;
}

.archive-list,
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li,
.topic-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 1rem;
  background: color-mix(in oklab, var(--paper), white 50%);
}

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

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footnote {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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


