:root {
  --bg: #fff6ea;
  --bg-alt: #ffeed8;
  --surface: #fffdf7;
  --surface-soft: #ffe6cf;
  --text: #2f2a2f;
  --muted: #5f5a60;
  --primary: #1f8879;
  --primary-dark: #15695d;
  --accent: #ff8b70;
  --accent-soft: #ffd3b5;
  --accent-gold: #ffc769;
  --border: rgba(153, 92, 61, 0.22);
  --shadow: 0 14px 26px rgba(188, 117, 74, 0.18);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1140px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 420px at -5% -10%, rgba(255, 173, 132, 0.22), transparent 70%),
    radial-gradient(900px 420px at 105% 10%, rgba(114, 201, 170, 0.2), transparent 70%),
    radial-gradient(700px 320px at 50% 115%, rgba(255, 204, 112, 0.2), transparent 72%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  background: color-mix(in srgb, var(--bg) 82%, white);
  border-bottom: 1px solid rgba(135, 91, 58, 0.16);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Merienda", "Georgia", serif;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.brand-flower {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd7ba, #ffc0a7);
  color: #9b3f35;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.96rem;
  color: #5d5d5d;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.site-nav a:hover {
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  transform: translateY(-1px) rotate(-1deg);
}

.site-nav a.active {
  background: linear-gradient(120deg, var(--primary), #47ad98);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 10px;
  background: var(--primary-dark);
  margin: 5px 0;
}

.section,
.hero {
  position: relative;
  padding: clamp(3.6rem, 8vw, 5.8rem) 0;
}

main > .section:nth-of-type(odd),
main > .hero:nth-of-type(odd) {
  background: color-mix(in srgb, var(--surface) 85%, white);
}

main > .section:nth-of-type(even),
main > .hero:nth-of-type(even) {
  background: linear-gradient(180deg, #ffeede 0%, #ffe8d5 100%);
}

main > .section + .section::before,
main > .hero + .section::before,
main > .section + .hero::before,
main > .hero + .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffd3aa' d='M0,64C90,84,180,106,270,104C360,102,450,76,540,65C630,54,720,58,810,68C900,78,990,95,1080,97C1170,99,1260,85,1350,77C1410,72,1440,75,1440,75L1440,0L0,0Z'/%3E%3Cpath fill='%23fff7ee' fill-opacity='.86' d='M0,96C80,98,160,80,240,66C320,52,400,42,480,52C560,62,640,92,720,98C800,104,880,84,960,66C1040,48,1120,32,1200,33C1280,34,1360,52,1440,62L1440,0L0,0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

main > .section:nth-of-type(even)::before,
main > .hero:nth-of-type(even)::before {
  transform: scaleX(-1);
}

.section-soft {
  background: linear-gradient(180deg, #fff4e6 0%, #ffe9d4 100%) !important;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Merienda", "Georgia", serif;
  line-height: 1.18;
  color: #2f2b31;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: #5a535a;
  font-size: 1.1rem;
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.95rem;
}

.eyebrow::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 46% 54% 70% 30% / 36% 58% 42% 64%;
  background: linear-gradient(140deg, var(--accent), var(--accent-gold));
}

.hero {
  padding-top: clamp(4.2rem, 9vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.92fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-grid > * {
  animation: float-in 0.7s ease both;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes float-in {
  from {
    transform: translateY(18px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(130deg, var(--primary), #4fb39d);
  color: #fff;
  box-shadow: 0 10px 20px rgba(44, 140, 123, 0.26);
}

.btn-secondary {
  background: #fff9ef;
  color: var(--primary-dark);
  border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}

.section-intro {
  color: #5f5a60;
  margin-bottom: 1.6rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

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

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

.card {
  background: linear-gradient(165deg, #fffdf8 0%, #fff1df 100%);
  border: 2px solid var(--border);
  border-radius: 36% 64% 58% 42% / 28% 45% 55% 72%;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -65px;
  bottom: -88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 169, 133, 0.28), rgba(255, 169, 133, 0));
  pointer-events: none;
}

.card:nth-child(2n) {
  border-radius: 58% 42% 33% 67% / 43% 64% 36% 57%;
  transform: rotate(-0.85deg);
}

.card:nth-child(3n) {
  border-radius: 42% 58% 61% 39% / 49% 36% 64% 51%;
  transform: rotate(0.7deg);
}

.card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 18px 28px rgba(182, 106, 68, 0.2);
}

.card code,
.small-note {
  color: #676269;
  font-size: 0.9rem;
}

.placeholder-card {
  border-style: dashed;
  border-color: rgba(168, 107, 78, 0.55);
}

.hero-portrait {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.4rem;
}

.text-link {
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(21, 105, 93, 0.35);
  text-underline-offset: 3px;
}

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

.bullet-card {
  margin: 0;
  padding: 1.3rem;
  list-style: none;
  border-radius: 44% 56% 45% 55% / 29% 52% 48% 71%;
  background: linear-gradient(145deg, #fffbf3, #ffe8d5);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.bullet-card li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e0b99d;
}

.bullet-card li:last-child {
  border-bottom: 0;
}

.page-hero {
  padding-top: clamp(4rem, 7vw, 5.2rem);
  padding-bottom: clamp(2.4rem, 5vw, 3rem);
}

.longform p {
  margin-bottom: 1.18rem;
}

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

.toc-card {
  border: 2px solid var(--border);
  background: linear-gradient(150deg, #fff8ec, #ffedd5);
  border-radius: 999px;
  padding: 0.86rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  transition: transform 0.2s ease;
}

.toc-card:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.checklist li {
  margin-bottom: 0.55rem;
}

.details-card {
  margin-top: 1.2rem;
  border-radius: 32% 68% 50% 50% / 27% 42% 58% 73%;
  border: 2px solid var(--border);
  background: linear-gradient(165deg, #fffdf8, #ffedda);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.details-card summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.details-content {
  padding: 0 1.2rem 1.2rem;
}

.video-placeholder .mock-video {
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  border: 2px dashed #dba283;
  background: linear-gradient(135deg, #ffd8be, #fff6e6 72%);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #9f544a;
  margin-bottom: 1rem;
}

.quote-card .quote {
  font-size: 1.06rem;
  font-style: italic;
}

.quote-card .quote-author {
  color: #656169;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid rgba(158, 94, 69, 0.24);
  background: linear-gradient(180deg, #fff8ee, #ffecd9);
}

.footer-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: #625c62;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-callout,
  .grid.three,
  .toc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff6ea;
    border-bottom: 1px solid rgba(169, 109, 81, 0.3);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-nav a {
    width: 100%;
  }

  .hero,
  .section {
    padding-top: 3.3rem;
    padding-bottom: 3.3rem;
  }

  main > .section + .section::before,
  main > .hero + .section::before,
  main > .section + .hero::before,
  main > .hero + .hero::before {
    height: 44px;
    bottom: calc(100% - 1px);
  }

  .hero-grid,
  .split-callout,
  .grid.three,
  .toc-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card:nth-child(2n),
  .card:nth-child(3n),
  .details-card,
  .bullet-card {
    transform: none;
    border-radius: var(--radius-lg);
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }
}
