:root {
  --purple-deep: #32102a;
  --purple: #662050;
  --purple-bright: #940368;
  --rose: #b56b8c;
  --gold: #c6a87c;
  --beige: #f2e6e6;
  --cream: #fffbfb;
  --white: #ffffff;
  --ink: #4a3f45;
  --ink-soft: #756971;
  --border: rgba(102, 32, 80, 0.14);
  --shadow: 0 18px 48px rgba(102, 32, 80, 0.11);
  --shadow-soft: 0 10px 30px rgba(102, 32, 80, 0.08);
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(198, 168, 124, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 24%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

[id] {
  scroll-margin-top: 120px;
}

header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-deep) 0%, var(--purple-bright) 100%);
  box-shadow: 0 12px 28px rgba(50, 16, 42, 0.35);
}

.header-inner,
.container {
  max-width: 1120px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.header-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.header-title {
  font-weight: 600;
  text-align: center;
}

.header-progress {
  display: flex;
  gap: 8px;
  justify-self: end;
}

.header-progress span {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.header-progress span.done {
  background: var(--gold);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  align-items: center;
}

.header-nav a,
.header-nav > span {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  transition: all 0.2s ease;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-dropdown-toggle::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: visible;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu-wide {
  columns: 2;
  column-gap: 8px;
}

.nav-dropdown-menu-wide > a,
.nav-dropdown-menu-wide > .nav-dropdown-divider {
  break-inside: avoid;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--beige);
  color: var(--purple);
}

.nav-dropdown-menu a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--purple);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.nav-spacer {
  width: 16px;
}

.lesson-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--purple) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.lesson-num.disabled {
  background: #ccc;
  color: #888;
}

.nav-dropdown-item-disabled {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.nav-dropdown-item-disabled small {
  display: block;
  font-size: 11px;
  color: #bbb;
  margin-top: 2px;
}

.nav-dropdown-menu a:has(.lesson-num) {
  gap: 12px;
}

.hero {
  padding: 76px 20px 44px;
}

.hero-grid,
.lesson-focus,
.split-grid,
.cta-band,
.group-grid,
.resource-grid,
.recipe-grid,
.steps-grid,
.check-grid,
.faq-grid,
.stat-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.lesson-focus,
.split-grid,
.cta-band {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(102, 32, 80, 0.09);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow.inverse,
.badge.inverse {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 18px 0 18px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 10px;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 760px;
}

.hero-note {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--purple) 100%);
  box-shadow: 0 10px 24px rgba(102, 32, 80, 0.24);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--purple);
  border: 1px solid rgba(102, 32, 80, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.panel,
.card,
.hero-card,
.group-card,
.resource-card,
.stat,
.faq-item,
.step-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.card,
.group-card,
.resource-card,
.faq-item,
.step-card,
.stat {
  padding: 28px;
}

.hero-card {
  overflow: hidden;
}

.hero-card img,
.lesson-image {
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-card-copy {
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--rose);
  margin-bottom: 14px;
}

.section {
  padding: 72px 20px;
}

.section.alt {
  background: var(--beige);
}

.section.dark {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(181, 107, 140, 0.28), transparent 32%),
    linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 52%, var(--purple-bright) 100%);
}

.section.dark h2,
.section.dark h3,
.section.dark .lead,
.section.dark p,
.section.dark li,
.section.dark .section-intro {
  color: rgba(255, 255, 255, 0.9);
}

.section-intro {
  max-width: 760px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

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

.steps-grid,
.recipe-grid,
.group-grid,
.resource-grid,
.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-title,
.resource-card h3,
.group-card h3,
.step-card h3,
.faq-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p,
.resource-card p,
.group-card p,
.step-card p,
.faq-item p,
.stat p {
  color: var(--ink-soft);
  font-size: 15px;
}

.section.dark .card,
.section.dark .step-card,
.section.dark .resource-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section.dark .card p,
.section.dark .step-card p,
.section.dark .resource-card p {
  color: rgba(255, 255, 255, 0.82);
}

.icon-chip,
.number-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(102, 32, 80, 0.08);
  color: var(--purple);
  font-size: 20px;
  font-weight: 800;
}

.number-chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.lesson-focus {
  margin-top: 18px;
}

.lesson-copy .lesson-label,
.mini-label {
  color: var(--rose);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.check-list,
.bullet-list,
.resource-links,
.info-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li,
.bullet-list li,
.resource-links li,
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
}

.check-list li::before,
.bullet-list li::before,
.resource-links li::before,
.info-list li::before {
  flex: 0 0 auto;
  color: var(--purple);
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
}

.bullet-list li::before,
.info-list li::before {
  content: "•";
}

.resource-links li::before {
  content: "↗";
}

.section.dark .check-list li,
.section.dark .bullet-list li,
.section.dark .info-list li {
  color: rgba(255, 255, 255, 0.9);
}

.section.dark .check-list li::before,
.section.dark .bullet-list li::before,
.section.dark .info-list li::before {
  color: var(--gold);
}

.callout {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(102, 32, 80, 0.06);
  border: 1px solid var(--border);
}

.section.dark .callout {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.link-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-tile:hover,
.link-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.link-tile strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--ink);
}

.link-tile span {
  color: var(--ink-soft);
  font-size: 14px;
}

.qr {
  width: 120px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px;
}

.recipe-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-copy {
  padding: 18px 18px 20px;
}

.recipe-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.recipe-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.material-box {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
}

.material-box h4 {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 17px;
}

.material-box ul {
  margin-left: 18px;
  color: var(--ink-soft);
}

.material-box li + li {
  margin-top: 8px;
}

.stat-value {
  font-size: 36px;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(102, 32, 80, 0.1);
  color: var(--purple);
  font-weight: 800;
}

.section.dark .step-no {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.rules {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(102, 32, 80, 0.05);
  overflow: hidden;
}

.rules summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--purple);
}

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

.rules-body {
  padding: 0 20px 20px;
  color: var(--ink-soft);
}

.rules-body h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.rules-body ul {
  margin-left: 18px;
}

.rules-body li + li {
  margin-top: 8px;
}

.footer {
  padding: 32px 20px 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: var(--purple-deep);
  font-size: 14px;
}

.footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.muted {
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .lesson-focus,
  .split-grid,
  .cta-band,
  .group-grid,
  .resource-grid,
  .recipe-grid,
  .steps-grid,
  .check-grid,
  .faq-grid,
  .stat-grid,
  .card-grid,
  .material-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  header,
  .site-header {
    padding: 14px 16px;
  }

  .header-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left {
    align-items: center;
  }

  .header-progress {
    justify-self: center;
  }

  .header-nav {
    justify-content: center;
  }

  .nav-dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-card,
  .card,
  .group-card,
  .resource-card,
  .faq-item,
  .step-card,
  .stat {
    padding: 22px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .qr {
    width: 104px;
  }
}
