/* =========================================================
   Enchanted Garden · design tokens
   A watercolour garden in daylight: warm white paper, blush
   pink, sage green, hydrangea blue, lilac and daisy white,
   with thin gold hairlines and little pink hearts.
   ========================================================= */
:root {
  --paper: #fffdf9;
  --paper-2: #fdf7f2;
  --blush-50: #fff5f6;
  --blush-100: #fde9ee;
  --blush-200: #fbd9e1;
  --blush-300: #f7c3cf;
  --pink: #f2a5ba;
  --pink-deep: #d88aa2;
  --pink-ink: #c26d8a;
  --sage-50: #f4f8f0;
  --sage-100: #e8f0e2;
  --sage-200: #d6e4cd;
  --sage-300: #b9cfae;
  --sage-500: #85a283;
  --sage-700: #5f7d62;
  --sage-900: #41573f;
  --blue: #bcd6ec;
  --blue-deep: #8fb6d9;
  --lilac: #cdbde8;
  --lilac-deep: #a992cf;
  --daisy: #fffdf7;
  --yolk: #f5cf6a;
  --gold: #d7b46f;
  --gold-soft: #ead7a8;
  --gold-deep: #b9944d;
  --text: #4a5e4c;
  --muted: #7f9180;
  --line: rgba(215, 180, 111, 0.55);
  --line-soft: rgba(242, 165, 186, 0.35);
  --shadow: 0 24px 60px rgba(150, 110, 100, 0.14);
  --shadow-sm: 0 10px 30px rgba(150, 110, 100, 0.12);
  --radius: 22px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Pinyon Script', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 0% 20%, rgba(247, 195, 207, 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 45%, rgba(188, 214, 236, 0.22), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(214, 228, 205, 0.4), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0 0 0.75em; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { color: var(--pink-deep); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
em { font-style: normal; color: var(--muted); }
strong { color: var(--sage-900); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--pink); color: #fff; border-radius: 999px; font-weight: 700; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; border-radius: 6px; }

/* Thin gold rule with a little heart — used between hero lines */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  width: min(260px, 60vw); margin: 0.4rem auto;
  color: var(--pink);
  font-size: 0.9rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* =========================================================
   Ambient canvas & curtain
   ========================================================= */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Above the hero scenery (which is opaque) so pollen, petals and
     butterflies are visible; below the sections' cards, topbar and modals. */
  z-index: 1;
  pointer-events: none;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 55%, #fff9f5 0%, #fbe9ee 45%, #f3f7ef 100%);
  transition: opacity 1.1s ease 0.2s, visibility 1.1s;
}
.curtain__glow {
  position: absolute;
  width: 40vmin; height: 40vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 165, 186, 0.45), rgba(215, 180, 111, 0.25) 45%, rgba(215, 180, 111, 0) 70%);
  animation: breathe 2.4s ease-in-out infinite;
}
.curtain__text {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--sage-700);
  letter-spacing: 0.04em;
  animation: fadeUp 1.2s var(--ease-out) both;
}
.curtain.is-open { opacity: 0; visibility: hidden; }

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.topbar.is-scrolled {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(150, 110, 100, 0.12);
}
.topbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--sage-900);
}
.topbar__spark { color: var(--pink); font-size: 1rem; animation: twinkle 2.6s ease-in-out infinite; }
.topbar__one { font-style: italic; color: var(--pink-ink); font-size: 1.05rem; }
.topbar__nav { display: flex; gap: clamp(0.6rem, 2vw, 1.5rem); align-items: center; }
.topbar__nav a { color: var(--sage-900); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; }
.topbar__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__cta { padding: 0.45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--blush-100); color: var(--pink-ink) !important; }
.topbar__cta::after { display: none; }
.topbar__sound {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.8);
  color: var(--sage-700);
  transition: transform 0.3s var(--ease-bounce), background 0.3s;
}
.topbar__sound:hover { transform: scale(1.08); background: var(--blush-100); }
.topbar__sound .ico-on { display: none; }
.topbar__sound[aria-pressed="true"] .ico-on { display: block; }
.topbar__sound[aria-pressed="true"] .ico-off { display: none; }
@media (max-width: 720px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
}

