/* =========================================================
   For Nishtha — muted mustard, soft brick red, warm paper
   ========================================================= */
:root {
  --paper: #f6efe2;
  --paper-2: #efe3cc;
  --paper-3: #e7d6b6;
  --ink: #3b2c26;
  --ink-soft: #6e5c52;
  --mustard: #c29b45;
  --mustard-deep: #a47f2f;
  --mustard-soft: #e2cd97;
  --rose: #a4493f;
  --rose-deep: #7d3530;
  --rose-soft: #d8a69a;
  --shadow: 0 18px 40px -18px rgba(76, 50, 32, .35);

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;
  --f-hand: "La Belle Aurore", "Bradley Hand", cursive;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 1.12rem;
  color: var(--ink);
  background-color: var(--paper);
  /* soft paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

::selection { background: var(--mustard-soft); color: var(--ink); }

a { color: var(--rose); }

.script { font-family: var(--f-script); font-weight: 400; }

em { color: var(--rose); font-style: italic; }

/* ---------- shared bits ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section-tint { background: rgba(226, 205, 151, .18); }

.eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--mustard-deep);
  font-size: 1.15rem;
  margin-bottom: .6rem;
}

.section-head { text-align: center; margin-bottom: 3.5rem; }

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.lead-text { color: var(--ink-soft); font-size: 1.2rem; line-height: 1.75; }

.handwritten {
  font-family: var(--f-hand);
  font-size: 1.7rem;
  color: var(--rose);
  margin-top: 1.5rem;
}

.flourish {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--rose-soft); font-size: .95rem;
}
.flourish span { display: block; width: 60px; height: 1px; background: var(--mustard); opacity: .6; }

.btn-soft {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  text-decoration: none;
  padding: .55rem 1.6rem;
  border: 1px solid var(--rose-soft);
  border-radius: 999px;
  transition: background .4s, color .4s, border-color .4s;
}
.btn-soft:hover { background: var(--rose); color: var(--paper); border-color: var(--rose); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- progress / petals / music ---------- */
.progress-line {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--mustard), var(--rose));
  z-index: 1500; opacity: .8;
}

#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
main, .footer { position: relative; z-index: 2; }

