:root {
  --bg: #f4efe5;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fffaf2;
  --ink: #172033;
  --muted: #566173;
  --line: rgba(23, 32, 51, 0.12);
  --accent: #de6b35;
  --accent-dark: #8c3413;
  --sage: #7fa286;
  --navy: #0f172a;
  --shadow: 0 24px 60px rgba(14, 23, 42, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(222, 107, 53, 0.18), transparent 22rem),
    radial-gradient(circle at top right, rgba(127, 162, 134, 0.16), transparent 24rem),
    linear-gradient(180deg, #f8f1e8 0%, #f3ecdf 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.7;
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

.wrap {
  width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 241, 232, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.wordmark span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-family: "Space Grotesk", sans-serif;
}

.main-nav a,
.footer-links a,
.tag {
  color: var(--muted);
}

.hero {
  padding: 4.75rem 0 2rem;
}

.hero-grid,
.footer-grid,
.article-shell {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: end;
}

.hero-panel,
.card,
.category-card,
.topic-card,
.aside-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 1.6rem;
}

.hero-panel p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 58ch;
}

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

.cta-row {
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section-shell {
  padding: 1.5rem 0 3rem;
}

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

.section-head p {
  color: var(--muted);
  max-width: 42ch;
}

.card-grid,
.category-grid,
.topic-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card,
.category-card,
.topic-card,
.aside-card {
  padding: 1.3rem;
}

.card h3,
.category-card h2,
.topic-card h3 {
  margin-bottom: 0.7rem;
}

.card p:last-child,
.category-card p:last-child,
.topic-card p:last-child {
  margin-bottom: 0;
}

.meta-row {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.article-hero {
  padding-bottom: 1rem;
}

.article-meta {
  margin-top: 1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

.article-shell {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  align-items: start;
  padding-bottom: 3rem;
}

.article-body {
  background: rgba(255, 255, 255, 0.65);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

.intro {
  font-size: 1.12rem;
  color: var(--ink);
}

.content-block + .content-block {
  margin-top: 2rem;
}

.numbered-list {
  padding-left: 1.25rem;
}

.numbered-list li + li {
  margin-top: 1rem;
}

.faq-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.faq-item + .faq-item {
  margin-top: 0.8rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.stacked-links {
  display: grid;
  gap: 0.9rem;
}

.site-footer {
  padding: 2rem 0 4rem;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-copy {
  color: var(--muted);
  max-width: 48ch;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .article-body,
  .hero-panel,
  .card,
  .category-card,
  .topic-card,
  .aside-card {
    padding: 1.1rem;
  }

  h1 {
    max-width: none;
  }
}
