
:root {
  --bg: #fcf7f0;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --surface-outline: rgba(85, 80, 59, 0.1);
  --text: #24333b;
  --muted: #5c6a70;
  --accent: #d96f4a;
  --accent-dark: #b14c2b;
  --sage: #7b9c8b;
  --sand: #f2dfc6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 247, 240, 0.96);
  border-bottom: 1px solid rgba(80, 70, 46, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(80, 70, 46, 0.1);
  padding: 6px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(80, 70, 46, 0.1);
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 12px 14px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: rgba(121, 156, 139, 0.14);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 38px 0 20px;
}

.hero-card,
.panel,
.article-card,
.contact-card,
.mini-card,
.toc,
.faq,
.related {
  background: var(--surface);
  border: 1px solid var(--surface-outline);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 162, 0.46);
  color: #7c4f32;
  font-size: 0.88rem;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); margin-top: 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }

.hero-copy p,
.lede,
.copy p,
.article-content p,
.article-content li,
.footer-grid p,
.contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.button {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.button:hover { background: var(--accent-dark); }

.ghost-button {
  background: rgba(123, 156, 139, 0.12);
  color: var(--text);
  border: 1px solid rgba(123, 156, 139, 0.16);
}

.hero-visual {
  overflow: hidden;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header p { margin: 0; color: var(--muted); max-width: 650px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card-copy {
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(123, 156, 139, 0.12);
  color: var(--text);
  font-size: 0.82rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(260px, 0.26fr);
  gap: 24px;
}

.article-content,
.sidebar-stack {
  min-width: 0;
}

.article-cover {
  overflow: hidden;
  margin-bottom: 20px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.lede {
  margin: 0 0 22px;
}

.takeaways {
  margin: 0 0 26px;
  padding: 22px 24px;
  background: rgba(255, 231, 202, 0.52);
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 111, 74, 0.12);
}

.takeaways h3 {
  margin-bottom: 10px;
}

.takeaways ul,
.copy ul,
.article-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.article-section {
  padding: 24px 0;
  border-top: 1px solid rgba(80, 70, 46, 0.08);
}

.toc,
.related,
.contact-card {
  padding: 22px;
}

.toc ul,
.related ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.toc li + li,
.related li + li {
  margin-top: 12px;
}

.toc a,
.related a,
.article-card a,
.mini-card a {
  text-decoration: none;
}

.inline-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer {
  padding: 36px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 20px;
  padding: 24px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-top: 10px;
}

.legal {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero,
  .article-layout,
  .footer-grid,
  .stats,
  .grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: rgba(252, 247, 240, 0.99);
    border: 1px solid rgba(80, 70, 46, 0.08);
    border-radius: 24px;
    padding: 12px;
    display: none;
    flex-direction: column;
  }

  .nav[data-open="true"] { display: flex; }
  .hero-copy { padding: 28px; }
}