.music-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 1400;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--rose-soft); background: var(--paper);
  color: var(--rose); font-size: 1.3rem; box-shadow: var(--shadow);
}
.music-toggle.playing { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- whisper note ---------- */
.whisper {
  position: fixed; left: 18px; bottom: 18px; z-index: 1400;
  max-width: min(300px, calc(100vw - 36px));
  padding: .9rem 1.2rem;
  background: #fbf6ea;
  border-left: 3px solid var(--mustard);
  box-shadow: var(--shadow);
  font-family: var(--f-hand); font-size: 1.25rem; color: var(--rose-deep);
  transform: translateX(-120%) rotate(-2deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.whisper.show { transform: translateX(0) rotate(-2deg); }

/* =========================================================
   INTRO / ENVELOPE
   A timed sequence driven by JS classes on .intro:
   .step-1 seal lifts · .step-2 flap opens · .step-3 letter rises · .step-4 fade away
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-inline: 20px;
  background: var(--paper);
  background-image: radial-gradient(circle at 50% 50%, rgba(226,205,151,.4), transparent 65%);
  transition: opacity .9s ease, visibility .9s;
}
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-head, .intro-hint { transition: opacity .6s ease, transform .6s ease; }
.intro-head { text-align: center; }
.intro-kicker { font-family: var(--f-display); font-style: italic; color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.intro-name { font-family: var(--f-script); color: var(--rose); font-size: clamp(3.2rem, 14vw, 5.2rem); font-weight: 400; margin: 0 0 1.4rem; line-height: 1.15; }
.intro-hint { margin: 1.8rem 0 0; font-family: var(--f-hand); color: var(--mustard-deep); font-size: 1.15rem; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

.intro.step-1 .intro-head { opacity: 0; transform: translateY(-14px); }
.intro.step-1 .intro-hint { opacity: 0; animation: none; }

.envelope {
  --env-w: min(320px, 80vw);
  position: relative; display: block;
  width: var(--env-w); height: calc(var(--env-w) * .66);
  border: 0; padding: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .9s cubic-bezier(.3,.7,.2,1);
}
.envelope:focus-visible { outline: 2px dashed var(--rose-soft); outline-offset: 10px; }
.envelope > span { position: absolute; display: block; }

.env-back {
  inset: 0; z-index: 1; border-radius: 8px;
  background: #cfb68a;
  box-shadow: 0 24px 40px -18px rgba(76,50,32,.45);
}
.envelope > .env-letter {
  z-index: 2; left: 6%; right: 6%; top: 5%; height: 90%;
  background: #fcf8ef; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 9%;
  box-shadow: 0 -2px 10px rgba(76,50,32,.08);
  transition: transform 1s cubic-bezier(.25,.8,.25,1);
}
.env-letter .script { font-size: calc(var(--env-w) * .1); line-height: 1.1; color: var(--rose); }
.env-letter small { font-family: var(--f-hand); color: var(--mustard-deep); font-size: 1.05rem; }
.env-letter .env-heart { color: var(--rose-soft); font-size: .9rem; margin-top: .2rem; }
.env-front {
  z-index: 3; inset: 0; border-radius: 8px;
  background: linear-gradient(180deg, #eadbbb, #e3cfa8);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  z-index: 4; left: 0; right: 0; top: 0; height: 56%;
  background: linear-gradient(180deg, #dcc59b, #d3ba8c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform: perspective(700px) rotateX(0deg);
  transition: transform .7s cubic-bezier(.4,.1,.3,1);
  backface-visibility: visible;
}
.env-seal {
  z-index: 5; left: 50%; top: 56%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b85a4f, var(--rose-deep));
  color: #f3d9c9; font-family: var(--f-script); font-size: 1.8rem; line-height: 58px; text-align: center; padding-right: 4px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.22);
  transition: transform .45s ease, opacity .45s ease;
  animation: sealPulse 2.6s ease-in-out infinite;
}
@keyframes sealPulse { 50% { transform: scale(1.07); } }

/* step 1: seal lifts off, envelope settles lower to make room for the letter */
.intro.step-1 .env-seal { animation: none; opacity: 0; transform: scale(.4) rotate(-20deg); }
.intro.step-1 .envelope { transform: translateY(18%); }
/* step 2: flap swings open, then tucks behind the letter */
.intro.step-2 .env-flap { transform: perspective(700px) rotateX(180deg); }
.intro.step-2b .env-flap { z-index: 0; }
/* step 3: letter slides up out of the pocket */
.intro.step-3 .env-letter { transform: translateY(-62%); }
/* step 4: everything drifts away */
.intro.step-4 .envelope { transform: translateY(8%) scale(.96); opacity: 0; transition: transform .9s ease, opacity .8s ease; }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 6rem 5rem; position: relative; z-index: 2; }

.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; margin-bottom: 1.4rem;
}
.hero-name { display: inline-block; color: var(--rose); font-size: 1.45em; line-height: 1.15; margin-top: .1em; }
.hero-sub { font-size: 1.25rem; color: var(--ink-soft); max-width: 30rem; line-height: 1.7; margin-inline: auto; }
@media (min-width: 992px) { .hero-sub { margin-inline: 0; } }

.countdown {
  margin: 1.8rem 0 2rem;
  font-family: var(--f-display); color: var(--ink);
  display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center;
}
@media (min-width: 992px) { .countdown { justify-content: flex-start; } }
.countdown .unit { text-align: center; min-width: 3.4rem; }
.countdown .num { display: block; font-size: 2.3rem; line-height: 1; color: var(--mustard-deep); }
.countdown .lbl { font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.countdown .today { font-family: var(--f-hand); font-size: 1.7rem; color: var(--rose); }

.hero-art { position: relative; max-width: 420px; margin: 0 auto; padding: 0 12% 12% 0; }
.arch {
  position: relative; margin: 0; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 10px 10px; overflow: hidden; box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-outline {
  position: absolute; top: -16px; left: 16px; right: calc(12% - 16px); bottom: calc(12% + 16px);
  border: 1px solid var(--mustard); border-radius: 999px 999px 10px 10px;
}
.polaroid-float {
  position: absolute !important; right: 0; bottom: 0; width: 46%;
  transform: rotate(5deg);
  animation: floaty 6s ease-in-out infinite;
}
.polaroid-float img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%; }
@keyframes floaty { 50% { transform: rotate(3deg) translateY(-8px); } }
.doodle-heart { position: absolute; top: 4%; right: 6%; font-size: 2rem; color: var(--rose-soft); animation: floaty 5s ease-in-out infinite; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 22px; height: 36px; border: 1px solid var(--ink-soft); border-radius: 12px; position: relative; opacity: .6; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--rose); border-radius: 2px; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- polaroid ---------- */
.polaroid {
  background: #fdfaf3; padding: 10px 10px 0; margin: 0;
  box-shadow: 0 12px 28px -12px rgba(76,50,32,.4);
}
.polaroid img { display: block; width: 100%; }
.polaroid figcaption {
  font-family: var(--f-hand); color: var(--ink-soft); text-align: center;
  font-size: 1.05rem; padding: .55rem .2rem .7rem; line-height: 1.2;
}

/* =========================================================
   INTERLUDE QUOTES
   ========================================================= */
.interlude { padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center; position: relative; z-index: 2; }
.interlude-quote {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.35; color: var(--ink); margin: 0 auto; max-width: 46rem;
}
.interlude-quote::before, .interlude-quote::after {
  content: ""; display: block; width: 1px; height: 46px; background: var(--mustard); margin: 0 auto 1.4rem; opacity: .7;
}
.interlude-quote::after { margin: 1.4rem auto 0; }

/* =========================================================
   LETTER
   ========================================================= */
.letter {
  --rule: 2.05rem;
  position: relative;
  background: #fcf8ef;
  background-image: repeating-linear-gradient(transparent 0 var(--rule), rgba(194,155,69,.18) var(--rule) calc(var(--rule) + 1px));
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4rem);
  box-shadow: var(--shadow);
  transform: rotate(-.6deg);
}
.letter::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(.8rem, 3vw, 2.2rem); width: 1px; background: rgba(164,73,63,.25);
}
.tape { position: absolute; top: -14px; width: 110px; height: 30px; background: rgba(226,205,151,.7); }
.tape-left { left: 8%; transform: rotate(-6deg); }
.tape-right { right: 8%; transform: rotate(5deg); }
.letter-date { text-align: right; font-family: var(--f-display); font-style: italic; color: var(--mustard-deep); letter-spacing: .15em; }
.letter-greeting { font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--rose); margin-bottom: 1.2rem; }
.letter-body { font-size: 1.22rem; line-height: var(--rule); }
.letter-body p { margin-bottom: var(--rule); }
.letter-body .line { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s ease; }
.letter-body .line.in { opacity: 1; transform: none; }
.letter-sign { text-align: right; margin: 0; line-height: 1.2; }
.letter-sign .script { font-size: 1.9rem; color: var(--ink-soft); }
.signature { font-family: var(--f-hand); font-size: 2.2rem; color: var(--rose-deep); }
.letter-ps { margin: 2rem 0 0; font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }

/* =========================================================
   ADORE CARDS
   ========================================================= */
.adore-card {
  height: 100%; text-align: center;
  padding: 2.2rem 1.5rem 1.8rem;
  background: rgba(252, 248, 239, .85);
  border: 1px solid rgba(194,155,69,.35);
  border-radius: 140px 140px 8px 8px;
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s;
}
@media (hover: hover) { .adore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--rose-soft); } }
.adore-icon {
  width: 54px; height: 54px; margin: .4rem 0 1rem;
  fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.adore-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; margin-bottom: .6rem; }
.adore-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0; }

/* =========================================================
   DANCE
   ========================================================= */
.dance-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.frame { margin: 0; padding: 8px; background: #fdfaf3; box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.frame-a { transform: rotate(-2.5deg); }
.frame-b { margin-top: 4rem; transform: rotate(2deg); }
.frame-a.in { transform: rotate(-2.5deg); }
.frame-b.in { transform: rotate(2deg); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { column-count: 1; column-gap: 1.8rem; }
@media (min-width: 576px) { .gallery { column-count: 2; } }
@media (min-width: 992px) { .gallery { column-count: 3; } }
@media (min-width: 1200px) { .gallery { column-count: 4; } }

.g-item { break-inside: avoid; margin-bottom: 1.8rem; cursor: zoom-in; transition: transform .5s ease, box-shadow .5s; }
.g-item:nth-child(3n+1).in { transform: rotate(-1.6deg); }
.g-item:nth-child(3n+2).in { transform: rotate(1.2deg); }
.g-item:nth-child(3n).in { transform: rotate(-.5deg); }
@media (hover: hover) { .g-item.in:hover { transform: rotate(0) scale(1.03); box-shadow: 0 24px 40px -16px rgba(76,50,32,.45); z-index: 3; position: relative; } }

/* lightbox */
.modal-backdrop { --bs-backdrop-bg: #241a16; --bs-backdrop-opacity: .92; }
.lightbox-content { background: transparent; border: 0; align-items: center; position: relative; }
.lightbox-content img { max-height: 80vh; max-width: 100%; width: auto; border: 10px solid #fdfaf3; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.lb-caption { font-family: var(--f-hand); color: #f3e6cc; font-size: 1.5rem; margin: 1rem 0 0; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: rgba(246,239,226,.12); color: #f6efe2;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; z-index: 2;
  transition: background .3s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(164,73,63,.8); }
.lb-close { top: -8px; right: 0; }
.lb-nav { top: 45%; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
@media (min-width: 992px) { .lb-prev { left: -20px; } .lb-next { right: -20px; } .lb-close { right: -20px; } }

/* =========================================================
   PEACE
   ========================================================= */
.peace-photo { margin: 0; position: relative; }
.peace-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.peace-photo::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; background: var(--mustard-soft); opacity: .55; border-radius: 6px;
}

/* =========================================================
   PROUD / BADGE
   ========================================================= */
.badge-card {
  position: relative; max-width: 440px; margin: 0 auto;
  background: #fcf8ef; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(194,155,69,.35);
}
.badge-card.in { transform: rotate(1.5deg); }
.badge-clip { position: absolute; top: 10px; left: 50%; width: 60px; height: 10px; margin-left: -30px; border-radius: 6px; background: var(--paper-3); }
.badge-top {
  display: flex; justify-content: space-between; padding: 2rem 1.4rem .9rem;
  background: var(--rose); color: #f6e8d8;
  font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem;
}
.badge-body { display: flex; gap: 1.2rem; padding: 1.4rem; align-items: center; }
.badge-photo { width: 38%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 8px; border: 3px solid var(--mustard-soft); }
.badge-info h3 { font-size: 2.4rem; color: var(--rose-deep); margin: 0 0 .4rem; }
.badge-info dl { margin: 0; font-size: 1rem; }
.badge-info dt { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--mustard-deep); font-size: .9rem; }
.badge-info dd { margin: 0 0 .35rem; line-height: 1.25; }
.badge-foot { border-top: 1px dashed rgba(194,155,69,.5); padding: .8rem 1.4rem; font-family: var(--f-hand); color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 339px) { .badge-body { flex-direction: column; } .badge-photo { width: 60%; } .badge-info { text-align: center; } }

/* =========================================================
   OPEN WHEN NOTES
   ========================================================= */
.note {
  display: block; width: 100%; height: 250px; border: 0; padding: 0; background: none;
  perspective: 1000px; cursor: pointer; font: inherit; color: inherit;
}
.note-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform 1s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.note.flipped .note-inner { transform: rotateY(180deg); }
.note-front, .note-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.6rem; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 12px 26px -14px rgba(76,50,32,.45);
}
.note-front {
  background: linear-gradient(160deg, #eadbb9, #dfca9f);
  border: 1px solid rgba(164,127,47,.3);
}
.note-front::before { /* envelope fold line */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: rgba(255,255,255,.18); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.note-seal {
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 1rem; position: relative;
  background: radial-gradient(circle at 35% 30%, #b85a4f, var(--rose-deep)); color: #f3d9c9;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.note-label { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.note-label::before { content: "open when "; display: block; font-family: var(--f-script); font-style: normal; font-size: 1.8rem; color: var(--rose-deep); line-height: 1.2; }
.note-front small { margin-top: .6rem; font-family: var(--f-hand); color: var(--mustard-deep); font-size: .95rem; }
.note-back {
  transform: rotateY(180deg); background: #fcf8ef; border: 1px solid rgba(194,155,69,.35);
  font-family: var(--f-hand); font-size: 1.2rem; line-height: 1.55; color: var(--rose-deep); text-align: center;
}

/* =========================================================
   WISH / CAKE
   ========================================================= */
.cake-wrap { max-width: 360px; margin: 0 auto; }
.cake { width: 100%; height: auto; overflow: visible; }
.cake-plate { fill: var(--paper-3); }
.cake-base { fill: #e9d3a3; }
.cake-top { fill: #f0dfb9; }
.cake-drip { fill: var(--rose-soft); }
.cake-drip-2 { fill: #c97f73; }
.cake-dots circle { fill: var(--mustard); }
.candle { cursor: pointer; outline: none; }
.candle-body { fill: #fbf6ea; stroke: var(--rose-soft); stroke-width: 1.5; }
.wick { stroke: var(--ink); stroke-width: 2; }
.flame {
  fill: #e7b24c; transform-box: fill-box; transform-origin: 50% 90%;
  animation: flicker 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(231,178,76,.8));
  transition: opacity .4s, transform .4s;
}
.candle:nth-of-type(2) .flame { animation-delay: .3s; }
.candle:focus-visible .candle-body { stroke: var(--rose); stroke-width: 3; }
@keyframes flicker { 0% { transform: scale(1) rotate(-3deg); } 100% { transform: scale(.9, 1.08) rotate(3deg); } }
.candle.out .flame { opacity: 0; transform: scale(.2); animation: none; }

.wish-done {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--rose-deep);
  margin-top: 2rem; opacity: 0; transform: translateY(12px); transition: opacity 1.2s, transform 1.2s;
}
.wish-done.show { opacity: 1; transform: none; }

.fall-heart {
  position: fixed; top: -40px; z-index: 1600; pointer-events: none;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(260deg); opacity: .2; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-block: 5rem 4rem; background: var(--paper-2); border-top: 1px solid rgba(194,155,69,.3); }
.footer-script { font-size: clamp(2.6rem, 7vw, 3.8rem); color: var(--rose); margin-bottom: .6rem; }
.footer-text { font-size: 1.2rem; color: var(--ink-soft); max-width: 32rem; margin: 0 auto 1.6rem; }
.footer-small { margin: 1.4rem 0 1rem; font-family: var(--f-hand); color: var(--mustard-deep); font-size: 1.1rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .letter-body .line { opacity: 1; transform: none; }
}

/* ---------- touch niceties ---------- */
.note, .candle, .g-item, .btn-soft, .lb-nav, .lb-close { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.swipe-hint { display: none; }

/* =========================================================
   PHONES
   ========================================================= */
@media (max-width: 575.98px) {
  body { font-size: 1.05rem; }
  .container { padding-inline: 1.15rem; }

  .section { padding-block: 3.5rem; }
  .section-head { margin-bottom: 2rem; }
  .section-title { font-size: 2rem; }
  .eyebrow { font-size: 1.02rem; letter-spacing: .08em; }
  .lead-text { font-size: 1.08rem; line-height: 1.7; }
  .handwritten { font-size: 1.45rem; }

  /* hero: photo, then words, all within about a screen and a half */
  .hero { min-height: 0; padding-block: 2.2rem 4.5rem; }
  .hero .row { --bs-gutter-y: 1.8rem; }
  .hero-art { max-width: 290px; }
  .arch-outline { top: -10px; left: 10px; right: calc(12% - 10px); bottom: calc(12% + 10px); }
  .polaroid-float { width: 44%; padding: 6px 6px 0; }
  .polaroid-float figcaption { font-size: .85rem; padding: .35rem 0 .45rem; }
  .doodle-heart { font-size: 1.5rem; }
  .hero-title { font-size: 2.5rem; margin-bottom: 1rem; }
  .hero-sub { font-size: 1.08rem; }
  .countdown { gap: .9rem; margin: 1.3rem 0 1.5rem; }
  .countdown .unit { min-width: 2.8rem; }
  .countdown .num { font-size: 1.9rem; }
  .countdown .lbl { font-size: .85rem; }
  .countdown .today { font-size: 1.45rem; }
  .scroll-cue { bottom: 14px; }

  .interlude { padding-block: 2.2rem; }
  .interlude-quote { font-size: 1.45rem; }
  .interlude-quote br { display: none; }
  .interlude-quote::before, .interlude-quote::after { height: 30px; }

  /* letter */
  .letter { --rule: 1.85rem; transform: none; padding: 2.4rem 1.1rem 1.8rem 1.9rem; }
  .letter::before { left: 1.05rem; }
  .tape { width: 78px; height: 24px; top: -11px; }
  .letter-greeting { font-size: 2.6rem; margin-bottom: .6rem; }
  .letter-body { font-size: 1.06rem; }
  .letter-sign .script { font-size: 1.6rem; }
  .signature { font-size: 1.9rem; }
  .letter-ps { font-size: .98rem; }

  /* swipeable card rows */
  .swipe-hint {
    display: block; text-align: right; margin: -1rem 0 .6rem;
    font-family: var(--f-hand); color: var(--mustard-deep); font-size: 1rem;
  }
  .swipe-row {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: -1.15rem; padding: .5rem .4rem 1.2rem; scroll-padding-inline: 1.15rem;
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > [class*="col-"] { flex: 0 0 80%; max-width: 80%; scroll-snap-align: center; }
  .swipe-row .reveal { opacity: 1; transform: none; }
  .adore-card { padding: 1.8rem 1.2rem 1.5rem; border-radius: 120px 120px 8px 8px; }
  .adore-icon { width: 46px; height: 46px; }
  .adore-card h3 { font-size: 1.35rem; }
  .note { height: 230px; }
  .note-back { font-size: 1.15rem; padding: 1.3rem; }

  /* dance */
  .dance-photos { gap: .8rem; }
  .frame { padding: 5px; }
  .frame-b { margin-top: 2.4rem; }

  /* gallery: two neat columns */
  .gallery { column-count: 2; column-gap: .85rem; }
  .g-item { margin-bottom: .85rem; }
  .gallery .polaroid { padding: 6px 6px 0; }
  .gallery .polaroid figcaption { font-size: .8rem; padding: .4rem .1rem .5rem; }
  .g-item:nth-child(3n+1).in, .g-item:nth-child(3n+2).in, .g-item:nth-child(3n).in { transform: none; }
  .lightbox-content img { max-height: 72vh; border-width: 6px; }
  .lb-caption { font-size: 1.2rem; padding-inline: 1rem; }
  .lb-nav { top: auto; bottom: -58px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-close { top: -52px; right: 4px; }
  .modal-dialog { margin-inline: .8rem; }

  /* peace */
  .peace-photo { margin-inline: .6rem 1.2rem; }
  .peace-photo::before { inset: 14px -12px -12px 14px; }

  /* badge */
  .badge-card.in { transform: none; }
  .badge-top { padding: 1.7rem 1.1rem .75rem; font-size: .78rem; }
  .badge-body { padding: 1.1rem; gap: 1rem; }
  .badge-info h3 { font-size: 2rem; }
  .badge-info dl { font-size: .95rem; }

  /* cake */
  .cake-wrap { max-width: 280px; }
  .wish-done { font-size: 1.3rem; }
  .wish-done br { display: none; }

  /* whisper becomes a slim note at the bottom */
  .whisper {
    left: 12px; right: 12px; bottom: 12px; max-width: none;
    font-size: 1.05rem; padding: .7rem 1rem; text-align: center;
    border-left: 0; border-top: 2px solid var(--mustard);
    transform: translateY(160%);
  }
  .whisper.show { transform: translateY(0); }
  .music-toggle { bottom: 72px; right: 12px; width: 42px; height: 42px; }

  .footer { padding-block: 3.5rem 3rem; }
  .footer-script { font-size: 2.4rem; }
  .footer-text { font-size: 1.05rem; }
}

.greeting-hearts { font-family: var(--f-body); font-size: .45em; vertical-align: middle; color: var(--rose-soft); }