/* =========================================================
   Hero · a watercolour garden in daylight
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1rem 7rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60vw 40vh at 18% 12%, rgba(247, 195, 207, 0.35), transparent 70%),
    radial-gradient(50vw 35vh at 85% 18%, rgba(188, 214, 236, 0.35), transparent 70%),
    radial-gradient(40vw 30vh at 60% 40%, rgba(205, 189, 232, 0.18), transparent 70%),
    linear-gradient(180deg, #fffdf9 0%, #fff9f4 55%, #f9f3e6 80%, #f3f1de 100%);
}
.hero__sky::after {
  content: '';
  position: absolute; left: 50%; top: 82%;
  width: 140vw; height: 60vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 240, 200, 0.7), rgba(255, 230, 180, 0.25) 35%, transparent 65%);
  pointer-events: none;
}
.hero__layer {
  position: absolute;
  left: -6%; right: -6%; bottom: 0;
  height: 62%;
  z-index: 2;
  will-change: transform;
}
.hero__layer svg { width: 100%; height: 100%; overflow: visible; } /* tall blooms may rise above the layer box on wide screens */
.hero__layer--far { opacity: 0.9; height: 58%; }
.hero__layer--mid { height: 46%; z-index: 3; }
.hero__layer--near { height: 30%; z-index: 7; }
.hero__haze {
  position: absolute; left: 0; right: 0; bottom: 18%;
  height: 30%;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(22px);
  animation: mist 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__arch {
  position: absolute; left: 50%; bottom: 8%;
  width: min(1140px, 126vw);
  height: 90%;
  transform: translateX(-50%);
  z-index: 4;
  will-change: transform;
}
.hero__arch svg { width: 100%; height: 100%; overflow: visible; }
.hero__ground { position: absolute; left: 0; right: 0; bottom: -2px; height: 24%; z-index: 8; }
.hero__ground svg { width: 100%; height: 100%; overflow: visible; }
.ladybug { transform-box: fill-box; transform-origin: 50% 100%; animation: wiggle 5s ease-in-out infinite; }
.bow { transform-box: fill-box; transform-origin: 50% 30%; animation: sway 7s ease-in-out infinite; }

.hero__content {
  position: relative;
  z-index: 9;
  text-align: center;
  max-width: 860px;
  margin-top: 1vh;
}
.hero__greeting {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.85);
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  animation: fadeUp 1s var(--ease-out) both;
}
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--sage-500);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.hero .eyebrow { color: var(--sage-700); font-size: clamp(1.25rem, 2.6vw, 1.8rem); letter-spacing: 0.08em; }
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin: 0.2rem 0 0.8rem;
}
.hero__name-wrap {
  /* The drop-shadow lives on this wrapper: putting `filter` on the same
     element as `background-clip: text` makes Chrome/Safari intermittently
     drop the text entirely. */
  display: inline-block;
  filter: drop-shadow(0 6px 18px rgba(216, 138, 162, 0.28));
}
.hero__name-svg {
  --hero-name-size: clamp(4.2rem, 13vw, 8.5rem);
  display: block;
  height: var(--hero-name-size);
  width: auto;
  max-width: 92vw;
  overflow: visible;
}
.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 100px; /* SVG user units; the viewBox is fitted to the text in main.js */
}
.hero__turns {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--sage-700);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.hero__one { display: block; width: clamp(160px, 20vw, 215px); margin-top: -0.6rem; animation: floaty 5s ease-in-out infinite; }
.hero__one-svg { overflow: visible; filter: drop-shadow(0 12px 22px rgba(216, 138, 162, 0.28)); }
.hero__one-leaves { transform-origin: 90px 110px; animation: sway 6s ease-in-out infinite; }
.hero__date {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  color: var(--sage-900);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.hero__venue { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--sage-700); letter-spacing: 0.18em; margin-bottom: 1.2rem; }
.hero__venue a { color: inherit; border-bottom: 1px dotted var(--gold); padding-bottom: 2px; }
.hero__venue a:hover { color: var(--pink-ink); border-bottom-color: var(--pink); }
.hero__venue-pin { font-size: 0.8em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 9;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(95, 125, 98, 0.5); border-radius: 999px;
  transform: translateX(-50%);
  opacity: 0.85;
}
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sage-700); animation: scrollDot 1.8s ease-in-out infinite; }

