:root {
  --cream: #f7efe8;
  --blush: #f0d5d0;
  --petal: #e8b4b0;
  --rose: #c47a7a;
  --ink: #3d2f2f;
  --ink-soft: #6b5555;
  --voucher: #fffaf7;
  --shadow: rgba(61, 47, 47, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, #fde8e4 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 90% 30%, #f3e0d8 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, #e8d4ce 0%, transparent 45%),
    var(--cream);
  overflow-x: hidden;
}

.petals {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.petals span {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 60% 60% 50% 50%;
  background: linear-gradient(145deg, var(--petal), transparent);
  opacity: 0.35;
  animation: drift 18s linear infinite;
}

.petals span:nth-child(1) { left: 8%; top: -10%; animation-duration: 22s; animation-delay: 0s; }
.petals span:nth-child(2) { left: 22%; top: -15%; width: 8px; height: 11px; animation-duration: 16s; animation-delay: -4s; opacity: 0.25; }
.petals span:nth-child(3) { left: 40%; top: -8%; animation-duration: 20s; animation-delay: -8s; }
.petals span:nth-child(4) { left: 55%; top: -20%; width: 12px; height: 16px; animation-duration: 24s; animation-delay: -2s; opacity: 0.2; }
.petals span:nth-child(5) { left: 70%; top: -12%; animation-duration: 17s; animation-delay: -6s; }
.petals span:nth-child(6) { left: 82%; top: -18%; width: 7px; height: 10px; animation-duration: 21s; animation-delay: -10s; }
.petals span:nth-child(7) { left: 15%; top: -25%; animation-duration: 19s; animation-delay: -12s; opacity: 0.18; }
.petals span:nth-child(8) { left: 92%; top: -5%; animation-duration: 15s; animation-delay: -3s; }

@keyframes drift {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  50% {
    transform: translateY(55vh) rotate(120deg) translateX(20px);
  }
  100% {
    transform: translateY(110vh) rotate(260deg) translateX(-15px);
  }
}

.scroll-hint {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 20;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.story {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1.5rem 20vh;
}

.chapter {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 0;
  opacity: 0.22;
  filter: blur(3px);
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.chapter.is-passed {
  opacity: 0.35;
  filter: blur(1px);
  transform: translateY(-12px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 400;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 3.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.lead em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35em;
  color: var(--ink);
  font-weight: 500;
}

.soft {
  opacity: 0.65;
  font-size: 0.9em;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--rose);
}

.body {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.35;
}

.body--next {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

.body strong {
  font-weight: 600;
  color: var(--rose);
}

.voucher {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  border-radius: 1.25rem;
  background: var(--voucher);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px var(--shadow),
    0 0 0 1px rgba(196, 122, 122, 0.12);
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.chapter--reveal.is-active .voucher {
  transform: scale(1);
}

.voucher__bloom {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 80%, rgba(232, 180, 176, 0.35), transparent 65%);
  pointer-events: none;
}

.voucher__label {
  position: relative;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 400;
}

.voucher__title {
  position: relative;
  margin: 0.65rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
}

.voucher__provider {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.voucher__icon {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin: 1.5rem auto 0;
  color: var(--petal);
}

.letter {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.letter--soft {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}

.sign-off {
  margin: 2rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.signature {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.role {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.fineprint--quiet {
  margin-top: 1rem;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .petals span {
    animation: none;
    opacity: 0.15;
  }

  .chapter {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .voucher {
    transform: none;
  }
}
