:root {
  --bg: #f9f1eb;
  --paper: #fffdfa;
  --paper-alt: #f7eae3;
  --ink: #231f1a;
  --muted: #665f56;
  --line: rgba(35, 31, 26, 0.12);
  --accent: #cf2b14;
  --accent-strong: #9f1f0d;
  --sand: #f3d5c8;
  --clay: #ec9d87;
  --moss: #b8c19a;
  --blue: #b4c8d9;
  --wine: #cfb0b3;
  --night: #d9d7cf;
  --shadow: 0 18px 50px rgba(41, 29, 15, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 157, 135, 0.2), transparent 32rem),
    linear-gradient(180deg, #fff8f3 0%, var(--bg) 44%, #f6ece5 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 20;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #fff url("/assets/favicon.svg") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 8px 24px rgba(207, 43, 20, 0.14);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.97rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
}

.main-nav a[aria-current="page"],
.main-nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.guide-card,
.fact-block,
.article,
.article-side .side-box,
.note-band,
.ribbon-box,
.category-card,
.page-intro,
.guide-library .guide-card {
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(35, 31, 26, 0.08);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
  border-radius: 2rem;
}

.hero-panel {
  padding: 1.7rem;
  border-radius: 1.75rem;
}

.kicker,
.eyebrow,
.pill {
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.kicker,
.eyebrow {
  color: var(--accent-strong);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.3rem;
}

p,
li,
ol {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro,
.lede {
  font-size: 1.16rem;
  max-width: 62ch;
  color: #463f36;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.intent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.25rem;
}

.intent-strip span,
.path-step {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--accent-strong);
  background: rgba(207, 43, 20, 0.08);
  border: 1px solid rgba(159, 31, 13, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

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

.button.subtle {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(159, 31, 13, 0.18);
}

.hero-notes,
.simple-list,
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-notes li,
.simple-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.panel-list {
  display: grid;
  gap: 1rem;
}

.panel-list article {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.section,
.page-shell {
  padding: 1.2rem 0 2rem;
}

.section.alt {
  padding-top: 0.5rem;
}

.micro-section {
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.section-foot {
  margin-top: 1rem;
}

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

.category-grid.compact {
  margin: 2rem 0;
}

.category-card {
  text-decoration: none;
  border-radius: 1.5rem;
  padding: 1.35rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 31, 13, 0.22);
}

.pill {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.accent-sand { background: linear-gradient(180deg, rgba(243, 213, 200, 0.88), rgba(255, 253, 249, 0.9)); }
.accent-clay { background: linear-gradient(180deg, rgba(236, 157, 135, 0.4), rgba(255, 253, 249, 0.92)); }
.accent-moss { background: linear-gradient(180deg, rgba(184, 193, 154, 0.52), rgba(255, 253, 249, 0.92)); }
.accent-blue { background: linear-gradient(180deg, rgba(180, 200, 217, 0.55), rgba(255, 253, 249, 0.92)); }
.accent-wine { background: linear-gradient(180deg, rgba(241, 190, 183, 0.5), rgba(255, 253, 249, 0.92)); }
.accent-night { background: linear-gradient(180deg, rgba(217, 215, 207, 0.75), rgba(255, 253, 249, 0.92)); }

.split-layout,
.three-up,
.footer-grid,
.reading-grid {
  display: grid;
  gap: 1rem;
}

.split-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.guide-stack,
.guide-library {
  display: grid;
  gap: 1rem;
}

.guide-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-library {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-rail,
.path-grid,
.faq-layout {
  display: grid;
  gap: 1rem;
}

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

.mini-rail article,
.path-card,
.callout-box {
  padding: 1.2rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(35, 31, 26, 0.08);
  box-shadow: var(--shadow);
}

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

.path-card {
  min-height: 100%;
}

.guide-card {
  padding: 1.3rem;
  border-radius: 1.4rem;
  text-decoration: none;
}

.guide-card.wide {
  grid-column: 1 / -1;
}

.guide-card h3 a,
.guide-card h2 a {
  text-decoration: none;
}

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

.fact-block,
.page-intro,
.note-band {
  padding: 1.5rem;
  border-radius: 1.6rem;
}

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

.ribbon-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.84), rgba(243, 213, 200, 0.78));
}

.page-intro.narrow {
  max-width: 52rem;
}

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

.reading-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.55fr);
  align-items: start;
}

.faq-layout {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(35, 31, 26, 0.08);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 0.8rem;
}

.article {
  padding: 1.8rem;
  border-radius: 1.8rem;
}

.article.single {
  max-width: 56rem;
}

.article ol {
  padding-left: 1.4rem;
}

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

.article-side .side-box {
  padding: 1.3rem;
  border-radius: 1.35rem;
}

.article-side .side-box.emphasis {
  background: linear-gradient(180deg, rgba(243, 213, 200, 0.78), rgba(255, 253, 249, 0.92));
}

.callout-box {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(236, 157, 135, 0.26), rgba(255, 253, 249, 0.96));
}

.related-strip {
  margin-top: 2rem;
}

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

.related-card {
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(35, 31, 26, 0.08);
  box-shadow: var(--shadow);
}

.related-card span {
  color: var(--muted);
}

.decision-table {
  margin: 1.8rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.decision-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.decision-table div:last-child {
  border-bottom: 0;
}

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

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

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

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

.footer-grid a {
  text-decoration: none;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 0.8rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-head,
  .split-layout,
  .three-up,
  .footer-grid,
  .reading-grid,
  .category-grid,
  .guide-stack,
  .mini-rail,
  .path-grid,
  .faq-layout,
  .guide-library,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .ribbon-box,
  .note-band,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    gap: 0.7rem 1rem;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.58;
  }

  .wrap {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-panel,
  .article,
  .fact-block,
  .guide-card,
  .page-intro,
  .note-band,
  .ribbon-box,
  .category-card {
    border-radius: 1.2rem;
    padding: 1.2rem;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .intro,
  .lede,
  p,
  li {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }
}