/* =========================================================
   Buttons & pills
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, background 0.35s, color 0.3s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--gold {
  background: linear-gradient(180deg, #fde3e9, #f8c9d4);
  color: var(--pink-ink);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(242, 165, 186, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn--gold:hover { box-shadow: 0 16px 36px rgba(242, 165, 186, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9); color: var(--pink-ink); }
.btn--ghost { background: linear-gradient(180deg, #e6efdd, #d6e4cd); color: var(--sage-900); border-color: var(--gold-soft); box-shadow: 0 10px 26px rgba(133, 162, 131, 0.2); }
.btn--ghost:hover { background: linear-gradient(180deg, #edf4e6, #dde9d4); color: var(--sage-900); border-color: var(--gold); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 1rem; }
.btn--lg { padding: 1rem 2.4rem; font-size: 1.25rem; width: 100%; margin-top: 0.5rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn__spark {
  position: absolute; top: -50%; bottom: -50%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-250%) skewX(-20deg);
  animation: sparkSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
.link-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 253, 249, 0.9);
  color: var(--sage-900); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.3s var(--ease-bounce);
}
.link-pill:hover { background: var(--blush-100); transform: translateY(-1px); }
.linkish { background: none; border: 0; padding: 0; color: var(--pink-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.linkish:hover { color: var(--pink-deep); }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7.5rem) 1rem; }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }
.section__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-style: italic;
  text-align: center;
  color: var(--sage-900);
  margin-bottom: 0.8rem;
}
.section__title .deco { color: var(--pink); font-size: 0.5em; vertical-align: middle; margin: 0 0.5rem; }
.eyebrow { text-align: center; }
.lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.08rem; }
/* soft washes to give the page rhythm */
.details, .wishes { background: linear-gradient(180deg, transparent, rgba(253, 233, 238, 0.55) 20%, rgba(253, 233, 238, 0.55) 80%, transparent); }
.year, .faq { background: linear-gradient(180deg, transparent, rgba(232, 240, 226, 0.6) 20%, rgba(232, 240, 226, 0.6) 80%, transparent); }

/* =========================================================
   Countdown · blooms
   ========================================================= */
.countdown { padding-top: 2rem; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.6rem, 2vw, 1.4rem); max-width: 760px; margin: 2rem auto 1.5rem; }
.bloom {
  position: relative;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-bounce);
  --petal: var(--pink);
  --petal-deep: var(--pink-deep);
}
.bloom:hover { transform: translateY(-6px) rotate(-3deg) scale(1.03); }
.bloom--rose { --petal: #f9c5d1; --petal-deep: #e9a0b5; }
.bloom--lilac { --petal: #d9cdef; --petal-deep: #b9a6dc; }
.bloom--peach { --petal: #c9dff0; --petal-deep: #a5c4e2; }
.bloom--cream { --petal: #fffaf0; --petal-deep: #ead7a8; }
.bloom__petals {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--petal);
  filter: drop-shadow(0 14px 24px rgba(150, 110, 100, 0.18));
  animation: spinSlow 40s linear infinite;
}
.bloom__petals ellipse { stroke: var(--petal-deep); stroke-width: 1.2; opacity: 0.95; }
.bloom::before {
  content: '';
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6d8, var(--yolk) 55%, #e3b54a);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(150, 110, 100, 0.18);
}
.bloom__num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1;
  color: var(--sage-900);
  font-variant-numeric: tabular-nums;
}
.bloom__label { position: relative; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--sage-700); font-weight: 700; margin-top: 0.1rem; }
.countdown__done { text-align: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--pink-ink); }
.countdown__cal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }

/* =========================================================
   Cards
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.card {
  position: relative;
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(242, 165, 186, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon { font-size: 1.9rem; line-height: 1; margin-bottom: 0.7rem; }
.card h3 { font-size: 1.55rem; font-style: italic; color: var(--pink-ink); margin-bottom: 0.4rem; }
.card p { margin-bottom: 0.4rem; }
.card__link { display: inline-block; margin-top: 0.4rem; font-weight: 600; }
/* the whole Where card is tappable, not just the small link */
.card--link { cursor: pointer; }
.card--link .card__link::after { content: ''; position: absolute; inset: 0; }

