:root {
  color-scheme: light;
  font-family: ui-rounded, "Segoe UI", system-ui, sans-serif;
  color: #492838;
  background: #110e1b;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  --rose: #963f64;
  --pink: #f8d9e4;
  --cream: #fffaf6;
  --line: #ebcbd5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
[hidden] { display: none !important; }
.showing-intro { overflow: hidden; }

.loader {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0 20px 9svh;
  background: radial-gradient(ellipse at 50% 44%, #211925, #100e12 58%, #09080b);
}
.loader-title {
  margin: 0;
  text-align: center;
  color: #edc9de;
  font: italic clamp(1rem, 4vw, 1.3rem) Georgia, serif;
}
.garden-slot, .garden-scene, .garden-scene canvas, .garden-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.garden-scene { pointer-events: none; }
.garden-scene::before {
  content: "";
  position: absolute;
  inset: auto 15% 5% 15%;
  height: 13%;
  background: radial-gradient(ellipse, #000a, transparent 72%);
}
.garden-fallback { object-fit: contain; }
.garden-scene.is-intro {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 11;
  transform-origin: top left;
}
.showing-intro .bouquet-frame { overflow: visible; }
.hero {
  min-height: 100svh;
  padding: 24px clamp(20px, 6vw, 96px) 52px;
  color: #fff1f5;
  --rose: #edb3d0;
  --line: #624954;
  --pink: #33232e;
  background: radial-gradient(ellipse at 82% 44%, #241a26, transparent 55%), #100e12;
}
.header, .hero-layout { width: min(100%, 1160px); margin: auto; }
.header, .header nav, .wordmark { display: flex; align-items: center; }
.header { justify-content: space-between; gap: 12px; }
.header a, .button, .back { text-decoration: none; }
.wordmark { gap: 9px; font-weight: 750; white-space: nowrap; }
.logo, .letter-seal {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--rose);
  background: var(--pink);
}
.header nav {
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #201820;
}
.header nav a {
  padding: 8px 13px;
  border-radius: 99px;
  font-size: .83rem;
  font-weight: 650;
  white-space: nowrap;
}
.header nav a:hover { background: var(--pink); }
.header nav a:first-child { background: #372833; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 6vw, 92px);
  min-height: calc(100svh - 116px);
  padding-top: 38px;
}
.eyebrow {
  color: var(--rose);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.intro .eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  padding: 8px 14px;
  background: #211820;
  border: 1px solid var(--line);
  border-radius: 99px;
}
h1 {
  margin: 0;
  font-size: clamp(4rem, 8.7vw, 8rem);
  font-weight: 850;
  letter-spacing: -.085em;
  line-height: .82;
}
h1 em {
  display: block;
  color: var(--rose);
  font: italic 400 1.04em/.96 Georgia, serif;
  letter-spacing: -.09em;
}
.intro-copy {
  max-width: 31ch;
  margin: 24px 0;
  color: #e0c9d3;
  font-size: clamp(.98rem, 1.6vw, 1.14rem);
  line-height: 1.65;
}
.button, .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 99px;
  font-weight: 750;
}
.button {
  padding: 13px 17px;
  color: #2b1525;
  background: var(--rose);
  box-shadow: 0 5px 0 #6d2948;
  transition: background-color .2s, transform .2s;
}
.button:hover { background: #f4c5dd; transform: translateY(-2px); }
.button span { padding-left: 4px; }

.bouquet-card {
  width: min(100%, 465px);
  margin: 0 auto;
  padding: 11px;
  border: 1px solid #46343f;
  border-radius: 50% 50% 27px 27px / 38% 38% 27px 27px;
  background: #211820;
  box-shadow: 0 20px 55px #0008;
}
.bouquet-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  border-radius: 50% 50% 19px 19px / 41% 41% 19px 19px;
  background: radial-gradient(ellipse at 50% 45%, #2b202e, #100d13 72%);
}
figcaption { padding: 10px 0 4px; text-align: center; color: #e4c8d7; font-size: .85rem; font-weight: 650; }
figcaption span { margin-right: 4px; color: var(--rose); }

.letter-section {
  padding: clamp(45px, 8vw, 96px) 20px 58px;
  text-align: center;
  background: #fae5eb;
}
.letter {
  position: relative;
  max-width: 650px;
  margin: 0 auto 24px;
  padding: clamp(26px, 7vw, 58px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 16px 46px #834b6318;
}
.letter-seal { position: absolute; top: 23px; right: 23px; }
.letter .eyebrow { margin: 0 0 12px; }
.letter h2 { margin: 0 0 20px; color: var(--rose); font: italic clamp(2.65rem, 7vw, 4rem)/1 Georgia, serif; }
.letter p:not(.eyebrow) { font-size: 1.03rem; line-height: 1.75; }
.letter .signoff { margin-bottom: 0; color: var(--rose); font-family: Georgia, serif; font-style: italic; }
.back { padding: 10px 16px; border: 1px solid #dcb3c3; font-size: .87rem; }
.back:hover { background: #fff8f4; }

@media (max-width: 690px) {
  .hero { padding: 16px 16px 34px; }
  .hero-layout { grid-template-columns: 1fr; gap: 31px; padding-top: 38px; text-align: center; }
  .intro .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(2.65rem, 11.7vw, 5rem); }
  h1 em { display: inline; }
  .intro-copy { margin: 14px auto 18px; }
  .bouquet-card { width: min(77vw, 345px); padding: 8px; }
  .bouquet-frame { aspect-ratio: 1.1; }
}

@media (max-width: 350px) {
  .wordmark { font-size: .8rem; gap: 5px; }
  .logo { width: 30px; }
  .header nav a { padding-inline: 7px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) { scroll-behavior: auto; }
  :root:not([data-motion="play"]) *,
  :root:not([data-motion="play"]) *::before,
  :root:not([data-motion="play"]) *::after { animation: none !important; transition: none !important; }
}

.forgiveness {
  position: fixed;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100% - 24px);
  padding: 28px clamp(18px, 5vw, 34px) 16px;
  text-align: center;
  color: #492838;
  border: 1px solid #edc8d9;
  border-radius: 28px;
  background: radial-gradient(ellipse at top, #ffe7f0, #fffaf6 67%);
  box-shadow: 0 24px 90px #0008;
}
.forgiveness[open] { animation: question-in .32s cubic-bezier(.2,.72,.35,1.18) both; }
.forgiveness::backdrop { background: #100b16bb; backdrop-filter: blur(5px); }
.forgiveness button { font: inherit; cursor: pointer; }
.forgiveness button:focus-visible { outline: 2px solid #963f64; outline-offset: 3px; }
.forgiveness-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f7dce8;
  color: #693c55;
  font-size: 1.3rem !important;
}
.forgiveness .eyebrow { margin: 16px 0 7px; }
.forgiveness h2 { margin: 0; color: #903e66; font: italic clamp(1.85rem, 8vw, 2.65rem)/1.07 Georgia, serif; }
.forgiveness p:not(.eyebrow) { margin: 14px 0 4px; line-height: 1.55; }

.love-envelope {
  position: relative;
  width: 82px;
  height: 55px;
  margin: 23px auto 0;
  border-radius: 7px;
  background: #ca7199;
  perspective: 250px;
}
.envelope-note {
  position: absolute;
  inset: 3px 10px 5px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fff6fa;
  color: #bb5480;
  font-size: 1.4rem;
}
.envelope-front, .envelope-flap { position: absolute; inset: 0; border-radius: inherit; }
.envelope-front { background: #eca9c5; clip-path: polygon(0 13%, 50% 62%, 100% 13%, 100% 100%, 0 100%); }
.envelope-flap {
  background: #df8fb0;
  clip-path: polygon(0 0, 100% 0, 50% 64%);
  transform-origin: top;
}
.is-opening .envelope-flap { animation: envelope-open .4s ease both; }

.forgiveness-choices {
  display: grid;
  grid-template-columns: minmax(74px, 100px) minmax(102px, 128px);
  justify-content: center;
  align-items: start;
  gap: 16px;
  margin: 14px auto 0;
}
.forgiveness-yes, .forgiveness-no {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 750 !important;
}
.forgiveness-yes { border: 1px solid #903e66; background: #903e66; color: #fff9fb; }
.forgiveness-yes:hover { background: #793154; }
.dodge-lane { position: relative; min-height: 92px; }
.forgiveness-no {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #d9abc1;
  background: #fff7fb;
  color: #693c55;
}
.forgiveness-no[data-position="1"] { transform: translate(30px, 46px); }
.forgiveness-no[data-position="2"] { transform: translate(0, 46px); }

@keyframes question-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes envelope-open { to { transform: rotateX(165deg); } }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .forgiveness[open] { animation: none; }
}

.loader { overflow: hidden; isolation: isolate; padding-bottom: 6svh; }
.loader-garden {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(230px circle at var(--glow-x, 50%) var(--glow-y, 44%), #bc6b993d, transparent 80%),
    radial-gradient(ellipse at 24% 69%, #7a3d6855, transparent 51%),
    radial-gradient(ellipse at 79% 23%, #6754a854, transparent 48%),
    linear-gradient(150deg, #10101e, #231325 65%, #0f0d15);
}
.loader-garden::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background:
    radial-gradient(circle at 17px 21px, #fbd7e8 0 1px, transparent 2px) 0 0 / 113px 137px,
    radial-gradient(circle at 44px 51px, #b7a4ff 0 1px, transparent 2px) 20px 0 / 167px 149px,
    radial-gradient(circle at 75px 37px, #fbd7e8 0 1px, transparent 2px) 0 0 / 209px 173px;
}
.loader-caption { display: grid; justify-items: center; gap: 9px; }
.loader-interact {
  padding: 7px 13px;
  border: 1px solid #e4a7c76b;
  border-radius: 99px;
  background: #301b30;
  color: #fbe0ef;
  font: 650 .76rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.loader-interact:hover { background: #57304e; }
.wish-spark {
  position: absolute;
  pointer-events: none;
  color: #ffe0ed;
  text-shadow: 0 0 10px #f2a9db;
  animation: wish-rise .65s ease-out both;
}
@keyframes wish-rise {
  from { transform: translate(-50%, -50%) scale(.45); }
  to { transform: translate(var(--x), var(--y)) scale(1.3); opacity: 0; }
}

.forgiveness[open].is-opening {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 43%, #6a3659, #26152d 54%, #110e1a);
  animation: cut-in .42s ease-out both;
}
.forgiveness.is-opening > :is(.eyebrow, h2, #forgiveness-message, .forgiveness-choices) {
  display: none;
}
.forgiveness.is-opening .forgiveness-close {
  z-index: 3;
  background: #f8d8e62a;
  color: #fff0f8;
}
.forgiveness.is-opening .love-envelope {
  z-index: 1;
  margin: 0;
  width: clamp(146px, 35vw, 235px);
  height: auto;
  aspect-ratio: 82 / 55;
  border-radius: 12px;
  box-shadow: 0 20px 90px #0b0317a6, 0 0 85px #ed95c84d;
  animation: cut-envelope 2.85s cubic-bezier(.22,.75,.25,1) both;
}
.forgiveness.is-opening .envelope-note { font-size: clamp(2rem, 6vw, 4rem); animation: cut-note 1.1s 1.15s cubic-bezier(.21,.77,.27,1) both; }
.forgiveness.is-opening .envelope-flap { animation: envelope-open .57s .65s ease both; }

.cut-caption {
  position: absolute;
  top: min(calc(50% + 88px), 75%);
  width: 100%;
  padding: 0 18px;
  color: #fff0f7;
  animation: cut-caption-in .75s 1.48s ease both;
}
.forgiveness .cut-caption .eyebrow { color: #f2adc9; }
.forgiveness .cut-caption .cut-title { margin: 0; font: italic clamp(2rem, 7vw, 4rem)/1.1 Georgia, serif; }
.cut-petals { position: absolute; inset: 0; pointer-events: none; }
.cut-petals span {
  position: absolute;
  top: 46%;
  left: 50%;
  width: clamp(9px, 3vw, 22px);
  aspect-ratio: .74;
  border-radius: 65% 35% 64% 36%;
  background: linear-gradient(135deg, #ffd5e8, #d879a9);
  box-shadow: 0 0 16px #ef9ecf55;
  animation: cut-petal 1.55s calc(.8s + var(--delay)) ease-out both;
}
.cut-petals span:nth-child(3n) { background: linear-gradient(135deg, #ffe8c7, #e6a785); }
.forgiveness[open].is-dissolving { animation: handoff-hold .48s linear both; }
@keyframes handoff-hold { from, to { opacity: 1; } }
.forgiveness.is-dissolving::backdrop { animation: cut-out .48s ease-in both; }
@keyframes cut-in { from { opacity: 0; } }
.forgiveness.is-dissolving::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #fae5eb;
  animation: cut-in .48s ease both;
}
@keyframes cut-out { to { opacity: 0; } }
@keyframes page-turn { from { opacity: 0; transform: translateY(12px); } }
@keyframes cut-envelope {
  0% { opacity: 0; transform: translateY(30px) scale(.48) rotate(-9deg); }
  25% { opacity: 1; transform: scale(1) rotate(-4deg); }
  50%, 100% { transform: translateY(-12%) scale(1.04); }
}
@keyframes cut-note {
  to { transform: translateY(-72%) rotate(-7deg); }
}
@keyframes cut-caption-in {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes cut-petal {
  0% { opacity: 0; transform: scale(.15); }
  21% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--turn)) scale(.7); }
}
@media (max-height: 470px) {
  .forgiveness.is-opening .love-envelope { width: min(30vh, 160px); }
  .cut-caption { top: 69%; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .wish-spark,
  :root:not([data-motion="play"]) .forgiveness[open].is-opening,
  :root:not([data-motion="play"]) .forgiveness[open].is-dissolving,
  :root:not([data-motion="play"]) .forgiveness.is-opening .love-envelope,
  :root:not([data-motion="play"]) .forgiveness.is-opening .envelope-note,
  :root:not([data-motion="play"]) .forgiveness.is-opening .envelope-flap,
  :root:not([data-motion="play"]) .cut-caption,
  :root:not([data-motion="play"]) .cut-petals span { animation: none; }
}

.garden-touch, .garden-hearts {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.garden-touch {
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.garden-touch:hover {
  background: radial-gradient(100px circle at var(--touch-x, 50%) var(--touch-y, 38%), #ffc1e222, transparent);
}
.garden-touch:focus-visible { outline: 2px solid #edb3d0; outline-offset: -5px; }
.garden-hearts { z-index: 2; pointer-events: none; }
.garden-hearts span {
  position: absolute;
  color: #ffbbdc;
  font-size: 1.25rem;
  text-shadow: 0 0 14px #fc9bce;
  animation: garden-heart .82s cubic-bezier(.22,.73,.35,1) both;
}
figcaption .garden-hint {
  display: block;
  margin: 4px 0 0;
  color: #edb3d0;
  font-size: .76rem;
  font-weight: 500;
}
@keyframes garden-heart {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--drift), var(--rise)) scale(1.15); }
}

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 31px 29px, #f6c6d65c 0 1px, transparent 1.7px) 0 0 / 137px 157px,
    radial-gradient(circle at 41px 65px, #c4a6f45c 0 1px, transparent 2px) 37px 11px / 211px 193px,
    radial-gradient(ellipse at 83% 34%, #70436c78, transparent 54%),
    radial-gradient(ellipse at 6% 88%, #68405a82, transparent 45%),
    linear-gradient(145deg, #110e1b 10%, #241627 66%, #121018);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background: url("tulips.svg") -130px calc(100% + 90px) / clamp(310px, 43vw, 620px) auto no-repeat;
}
.hero .header, .hero-layout { position: relative; }
:root:has(.letter-page), .letter-page { background: #fae5eb; }
.letter-page { min-height: 100svh; }
.letter-page .letter-section {
  min-height: 100svh;
  background:
    radial-gradient(circle at 25px 23px, #b8678c45 0 1px, transparent 1.7px) 0 0 / 105px 117px,
    radial-gradient(ellipse at 12% 25%, #f7c8dc, transparent 47%),
    radial-gradient(ellipse at 95% 70%, #ebd8f0, transparent 47%),
    #fae5eb;
}
.letter-page .notebook { animation: notebook-arrive .8s cubic-bezier(.21,.73,.28,1) both; }
.letter-page .back { animation: page-turn .48s .24s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .letter-page .letter,
  :root:not([data-motion="play"]) .letter-page .back { animation: none; }
}

:root {
  --romantic-font: "Telma", "Segoe Script", "Palatino Linotype", Georgia, serif;
  --rounded-font: "Satoshi", ui-rounded, "Trebuchet MS", "Segoe UI", sans-serif;
  font-family: var(--rounded-font);
}
.hero h1 {
  font-family: var(--romantic-font);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
}
.hero h1 em {
  font-family: var(--romantic-font);
  font-style: normal;
  font-weight: 500;
  letter-spacing: inherit;
}
.loader-title, .forgiveness h2, .forgiveness .cut-caption .cut-title, .letter h2, .letter .signoff {
  font-family: var(--romantic-font);
  font-style: normal;
  font-weight: 500;
}
.letter p:not(.eyebrow) { font-size: 1.06rem; }
.letter p.signoff { font-family: var(--romantic-font); font-size: 1.28rem; }
.loader-interact { font-family: var(--rounded-font); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--sky-x, 53%) var(--sky-y, 35%), #eaa0d147, transparent 85%);
  opacity: .32;
  transition: opacity .35s ease;
}
.hero.sky-lit::after { opacity: .95; }
.welcome-stars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sky-button {
  display: block;
  margin: 17px 0 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: #f3c8df;
  font: 700 .83rem var(--rounded-font);
  cursor: pointer;
}
.sky-button span { margin-right: 4px; }
.sky-button:hover, .sky-button[aria-pressed="true"] { border-color: #edb3d066; background: #f4b9dc1f; }
@media (max-width: 690px) {
  .sky-button { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .hero::after { transition: none; }
}

.sky-heart-burst { position: absolute; inset: 0; }
.sky-heart-star {
  position: absolute;
  color: #ffe0f0;
  font-size: .91rem;
  line-height: 1;
  text-shadow: 0 0 9px #ff8ecc;
  animation: sky-heart 1.85s var(--delay) both;
  will-change: transform, opacity;
}
@keyframes sky-heart {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45);
    animation-timing-function: cubic-bezier(.38, .05, .26, 1);
  }
  40%, 62% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 8px)) scale(.84);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .sky-heart-star { visibility: hidden; }
}

.letter-page .notebook {
  --rule: #b9abc743;
  max-width: 740px;
  padding: clamp(28px, 6vw, 54px) clamp(18px, 6vw, 56px) clamp(25px, 6vw, 48px) clamp(39px, 10vw, 88px);
  border-color: #dfc5cc;
  border-radius: 10px 20px 20px 10px;
  background:
    linear-gradient(90deg, transparent 0 calc(clamp(39px, 10vw, 88px) - 12px),
      #db8ba27a calc(clamp(39px, 10vw, 88px) - 12px) calc(clamp(39px, 10vw, 88px) - 10px), transparent 0),
    linear-gradient(110deg, #fff5ea, #fffaf3 52%, #fff3ef);
  box-shadow: 4px 5px 0 #f7e5e9, 5px 6px 0 #dbc2cb, 9px 10px 0 #f6e3e9, 12px 21px 45px #66354926;
}
.notebook::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 6px;
  width: clamp(13px, 4vw, 35px);
  pointer-events: none;
  background: radial-gradient(ellipse 6px 4px at 50% 15px, #986d82 83%, transparent) 0 0 / 100% 28px;
  opacity: .7;
}
.notebook .eyebrow { padding-right: 54px; }
.notebook-writing {
  --line-height: 1.85rem;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line-height) - 1px),
    var(--rule) 0 var(--line-height)) 0 -.18rem;
}
.letter .notebook-writing p {
  margin: 0;
  font-size: 1.04rem;
  line-height: var(--line-height);
}
.letter .notebook-writing p + p { margin-top: var(--line-height); }
.notebook-writing strong { color: #873d62; }

.notebook-stamp {
  border: 1px dashed #ce8da8;
  cursor: pointer;
  font: 700 1.3rem/1 system-ui, sans-serif;
}
.notebook-stamp[aria-pressed="true"] {
  background: #efc1d6;
  animation: stamp-heart .35s ease-out;
}
@keyframes stamp-heart { 45% { transform: scale(1.2) rotate(-12deg); } }

.notebook-keepsakes {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.notebook .signoff { line-height: 1.5; margin: 0; }
.notebook-photo {
  position: relative;
  width: min(100%, 205px);
  margin: 0;
  padding: 7px 7px 9px;
  border: 1px solid #ecd7cd;
  background: #fffcf5;
  box-shadow: 2px 5px 11px #66354930;
  transform: rotate(3deg);
  transition: transform .23s ease;
}
.notebook-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -9px;
  left: calc(50% - 31px);
  width: 62px;
  height: 19px;
  pointer-events: none;
  background: repeating-linear-gradient(125deg, #e8aac6ab 0 5px, #f4cadea8 5px 10px);
  transform: rotate(-7deg);
}
.notebook-photo:hover, .notebook-photo:focus-within { transform: rotate(0) translateY(-3px); }
.notebook-photo a { display: block; color: #874763; text-decoration: none; }
.notebook-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 77%;
}
.notebook-photo span { display: block; padding-top: 6px; text-align: center; font-size: .75rem; font-weight: 700; }

.photo-viewer {
  width: max-content;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: #fffaf3;
  overflow: visible;
}
.photo-viewer[open] { animation: question-in .25s ease-out both; }
.photo-viewer::backdrop { background: #20101ddd; }
.photo-viewer img { display: block; max-width: calc(100vw - 42px); max-height: 83svh; border-radius: 8px; }
.photo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff7f4;
  color: #793154;
  font: 700 1.3rem/1 system-ui, sans-serif;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .notebook-stamp[aria-pressed="true"],
  :root:not([data-motion="play"]) .photo-viewer[open] { animation: none; }
  :root:not([data-motion="play"]) .notebook-photo { transition: none; }
}

.letter-page .letter-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 19%, #fff7e8, transparent 61%),
    radial-gradient(ellipse at 8% 35%, #efbad7, transparent 48%),
    radial-gradient(ellipse at 94% 64%, #c5addf, transparent 62%),
    linear-gradient(160deg, #f9dce9, #f2d7e8 58%, #dfcbe9);
}
.letter-garden {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 27px 31px, #fff8f3ba 0 1.3px, transparent 2px) 0 0 / 119px 137px,
    radial-gradient(circle at 79px 76px, #fff8f3a8 0 1px, transparent 2px) 0 0 / 179px 191px;
}
.letter-garden::before, .letter-garden::after {
  content: "";
  position: absolute;
  width: clamp(170px, 31vw, 390px);
  aspect-ratio: 1;
  background: url("tulips.svg") center / contain no-repeat;
  opacity: .26;
}
.letter-garden::before { top: 4%; left: -6%; transform: rotate(-18deg); }
.letter-garden::after { bottom: 1%; right: -6%; transform: rotate(17deg) scaleX(-1); }
.letter-garden span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(9px, 1.7vw, 19px);
  aspect-ratio: .75;
  border-radius: 70% 33% 65% 37%;
  background: linear-gradient(135deg, #fff0fa, #d976a6 85%);
  box-shadow: 0 2px 9px #a45b8755;
  animation: letter-petal 11s var(--delay) ease-in-out infinite alternate;
}
.letter-garden span:nth-child(even) { background: linear-gradient(135deg, #fff3fd, #a88bd7); }

@keyframes letter-petal {
  from { opacity: .32; transform: translateY(-18px) rotate(-27deg); }
  55% { opacity: .82; }
  to { opacity: .42; transform: translate(var(--sway), 56px) rotate(63deg); }
}
@keyframes notebook-arrive {
  from { opacity: 0; transform: translateY(24px) rotate(-1.4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .letter-page .notebook,
  :root:not([data-motion="play"]) .letter-garden span { animation: none; }
  :root:not([data-motion="play"]) .letter-garden span { opacity: .55; }
}

.letter-garden {
  background:
    radial-gradient(ellipse 160px 130px at var(--garden-x, 50%) var(--garden-y, 78%), #fffaf2af, transparent 85%),
    radial-gradient(circle at 27px 31px, #fff8f3ba 0 1.3px, transparent 2px) 0 0 / 119px 137px,
    radial-gradient(circle at 79px 76px, #fff8f3a8 0 1px, transparent 2px) 0 0 / 179px 191px;
}
.letter-garden.garden-lit {
  background-color: #e88fb627;
}
.letter-petal-burst { position: absolute; }
.letter-petal-burst i {
  position: absolute;
  width: 13px;
  height: 17px;
  border-radius: 70% 33% 65% 37%;
  background: linear-gradient(135deg, #fff0fa, #d976a6);
  animation: letter-petal-burst 1.12s var(--delay) ease-out both;
}
.letter-petal-burst i:nth-child(even) { background: linear-gradient(135deg, #fff3fd, #a88bd7); }
@keyframes letter-petal-burst {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  25% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--drift-x), var(--drift-y)) rotate(110deg) scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .letter-petal-burst { visibility: hidden; }
}

@media (max-width: 690px) {
  .hero-layout { min-height: 0; gap: 24px; padding-top: 30px; }
  .hero .intro-copy { margin-block: 12px 16px; }
  .hero .sky-button { margin-top: 12px; }
  .hero .bouquet-card { width: min(79vw, 330px); }
  .loader { padding-bottom: max(16px, env(safe-area-inset-bottom), 4svh); }
}

.garden-left { --plant-delay: .16s; }
.garden-center { --plant-delay: 0s; }
.garden-right { --plant-delay: .29s; }
.garden-leaf, .garden-bloom {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.is-intro .garden-stem {
  stroke-dasharray: 1;
  animation: stem-grow 1.65s var(--plant-delay) cubic-bezier(.36,.06,.24,1) both;
}
.is-intro .garden-leaf { animation: leaf-open .98s calc(.55s + var(--plant-delay)) ease-out both; }
.is-intro .garden-bloom { animation: mobile-bloom 1.36s calc(1.35s + var(--plant-delay)) cubic-bezier(.25,.68,.28,1) both; }
.garden-scene:not(.is-intro) .garden-bloom {
  animation: illustrated-breeze 4.8s calc(-1s - var(--plant-delay) * 7) ease-in-out infinite alternate;
}
.garden-offscreen:not(.is-intro) .garden-bloom { animation-play-state: paused; }

@keyframes stem-grow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes leaf-open { from { opacity: 0; transform: scale(.25, .12); } }
@keyframes mobile-bloom {
  from { opacity: 0; transform: scale(.16, .25); }
  25% { opacity: 1; transform: scale(.38, .59); }
}
@keyframes illustrated-breeze {
  from { transform: rotate(-1.3deg); }
  to { transform: rotate(1.8deg); }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="play"]) .is-intro .garden-stem,
  :root:not([data-motion="play"]) .is-intro .garden-leaf,
  :root:not([data-motion="play"]) .is-intro .garden-bloom,
  :root:not([data-motion="play"]) .garden-scene:not(.is-intro) .garden-bloom { animation: none; }
  :root:not([data-motion="play"]) .is-intro .garden-stem { stroke-dasharray: none; }
}

.motion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 5px;
}
.motion-controls button {
  padding: 6px 10px;
  border: 0;
  border-radius: 99px;
  color: #f3c8df;
  background: transparent;
  font: 600 .78rem var(--rounded-font);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.motion-controls button:hover { background: #f4b9dc1f; }
@media (max-width: 690px) {
  .motion-controls { justify-content: center; }
}
