:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-soft: #f1ece4;
  --text: #23433b;
  --text-soft: #5e7069;
  --line: #dfd8ce;
  --accent: #b76e5d;
  --accent-dark: #9e5b4d;
  --sage: #afc3b0;
  --shadow: 0 14px 34px rgba(35, 67, 59, 0.08);
  --radius: 24px;
  --radius-small: 16px;
  --max-width: 1180px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

.narrow {
  max-width: 820px;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(241,236,228,0.55));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223, 216, 206, 0.8);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 600;
}

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

.site-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform var(--transition), opacity var(--transition);
}

/* Typography */

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
}

h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.2rem;
}

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

.lead {
  font-size: 1.1rem;
  max-width: 58ch;
}

.lead-small {
  font-size: 1.02rem;
  max-width: 54ch;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(175, 195, 176, 0.24);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* Buttons and pills */

.button-row,
.pill-row,
.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button-row,
.hero-actions {
  margin: 1.5rem 0;
}

.pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.hero-note span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(223, 216, 206, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface);
}

/* Layout */

.hero-grid,
.grid,
.contact-grid,
.about-layout,
.cta-inline,
.cards-2,
.cards-3,
.cards-4,
.profile,
.faq {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.grid-2,
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.about-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.cta-inline {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.profile {
  grid-template-columns: 320px 1fr;
  align-items: center;
}

.faq {
  grid-template-columns: repeat(2, 1fr);
}

/* Generic blocks */

.image-card,
.card,
.split-card,
.quote-panel,
.hero-card,
.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card,
.split-card,
.quote-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.card.soft {
  background: linear-gradient(180deg, #fff, #faf8f3);
}

.hero-card {
  background: linear-gradient(180deg, rgba(175,195,176,0.18), rgba(255,255,255,0.92));
  border-radius: 30px;
  padding: 1.2rem;
}

.highlight {
  background: linear-gradient(180deg, rgba(175,195,176,0.18), rgba(255,255,255,0.76));
  border-radius: 30px;
  padding: 1.5rem;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-card img,
.portrait-card img {
  min-height: 520px;
  object-fit: cover;
}

.overlay-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 320px;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-radius: 18px;
}

.overlay-note strong {
  display: block;
  margin-bottom: 0.45rem;
}

.overlay-note p,
.quote-panel p {
  margin: 0;
}

.quote-panel {
  background: linear-gradient(135deg, rgba(35,67,59,0.95), rgba(61,98,88,0.92));
  color: #fff;
  box-shadow: 0 20px 40px rgba(35,67,59,0.16);
}

.quote-panel p {
  color: rgba(255,255,255,0.9);
  font-size: 1.02rem;
}

.split-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1rem;
}

.left-on-desktop {
  justify-content: flex-end;
}

/* Hero image components for lesson pages */

.hero-visual {
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-quote {
  margin: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  max-width: 340px;
  box-shadow: 0 10px 28px rgba(35, 67, 59, 0.18);
}

.hero-quote strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: #23433b;
}

.hero-quote p {
  margin: 0;
  color: #4d645d;
  line-height: 1.5;
}

/* Profile image */

.profile-image {
  min-height: 340px;
  border-radius: 26px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

/* Section intros */

.section-intro,
.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-head p,
.section-intro p {
  margin: 0;
}

.page-hero {
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

/* Icons */

.icon-box,
.icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(175, 195, 176, 0.24);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.icon-box {
  width: 50px;
  height: 50px;
}

.icon {
  width: 48px;
  height: 48px;
}

/* Route cards and labels */

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

.route-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sage), var(--accent));
}

.route-meta {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* Lists */

.styled-list,
.list {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.styled-list li,
.list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--text-soft);
}

.styled-list li::before,
.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Links */

.text-link {
  color: var(--text);
  font-weight: 600;
}

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

/* FAQ / details */

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--text);
}

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

details p {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
}

/* CTA */

.cta {
  padding: 1rem 0 4rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(35,67,59,0.95), rgba(61,98,88,0.92));
  color: white;
  border-radius: 34px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(35,67,59,0.18);
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 58ch;
}

.cta-actions {
  justify-content: flex-end;
}

.cta .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.24);
}

.cta .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* Footer */

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.94rem;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-grid,
  .split-card,
  .about-layout,
  .cta-inline,
  .profile,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-3,
  .faq {
    grid-template-columns: 1fr 1fr;
  }

  .left-on-desktop,
  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 82px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.35rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .cards-2,
  .cards-3,
  .cards-4,
  .contact-grid,
  .hero-grid,
  .about-layout,
  .cta-inline,
  .faq,
  .profile {
    grid-template-columns: 1fr;
  }

  .image-card img,
  .portrait-card img {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .section {
    padding: 3rem 0;
  }

  .button-row,
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .overlay-note {
    position: static;
    max-width: none;
    border-radius: 0;
  }

  .card,
  .split-card,
  .quote-panel,
  .highlight,
  .cta-box,
  details {
    border-radius: 20px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-quote {
    max-width: none;
  }
}

.lesson-nav {
  background: linear-gradient(135deg, rgba(35,67,59,0.95), rgba(61,98,88,0.92));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(35,67,59,0.18);
}

.lesson-nav h2 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.lesson-nav .lead-small,
.lesson-nav p {
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 58ch;
}

.lesson-nav .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.lesson-nav .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.24);
  background: transparent;
}

.lesson-nav .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .lesson-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lesson-nav {
    border-radius: 20px;
  }
}

.phase-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.phase-nav-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.phase-nav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 67, 59, 0.18);
}

.phase-nav-card.is-active {
  background: linear-gradient(135deg, rgba(35,67,59,0.95), rgba(61,98,88,0.92));
  border-color: transparent;
}

.phase-nav-number {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.phase-nav-card.is-active .phase-nav-number {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}

.phase-nav-title {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.phase-nav-card.is-active .phase-nav-title {
  color: #fff;
}

.phase-nav-current {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 1024px) {
  .phase-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .phase-nav-grid {
    grid-template-columns: 1fr;
  }
}