/* =========================================================
   First-year milestones
   ========================================================= */
.year__scroller {
  display: flex; gap: 1.2rem;
  overflow-x: auto; padding: 1.5rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.mile {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: center;
  padding: 1rem 1rem 1.3rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--gold-soft);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s var(--ease-bounce);
}
.mile:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.mile__photo {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 40%),
    linear-gradient(160deg, #fbd9e1, #dfe9f5 55%, #e3efdc);
  display: grid; place-items: center;
  font-size: 2.2rem;
  border: 2px dashed rgba(215, 180, 111, 0.5);
  overflow: hidden;
}
.mile__photo img { width: 100%; height: 100%; object-fit: cover; }
.mile__month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--pink-ink); font-weight: 700; margin-top: 0.9rem; }
.mile__title { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--sage-900); margin: 0.1rem 0 0.2rem; }
.mile__detail { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp__card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
}
.rsvp__card::before, .rsvp__card::after {
  content: '♥'; position: absolute; color: var(--pink); opacity: 0.7; font-size: 1rem;
}
.rsvp__card::before { top: 14px; left: 18px; }
.rsvp__card::after { bottom: 14px; right: 18px; }
.rsvp__existing { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--blush-50); border: 1px dashed var(--line); }
.rsvp__existing-text { margin: 0; color: var(--pink-ink); font-family: var(--font-display); font-size: 1.2rem; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; }
.choice__face {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem;
  padding: 1.2rem 0.8rem;
  border-radius: 18px;
  border: 1.5px solid var(--sage-200);
  background: #fff;
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.choice__emoji { font-size: 1.9rem; line-height: 1; margin-bottom: 0.3rem; }
.choice__label { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--sage-900); }
.choice__sub { font-size: 0.82rem; color: var(--muted); }
.choice__opt:hover .choice__face { transform: translateY(-3px); border-color: var(--gold-soft); }
.choice__opt input:focus-visible + .choice__face { outline: 2px solid var(--pink-deep); outline-offset: 3px; }
.choice__opt--yes input:checked + .choice__face { border-color: var(--pink); background: var(--blush-50); box-shadow: 0 12px 34px rgba(242, 165, 186, 0.3); }
.choice__opt--no input:checked + .choice__face { border-color: var(--blue-deep); background: #f4f8fc; box-shadow: 0 12px 34px rgba(188, 214, 236, 0.35); }
.choice__opt input:checked + .choice__face .choice__label { color: var(--pink-ink); }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sage-700); }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--sage-200);
  background: #fff;
  color: var(--sage-900);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(127, 145, 128, 0.6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(242, 165, 186, 0.18); }
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.rsvp__attending { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s, margin 0.4s; overflow: hidden; margin-bottom: 1rem; }
.rsvp__attending > * { min-height: 0; }
.rsvp__attending.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; pointer-events: none; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border-radius: 14px; border: 1px solid var(--sage-200); background: #fff; overflow: hidden; }
.stepper input { text-align: center; border: 0; background: transparent; color: var(--sage-900); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.stepper__btn { border: 0; background: var(--blush-50); color: var(--pink-ink); font-size: 1.4rem; transition: background 0.2s; }
.stepper__btn:hover { background: var(--blush-100); }
.check { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; font-size: 0.95rem; margin: 0.4rem 0; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--pink-deep); }
.form-error { color: #a84e6c; background: var(--blush-100); border: 1px solid rgba(216, 138, 162, 0.5); padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.92rem; margin: 0.8rem 0 0; }
.rsvp__lookup { text-align: center; margin: 1.2rem 0 0; font-size: 0.92rem; color: var(--muted); }
.rsvp__success { text-align: center; padding: 1rem 0; animation: fadeUp 0.9s var(--ease-out) both; }
.rsvp__success-art { font-size: 3rem; margin-bottom: 0.6rem; animation: floaty 4s ease-in-out infinite; }
.rsvp__success h3 { font-size: 2rem; font-style: italic; color: var(--pink-ink); margin-bottom: 0.6rem; }
.rsvp__success .hero__actions { margin: 1.2rem 0; }
.rsvp__success #successLink { word-break: break-all; }

/* =========================================================
   Wishing garden
   ========================================================= */
.garden { position: relative; max-width: 800px; margin: 0 auto; }
.garden__svg { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(150, 110, 100, 0.16)); }
.garden__blades path { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.garden__blades path:nth-child(2n) { animation-delay: 1.2s; }
.garden__blooms { position: absolute; inset: 0; }
.flower {
  position: absolute;
  width: 46px; height: 82px;
  margin: -74px 0 0 -23px;
  border: 0; padding: 0; background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  animation: flowerSway var(--dur, 4s) ease-in-out infinite alternate, bloomIn 0.9s var(--ease-bounce) both;
  animation-delay: var(--delay, 0s), var(--pop, 0s);
  transition: filter 0.3s;
  --petal: var(--pink);
  --petal-deep: var(--pink-deep);
  --heart: var(--yolk);
  scale: var(--scale, 1);
}
.flower svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px rgba(150, 110, 100, 0.25)); }
.flower .f-petal { fill: var(--petal); stroke: var(--petal-deep); stroke-width: 1; }
.flower .f-heart { fill: var(--heart); }
.flower:hover, .flower:focus-visible, .flower.is-open { filter: drop-shadow(0 0 14px rgba(242, 165, 186, 0.9)); z-index: 3; }
.flower.c-rose { --petal: #f9c5d1; --petal-deep: #e9a0b5; --heart: #f5cf6a; }
.flower.c-lilac { --petal: #d9cdef; --petal-deep: #b9a6dc; --heart: #fff6d8; }
.flower.c-peach { --petal: #fbd3c2; --petal-deep: #efa98f; --heart: #b9944d; }
.flower.c-white { --petal: #fffdf7; --petal-deep: #ead7a8; --heart: #f5cf6a; }
.flower.c-gold { --petal: #fff0c2; --petal-deep: #e6c270; --heart: #b9944d; }
.flower.c-blue { --petal: #c9dff0; --petal-deep: #a5c4e2; --heart: #f5cf6a; }
.flower__tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  width: 230px; max-width: 70vw;
  transform: translate(-50%, 6px);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: #fff; color: var(--text);
  border: 1px solid var(--gold-soft);
  font-size: 0.86rem; line-height: 1.45; text-align: left;
  box-shadow: 0 16px 40px rgba(150, 110, 100, 0.2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  animation: none;
}
.flower__tip::after { content: ''; position: absolute; left: 50%; top: 100%; border: 7px solid transparent; border-top-color: #fff; margin-left: -7px; }
.flower__tip strong { display: block; color: var(--pink-ink); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.15rem; }
.flower:hover .flower__tip, .flower:focus-visible .flower__tip, .flower.is-open .flower__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.flower.tip-left .flower__tip { left: 0; transform: translate(-10%, 6px); }
.flower.tip-left:hover .flower__tip, .flower.tip-left.is-open .flower__tip { transform: translate(-10%, 0); }
.flower.tip-left .flower__tip::after { left: 10%; }
.flower.tip-right .flower__tip { left: auto; right: 0; transform: translate(10%, 6px); }
.flower.tip-right:hover .flower__tip, .flower.tip-right.is-open .flower__tip { transform: translate(10%, 0); }
.flower.tip-right .flower__tip::after { left: auto; right: 10%; }
.garden__empty { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; color: var(--sage-700); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; padding: 0 1rem; }

.wish-form { max-width: 640px; margin: 1.5rem auto 0; padding: 1.6rem; border-radius: 22px; background: rgba(255, 253, 249, 0.95); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-sm); }
.wish-form .btn { margin-top: 1rem; }
.wish-list { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 800px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.wish {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--gold-soft);
  font-size: 0.95rem;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.wish__text { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--sage-900); margin-bottom: 0.4rem; }
.wish__author { color: var(--pink-ink); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; margin: 0; }

/* =========================================================
   Gifts, FAQ
   ========================================================= */
.gifts__card { text-align: center; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 28px; background: linear-gradient(180deg, #fff, var(--blush-50)); border: 1px solid var(--gold-soft); color: var(--text); box-shadow: var(--shadow); }
.gifts__card .section__title { color: var(--sage-900); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.gifts__card .card__icon { margin: 0 auto 0.6rem; }
.gifts__card p { color: var(--text); max-width: 540px; margin: 0 auto 1rem; }

.faq__list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.8rem; }
.faq__item { border-radius: 16px; border: 1px solid var(--gold-soft); background: #fff; overflow: hidden; transition: border-color 0.3s; }
.faq__item[open] { border-color: var(--pink); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--sage-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '🌸'; font-size: 1rem; transition: transform 0.4s var(--ease-bounce); }
.faq__item[open] summary::after { transform: rotate(180deg) scale(1.15); }
.faq__item p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; z-index: 2; margin-top: 2rem; }
.footer__grass { width: 100%; height: 80px; }
.footer__inner { background: var(--sage-100); text-align: center; padding: 1.5rem 1rem 3rem; }
.footer__love { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--pink-ink); }
.footer__contact { color: var(--sage-700); font-size: 0.92rem; }
.footer__tiny { color: var(--muted); font-size: 0.78rem; margin: 1rem 0 0; }
.footer__tiny a { color: inherit; }

/* =========================================================
   Modal & toast
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(65, 87, 63, 0.35); backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(440px, 100%); padding: 1.8rem; border-radius: 22px; background: #fff; border: 1px solid var(--gold-soft); box-shadow: var(--shadow); animation: fadeUp 0.5s var(--ease-out) both; }
.modal__panel h3 { font-size: 1.8rem; font-style: italic; color: var(--pink-ink); margin-bottom: 0.4rem; }
.modal__panel .field { margin-bottom: 0.9rem; }
.modal__panel .btn { width: 100%; margin-top: 0.4rem; }
.modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blush-50); color: var(--sage-900); font-size: 1.4rem; line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 150; transform: translate(-50%, 20px); padding: 0.8rem 1.3rem; border-radius: 999px; background: var(--sage-900); color: #fff; font-weight: 600; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0.3s; max-width: 90vw; text-align: center; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* =========================================================
   Reveal on scroll & petals
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

.burst { position: fixed; z-index: 160; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; animation: burst 1.6s var(--ease-out) forwards; }
.petal { border-radius: 60% 60% 60% 0 / 60% 60% 60% 0; }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes breathe { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg) translateX(0); } 50% { transform: rotate(4deg) translateX(3px); } }
@keyframes mist { from { transform: translateX(-3%) scaleY(1); opacity: 0.8; } to { transform: translateX(3%) scaleY(1.15); opacity: 1; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes sparkSweep { 0%, 60% { transform: translateX(-250%) skewX(-20deg); } 100% { transform: translateX(450%) skewX(-20deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes flowerSway { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes bloomIn { from { scale: 0; opacity: 0; } to { scale: var(--scale, 1); opacity: 1; } }
@keyframes burst { 0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(var(--rot, 300deg)); opacity: 0; } }

/* =========================================================
   Responsive & motion
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 9.5rem; padding-bottom: 8rem; }
  .hero__greeting { font-size: 1.05rem; margin-top: 1.5rem; }
  .hero__layer--near { height: 24%; }
  /* garden.js draws a tall portrait arch on phones; anchor its crown just below the top bar */
  .hero__arch { width: 100vw; top: 84px; bottom: auto; height: 140%; }
  .hero__content { max-width: 66vw; padding: 0; }
  .hero__name-svg { max-width: 62vw; }
  .hero .eyebrow { font-size: 1.05rem; letter-spacing: 0.04em; }
  .hero__turns { letter-spacing: 0.24em; font-size: 1rem; }
  .hero__date { letter-spacing: 0.08em; font-size: 0.86rem; text-wrap: balance; }
  .hero .eyebrow { text-wrap: balance; }
  .hero__venue { letter-spacing: 0.1em; font-size: 1.05rem; }
  .hero__one { width: clamp(150px, 40vw, 190px); }
  .form-grid { grid-template-columns: 1fr; }
  .countdown__grid { gap: 0.5rem; }
  .bloom__label { font-size: 0.5rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .reveal { opacity: 1; transform: none; }
  .btn__spark, .hero__haze { display: none; }
}
