:root {
  --bg: #f4f1ea;
  --bg-strong: #ebe6f3;
  --surface: #f7f5fb;
  --surface-2: #ffffff;
  --text: #2a2a33;
  --muted: #6c6f7a;
  --border: #d8d0e2;
  --accent: #3e2360;
  --accent-soft: #7a63a6;
  --accent-dark: #2a173f;
  --gold: #b39a61;
  --slate: #4f5a7a;
  --deep: #2a2a33;
  --deep-muted: #c9c2d8;
  --white: #ffffff;
  --max-width: 1160px;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(39, 30, 20, 0.1);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid rgba(216, 208, 226, 0.85);
  backdrop-filter: blur(14px);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.logo,
.footer-logo {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo:hover,
.footer-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-cta,
.button,
.card-link,
.platform-link,
.nav-toggle {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 750;
}

.nav-links a {
  color: var(--text);
  padding: 0.45rem 0.15rem;
}

.nav-links a[aria-current="page"] {
  color: var(--accent-soft);
  box-shadow: inset 0 -2px var(--gold);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
}

.nav-cta,
.button.primary {
  background: var(--accent);
  color: var(--white);
}

.nav-cta:hover,
.button.primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(62, 35, 96, 0.42);
  color: var(--accent);
  background: rgba(247, 245, 251, 0.72);
}

.button.secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero,
.page-hero,
.section,
.cta-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.75rem 1.25rem;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3.8rem;
  padding-bottom: 3.8rem;
}

.hero-content {
  max-width: 660px;
}

.eyebrow,
.content-label,
.mini-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
}

.hero-copy,
.page-hero p {
  max-width: 700px;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.15rem -1rem -1rem 1.15rem;
  border: 1px solid rgba(122, 99, 166, 0.55);
  border-radius: var(--radius);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(62, 35, 96, 0.2), rgba(79, 90, 122, 0.08));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  border-top: 1px solid rgba(216, 208, 226, 0.72);
}

.section.compact {
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.section h2,
.cta-strip h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.section-heading p,
.section > p,
.cta-strip p {
  max-width: 640px;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.intro-strip {
  background: var(--deep);
  color: var(--white);
}

.intro-strip .section {
  border-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
}

.intro-grid h2 {
  color: var(--white);
}

.intro-grid p {
  color: var(--deep-muted);
}

.path-list {
  display: grid;
  gap: 0.85rem;
}

.path-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.intro-strip .path-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.path-item span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--deep);
  font-weight: 850;
}

.path-item strong {
  display: block;
  margin-bottom: 0.1rem;
}

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

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

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

.content-card,
.topic-card,
.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(39, 30, 20, 0.06);
}

.content-card h3,
.topic-card h3,
.resource-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.12;
}

.content-card p:not(.content-label),
.topic-card p,
.resource-card p {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--accent);
}

.card-link::after {
  content: " ->";
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.platform-link {
  min-height: 126px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

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

.platform-link strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.1;
}

.platform-link:hover {
  border-color: rgba(122, 99, 166, 0.72);
  text-decoration: none;
}

.cta-strip {
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, var(--accent), var(--slate));
  color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.cta-strip p {
  margin-left: auto;
  margin-right: auto;
  color: var(--deep-muted);
}

.cta-strip .button {
  margin-top: 1.3rem;
}

.page-hero {
  padding-bottom: 3.4rem;
}

.resource-list {
  max-width: 780px;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.resource-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0.25rem;
    padding-top: 0.4rem;
  }

  .nav-links.is-open a {
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--border);
  }

  .hero,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .content-grid,
  .topic-grid,
  .resource-grid,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav,
  .hero,
  .page-hero,
  .section,
  .cta-strip,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero,
  .page-hero,
  .section,
  .cta-strip {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 18vw, 4rem);
  }

  .section-heading {
    display: block;
  }

  .content-grid,
  .topic-grid,
  .resource-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
