:root {
  --bg: #f5f2ea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fffdf8;
  --surface-soft: #efe7d7;
  --text: #171412;
  --muted: #655d53;
  --line: rgba(23, 20, 18, 0.1);
  --accent: #a1462b;
  --accent-strong: #7d301a;
  --accent-soft: #f6e1d6;
  --shadow: 0 18px 40px rgba(43, 32, 22, 0.08);
  --max: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 70, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f3ec 0%, #f2ede2 50%, #f8f6f1 100%);
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(161, 70, 43, 0.4);
  outline-offset: 3px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 236, 0.84);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.site-header .shell,
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .shell {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff url("/favicon.svg") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.3rem;
  font-size: 0.96rem;
}

.nav a {
  color: var(--muted);
}

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

main {
  padding-bottom: 4.5rem;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid,
.split-grid,
.topic-layout,
.footer-grid,
.three-up,
.two-up {
  display: grid;
  gap: 1.4rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.feature-list,
.path-card,
.topic-card,
.callout,
.footer-card,
.faq-card,
.article-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 238, 225, 0.92)),
    radial-gradient(circle at top right, rgba(161, 70, 43, 0.18), transparent 32%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 0.8rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lede {
  max-width: 56ch;
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.button {
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}

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

.text-link {
  color: var(--accent-strong);
}

.hero-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.hero-panel-top {
  padding: 1.2rem 1.2rem 0;
}

.hero-chart {
  position: relative;
  min-height: 100%;
  padding: 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 225, 214, 0.92)),
    linear-gradient(180deg, #fff, #f8efe5);
}

.hero-chart::before,
.hero-chart::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 20, 18, 0.12), transparent);
}

.hero-chart::after {
  inset: 1.5rem auto 1.5rem 1.5rem;
  width: 1px;
  height: auto;
}

.spark {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.9rem;
  min-height: 250px;
  padding-top: 2rem;
}

.spark span {
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(161, 70, 43, 0.32), rgba(125, 48, 26, 0.95));
}

.spark span:nth-child(1) { height: 42%; }
.spark span:nth-child(2) { height: 68%; }
.spark span:nth-child(3) { height: 88%; }
.spark span:nth-child(4) { height: 58%; }
.spark span:nth-child(5) { height: 76%; }

.spark-labels,
.mini-stats,
.tag-row,
.crumbs,
.faq-grid,
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spark-labels {
  margin-top: 0.9rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 1.5rem 0;
}

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

.mini-stats div,
.tag-row span,
.faq-chip,
.meta-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.mini-stats div {
  padding: 0.7rem 0.9rem;
  min-width: 150px;
}

.mini-stats strong {
  display: block;
  color: var(--text);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up,
.split-grid,
.topic-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.path-card,
.topic-card,
.faq-card,
.article-card,
.callout {
  padding: 1.4rem;
}

.panel h3,
.path-card h3,
.topic-card h3,
.faq-card h3,
.article-card h3 {
  margin-bottom: 0.55rem;
}

.path-card ul,
.panel ul,
.faq-card ul,
.article-card ul {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.path-card li,
.panel li,
.faq-card li,
.article-card li {
  margin-bottom: 0.55rem;
}

.path-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(247, 242, 233, 0.94));
}

.topic-card {
  position: relative;
  overflow: hidden;
}

.topic-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 70, 43, 0.18), transparent 62%);
}

.topic-card a,
.article-card a,
.path-card a,
.faq-card a {
  color: var(--accent-strong);
  font-weight: 700;
}

.feature-list {
  padding: 1.6rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 231, 215, 0.92));
}

.feature-list ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.85rem;
}

.quote {
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  font-size: 1.45rem;
  color: var(--text);
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(161, 70, 43, 0.08), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.75);
}

.callout strong {
  font-size: 1rem;
}

.faq-grid {
  align-items: flex-start;
}

.faq-chip,
.meta-chip,
.tag-row span {
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.topic-layout aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.topic-layout article {
  display: grid;
  gap: 1rem;
}

.crumbs {
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer {
  padding: 2rem 0 3.2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-top: 1.5rem;
}

.footer-card {
  padding: 1.2rem;
}

.footer-card a {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.footer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .three-up,
  .two-up,
  .split-grid,
  .topic-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.75rem;
  }

  h1 {
    max-width: 12ch;
  }

  .site-header .shell,
  .footer-top,
  .section-head {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero-copy,
  .hero-chart,
  .panel,
  .path-card,
  .topic-card,
  .faq-card,
  .article-card,
  .callout,
  .feature-list {
    padding: 1.15rem;
  }

  .button-row {
    flex-direction: column;
  }

  .button,
  .button.alt {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
