html { scroll-behavior: smooth; scroll-padding-top: 94px; }
.site-main { position: relative; z-index: 1; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  width: min(calc(100% - 80px), 1360px); margin: 0 auto;
  min-height: 76px; border-bottom: 1px solid #a795751c;
}
.site-header::before { content: ''; position: absolute; inset: 0 -24px; z-index: -1; background: #f8f3e6e8; backdrop-filter: blur(12px); mask-image: linear-gradient(#000 85%, transparent); }
.site-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.site-mark img { width: 25px; height: 25px; opacity: .82; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: .8rem/1.3 var(--sans); color: #706358; text-decoration: none; }
.site-nav a::after { content: ''; position: absolute; bottom: 6px; left: 0; right: 0; height: 1px; background: #9a6570; transform: scaleX(0); transition: transform 220ms ease; }
.site-nav a[aria-current],.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current]::after,.site-nav a:hover::after { transform: scaleX(1); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 100; padding: 14px 18px; background: #fffdf5; color: var(--ink); font: .9rem var(--sans); }
.skip-link:focus { top: 12px; }
.gift-garden { min-height: calc(100svh - 76px); padding-top: 22px; }
.garden { height: min(70svh, 690px); }
.continue-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font: .75rem/1.7 var(--sans); color: #76665f; text-decoration: none; }
.continue-link span { font-size: 1.25rem; }
.continue-link:hover { color: var(--ink); }
.journey-section { width: min(calc(100% - 180px), 1180px); margin: 0 auto; position: relative; }
.note-section { min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; padding: 105px 0 100px; border-top: 1px solid #a7957533; }
.section-caption { margin: 0 0 24px; font: .68rem/1.7 var(--sans); letter-spacing: .19em; text-transform: uppercase; color: #6c735a; }
.journey-section h2 { margin: 0; font-size: clamp(3rem, 4.5vw, 4.7rem); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }
.journey-section h2 em { font-weight: 400; color: #9e6974; }
.ink-flourish { display: block; width: 70px; height: 16px; margin-top: 34px; border-top: 1px solid #8a9279; border-radius: 50%; transform: rotate(-10deg); }
.personal-letter {
  justify-self: center; width: min(100%, 450px); position: relative;
  padding: 54px 40px 76px; transform: rotate(2deg);
  background: linear-gradient(#fffdf5aa, #fffdf5aa), url('/assets/handmade-paper.jpg') center / 700px;
  border: 1px solid #d8cbb266; border-radius: 3px 2px 5px 2px;
  box-shadow: 2px 20px 38px #6f574f15, 0 2px 3px #6f574f0a;
  color: #76505b; font: 500 2rem/1.25 'Caveat', 'Segoe Print', cursive;
}
.personal-letter p { margin: 0 0 22px; }
.personal-letter p:last-of-type { margin-bottom: 0; }
.letter-greeting { font-size: 1.2em; color: var(--ink); }
.letter-tape { position: absolute; left: calc(50% - 46px); top: -14px; width: 92px; height: 28px; background: #bac2a958; border: 1px solid #fffdf540; transform: rotate(-7deg); }
.letter-petals { position: absolute; width: 74px; height: auto; right: 20px; bottom: 13px; opacity: .75; transform: rotate(-12deg); }
.keepsake-section { min-height: 700px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding: 76px 0 105px; border-top: 1px solid #a7957533; }
.bouquet-stage { align-self: center; width: 100%; max-width: 550px; justify-self: center; overflow: clip; }
.bouquet-arrangement { height: 480px; position: relative; isolation: isolate; }
.bouquet-arrangement::after { content: ''; position: absolute; bottom: 3%; left: 17%; width: 70%; height: 9%; z-index: -1; background: radial-gradient(ellipse, #7e846927, transparent 70%); }
.bouquet-stem { position: absolute; bottom: 6%; left: 16%; width: 68%; height: 89%; object-fit: contain; object-position: center bottom; transform-origin: 50% 98%; pointer-events: none; filter: drop-shadow(2px 8px 5px #68634810); }
.bouquet-stem:nth-child(1) { transform: translateX(-12px) rotate(-17deg); z-index: 2; }
.bouquet-stem:nth-child(2) { transform: translateY(-10px) rotate(1deg); z-index: 1; }
.bouquet-stem:nth-child(3) { transform: translateX(12px) rotate(17deg); z-index: 3; }
.bouquet-arrangement[data-count='1'] .bouquet-stem { transform: rotate(-3deg); }
.bouquet-arrangement[data-count='2'] .bouquet-stem:nth-child(1) { transform: rotate(-12deg); }
.bouquet-arrangement[data-count='2'] .bouquet-stem:nth-child(2) { transform: rotate(12deg); }
.bouquet-ribbon { position: absolute; bottom: 16%; left: calc(50% - 6px); width: 22px; height: 12px; background: #b7888d; border-radius: 50%; z-index: 5; opacity: 0; transform: scale(.7); transition: opacity 450ms ease, transform 450ms ease; }
.is-tied .bouquet-ribbon { opacity: 1; transform: scale(1) rotate(-7deg); }
.bouquet-ribbon::before,.bouquet-ribbon::after { content: ''; position: absolute; width: 47px; height: 24px; top: -18px; border: 6px solid #c69ba0; border-radius: 70% 45% 55% 35%; box-shadow: inset 0 0 0 1px #92626820; }
.bouquet-ribbon::before { right: 12px; transform: rotate(24deg); }
.bouquet-ribbon::after { left: 12px; transform: rotate(-24deg) scaleX(-1); }
.bouquet-ribbon i { position: absolute; top: 8px; left: 3px; height: 67px; width: 10px; background: linear-gradient(90deg, #b88991, #d4abb1); transform-origin: top; transform: rotate(19deg); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%); }
.bouquet-ribbon i + i { left: 11px; transform: rotate(-29deg); height: 59px; }
.bouquet-ready { text-align: center; margin: 19px 0 0; color: #8b6971; font: 500 1.7rem/1.2 'Caveat', cursive; }
.keepsake-invitation { max-width: 310px; margin: 27px 0 24px; font: .9rem/1.8 var(--sans); color: #76665f; }
.bouquet-options { display: flex; gap: 9px; max-width: 400px; }
.flower-choice { display: block; width: calc((100% - 36px) / 5); max-width: 72px; height: 96px; position: relative; padding: 0; border: 1px solid transparent; background: #fffdf523; border-radius: 45% 45% 12px 12px; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.flower-choice-art { display: block; height: 76px; width: 100%; overflow: hidden; pointer-events: none; }
.flower-choice-art img { display: block; width: 128%; height: auto; margin-left: -14%; transform-origin: center 40%; }
.flower-choice:nth-child(1) img { transform: rotate(-9deg); }
.flower-choice:nth-child(3) img { transform: rotate(8deg) scale(.9); }
.flower-choice:nth-child(4) img { transform: rotate(-4deg); }
.flower-choice:nth-child(5) img { transform: rotate(9deg) scale(.9); }
.flower-choice:hover,.flower-choice[aria-pressed='true'] { background: #fffdf595; border-color: #a58a7666; }
.choice-mark { position: absolute; bottom: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #a58a7670; background: #fbf6e8; color: #836975; font: .8rem/16px var(--sans); }
.choice-mark::after { content: '+'; }
.flower-choice[aria-pressed='true'] .choice-mark { color: #fffdf5; background: #79846b; border-color: #79846b; }
.flower-choice[aria-pressed='true'] .choice-mark::after { content: '✓'; }
.bouquet-count { min-height: 22px; margin: 14px 0 24px; font: .75rem/1.6 var(--sans); color: #76665f; }
.keepsake-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.save-bouquet { min-height: 50px; padding: 12px 20px; border: 1px solid #5c6854; border-radius: 3px; background: #626f59; color: #fffdf3; font: .85rem/1.5 var(--sans); cursor: pointer; box-shadow: 0 3px 8px #68725312; }
.save-bouquet span { margin-right: 9px; font-size: 1.25rem; vertical-align: -1px; }
.save-bouquet:hover { background: #505e48; }
.save-bouquet:disabled { opacity: .65; cursor: progress; }
.reset-bouquet { padding: 10px 0; min-height: 44px; background: transparent; border: 0; border-bottom: 1px solid #a28c7c55; font: .75rem var(--sans); color: #7e6b63; cursor: pointer; }
.bouquet-status { margin: 14px 0 0; min-height: 21px; max-width: 350px; font: .75rem/1.7 var(--sans); color: #76665f; }
.download-link { display: inline-block; margin-top: 6px; color: var(--ink); font: .8rem/1.7 var(--sans); text-underline-offset: 4px; }
.reveal-on-scroll { transition: opacity 650ms ease, translate 650ms var(--ease); }
.reveal-on-scroll.is-waiting { opacity: .5; translate: 0 16px; }
@media (min-width:1500px) { .gift-garden { padding-top: 18px; } }
@media (max-width:1000px) and (min-width:741px) {
  .journey-section { width: calc(100% - 90px); gap: 5%; }
  .personal-letter { padding: 42px 26px 66px; font-size: 1.8rem; }
  .bouquet-arrangement { height: 400px; }
}
@media (max-width:740px) {
  html { scroll-padding-top: 76px; }
  .site-header { width: calc(100% - 44px); min-height: 62px; }
  .site-header::before { inset: 0 -22px; }
  .site-nav { gap: 23px; }
  .site-nav a { font-size: .75rem; }
  .site-mark { justify-content: flex-start; width: 30px; }
  .site-mark img { width: 23px; height: 23px; }
  .gift-garden { min-height: calc(100svh - 62px); padding-top: 28px; }
  .garden { height: clamp(350px,105vw,440px); }
  .journey-section { width: calc(100% - 52px); }
  .note-section { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 64px 0 75px; }
  .section-caption { margin-bottom: 17px; font-size: .625rem; }
  .journey-section h2 { font-size: 3.15rem; }
  .note-section h2 br { display: none; }
  .ink-flourish { display: none; }
  .personal-letter { padding: 39px 26px 64px; font-size: 1.8rem; width: calc(100% - 10px); transform: rotate(1deg); }
  .letter-break { display: none; }
  .keepsake-section { min-height: auto; display: flex; flex-direction: column; gap: 22px; padding: 60px 0 64px; }
  .keepsake-content { display: contents; }
  .keepsake-content .section-caption { order: -4; align-self: flex-start; margin: 0; }
  .keepsake-content h2 { order: -3; align-self: flex-start; }
  .keepsake-invitation { order: -2; align-self: flex-start; margin: 0; max-width: 310px; font-size: .85rem; }
  .bouquet-stage { order: -1; max-width: 370px; }
  .bouquet-arrangement { height: 360px; }
  .bouquet-ready { margin-top: 0; font-size: 1.55rem; }
  .bouquet-options { align-self: center; width: 100%; max-width: 360px; }
  .flower-choice { height: 86px; }
  .flower-choice-art { height: 68px; }
  .bouquet-count { margin: -9px 0 0; text-align: center; min-height: 20px; }
  .keepsake-actions { justify-content: center; width: 100%; }
  .bouquet-status { margin: -6px 0 0; text-align: center; }
  .download-link { margin-top: -12px; }
  .continue-link { font-size: .7rem; gap: 11px; }
  .pressed-petals--lower { bottom: 2%; left: 1%; width: 44px; opacity: .34; }
}
@media (max-width:360px) {
  .site-nav { gap: 20px; }
  .site-header { width: calc(100% - 36px); }
  .site-header::before { inset: 0 -18px; }
  .gift-garden { padding-top: 25px; }
  .garden { height: 340px; min-height: 340px; }
  .journey-section { width: calc(100% - 44px); }
  .journey-section h2 { font-size: 2.7rem; }
  .personal-letter { padding: 32px 22px 58px; font-size: 1.6rem; }
  .bouquet-arrangement { height: 320px; }
  .keepsake-actions { gap: 12px; }
  .save-bouquet { padding: 12px 14px; font-size: .8rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll.is-waiting { opacity: 1; translate: 0; }
}

/* The greeting is now a single name. */
#gift-title em { margin: 0; }
.gift-link-notice { grid-column: 1 / -1; max-width: 32rem; margin: 1rem 0; color: #76665f; font: .8rem/1.6 var(--sans); }
