:root {
  --ink: #1d1210;
  --body: #332019;
  --subtle: #4b2b21;
  --paper: #fffdfa;
  --wash: #f8efe7;
  --teal: #006d68;
  --ruby: #781d3a;
  --gold: #a66a16;
  --line: #e8cdb8;
  --shadow: 0 18px 48px rgba(29, 18, 16, 0.14);
  color-scheme: light;
}

* { 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(--body);
  background:
    radial-gradient(circle at top left, rgba(0, 109, 104, 0.13), transparent 34rem),
    linear-gradient(180deg, #fffdfa 0%, #f8efe7 46%, #fffdfa 100%);
  line-height: 1.65;
}

body[data-accent="ruby"] { --accent: var(--ruby); }
body[data-accent="gold"] { --accent: var(--gold); }
body[data-accent="teal"], body:not([data-accent]) { --accent: var(--teal); }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--ruby); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fffdfa;
  padding: .75rem 1rem;
  z-index: 10;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.site-nav {
  display: flex;
  gap: .2rem;
  align-items: center;
}

.site-nav a {
  color: var(--body);
  text-decoration: none;
  padding: .55rem .75rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 720;
}

.site-nav a[aria-current="page"], .site-nav a:hover {
  color: #fffdfa;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 800;
}

.home-hero, .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
  min-height: calc(100vh - 92px);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
}

.home-hero { min-height: min(760px, calc(100vh - 84px)); }

.home-hero-copy, .page-hero-copy, .simple-hero {
  max-width: 760px;
}

.eyebrow, .section-kicker {
  margin: 0 0 .65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 900;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  max-width: 11ch;
}

.page-hero h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 6rem); }
.simple-hero h1 { max-width: 13ch; font-size: clamp(3rem, 7vw, 5.2rem); }

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--subtle);
  max-width: 680px;
  margin: 1.3rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary { background: var(--ink); color: #fffdfa; }
.button.ghost { color: var(--ink); background: #fffdfa; }

.home-hero-image, .hero-image {
  margin: 0;
  align-self: stretch;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.home-hero-image img, .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-band, .trust-band {
  margin: 0 clamp(1rem, 5vw, 4rem);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: var(--ink);
  color: #fffdfa;
  border-radius: 8px;
}

.intro-band p {
  max-width: 960px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.22;
}

.path-section, .chapters-section, .faq-section, .related-section, .simple-hero {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.network-section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
  background: #fffdfa;
  border-block: 1px solid var(--line);
}

.network-section.alt,
.home-network {
  background: transparent;
  border-block: 0;
}

.path-section h2, .chapters-section h2, .faq-section h2, .related-section h2, .network-section h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
}

.section-intro {
  max-width: 820px;
  margin: -0.4rem 0 1.5rem;
  color: var(--subtle);
  font-size: 1.08rem;
}

.path-grid, .card-grid, .venue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

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

.path-tile, .chapter-card, .venue-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 210px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.82);
  color: var(--body);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(29, 18, 16, 0.07);
}

.path-tile:hover, .chapter-card:hover, .venue-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--body);
}

.path-tile span, .chapter-card span, .venue-card span {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.path-tile strong, .chapter-card strong, .venue-card strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.1;
}

.chapter-card small, .path-tile small, .venue-card small {
  color: var(--subtle);
  font-size: .98rem;
  line-height: 1.5;
}

.venue-card {
  justify-content: space-between;
  min-height: 250px;
}

.venue-card div {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.venue-card b {
  color: var(--ink);
  font-size: .95rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.trust-band div {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.trust-band strong { font-size: 1rem; color: #fffdfa; }
.trust-band span { color: #fff5e6; }

.content-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.content-shell.compact {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.chapter-nav {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.84);
}

.chapter-nav p {
  margin: 0 0 .4rem;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}

.chapter-nav a {
  color: var(--body);
  text-decoration: none;
  border-radius: 6px;
  padding: .42rem .5rem;
  font-weight: 700;
  line-height: 1.25;
}

.chapter-nav a[aria-current="page"], .chapter-nav a:hover {
  background: var(--ink);
  color: #fffdfa;
}

.article-body {
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 4vw, 2.6rem);
  box-shadow: 0 12px 32px rgba(29, 18, 16, 0.06);
}

.article-body h2 {
  margin: 2.4rem 0 .8rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  margin: 1.6rem 0 .4rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.article-body p, .article-body li {
  font-size: clamp(1.03rem, 1.5vw, 1.13rem);
}

.article-body p { margin: 0 0 1.05rem; }
.article-body ul { padding-left: 1.3rem; }
.article-body li + li { margin-top: .4rem; }

.faq-section {
  background: #fff7ef;
  border-block: 1px solid var(--line);
}

.faq-section h2, .faq-section .section-kicker, .related-section h2, .related-section .section-kicker {
  max-width: 900px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 1rem;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

details p { margin: .7rem 0 0; color: var(--body); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
  background: var(--ink);
  color: #fffdfa;
}

.site-footer p { margin: .25rem 0 0; max-width: 520px; color: #fff5e6; }
.footer-title { color: #fffdfa !important; font-weight: 900; font-size: 1.15rem; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  justify-content: flex-end;
  align-content: start;
}

.site-footer a { color: #fffdfa; font-weight: 800; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    background: #fffdfa;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { border-radius: 8px; }
  .home-hero, .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-hero-image, .hero-image {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }
  .path-grid, .card-grid, .faq-list, .trust-band, .venue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-shell {
    grid-template-columns: 1fr;
  }
  .chapter-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter-nav p { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand span { max-width: 12ch; line-height: 1.05; }
  .site-header { align-items: flex-start; }
  .home-hero, .page-hero, .simple-hero {
    padding-top: 2rem;
  }
  h1, .page-hero h1, .simple-hero h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }
  .lede { font-size: 1.1rem; }
  .hero-actions, .button { width: 100%; }
  .button { padding-inline: .9rem; }
  .path-grid, .card-grid, .faq-list, .trust-band, .chapter-nav, .venue-grid {
    grid-template-columns: 1fr;
  }
  .path-tile, .chapter-card, .venue-card { min-height: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}