/* Lifafa. Gate (hands hold an envelope to the sky; tap the seal, the flap lifts, card + note + film slide out)
   -> a walk through the garden: couple card, invitation card, the story note with its road, a strip of film,
   one framed card per function, RSVP. Cards are cream with a two-tone frame; the frame colour is the theme. */

:root {
  --cream: #f9f5e9;
  --maroon: #7c1424;
  --olive: #6a5720;
  --sky-1: #a9d2f0;
  --sky-2: #d9eaf6;
  --env: #7c9038;

  --f-body: "Libre Baskerville", Georgia, serif;
  --f-ital: "Cormorant Garamond", Georgia, serif;
  --f-script: "Pinyon Script", "Cormorant Garamond", cursive;
  --f-caps: "Italiana", "Cormorant Garamond", serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-hand: "Caveat Brush", "Comic Sans MS", cursive;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-bg: var(--cream);
  --fx-music-bg: #7c9038; --fx-music-ring: #fff3d6; --fx-music-ink: #fff8e6;
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body { background: #5c9539; color: var(--olive); font: 700 16px/1.6 var(--f-body); }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }
ul { list-style: none; margin: 0; padding: 0; }

/* =================================================================== GATE */

.gate {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, #bfdef4 38%, var(--sky-2) 72%, #eef5f4 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky::before {            /* watercolour wash */
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(40% 22% at 22% 18%, rgba(255, 255, 255, .75), transparent 70%),
    radial-gradient(34% 18% at 80% 34%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(50% 20% at 12% 56%, rgba(255, 255, 255, .8), transparent 72%),
    radial-gradient(30% 16% at 70% 8%, rgba(120, 180, 232, .45), transparent 70%);
  filter: blur(6px);
}
.sky__clouds { position: absolute; left: 0; width: max(900px, 150vw); max-width: none; opacity: .95; will-change: transform; }
.sky__clouds--a { top: 2%; animation: lfDrift 70s linear infinite alternate; }
.sky__clouds--b { top: 34%; left: auto; right: 0; scale: -1 1; opacity: .8; animation: lfDrift 90s linear infinite alternate-reverse; }
@keyframes lfDrift { from { translate: -6% 0; } to { translate: 6% 0; } }

.gate__plumes { position: absolute; bottom: -2%; height: min(88svh, 760px); width: auto; pointer-events: none; transform-origin: 50% 100%; }
.gate__plumes--l { left: -34px; animation: lfSway 7s ease-in-out infinite alternate; }
.gate__plumes--r { right: -34px; animation: lfSway 8s ease-in-out -3s infinite alternate-reverse; }
.gate__meadow { position: absolute; left: 50%; bottom: -8px; width: max(100%, 560px); max-width: none; translate: -50% 0; pointer-events: none; transform-origin: 50% 100%; animation: lfSway 9s ease-in-out -2s infinite alternate; }
@keyframes lfSway { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }

.gate__head { position: absolute; top: calc(9svh + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; transition: opacity .6s; z-index: 2; }
.gate__to { font: 400 clamp(30px, 9vw, 42px)/1.1 var(--f-script); color: var(--maroon); }
.gate__line { margin-top: 6px; font: 400 15px/1.3 var(--f-type); letter-spacing: .08em; color: #3d5f7c; }
.gate:not([data-phase="idle"]) .gate__head { opacity: 0; }

/* the two hands and the envelope share one 400 x 560 drawing */
.hold {
  position: relative; z-index: 3; flex: none;
  width: min(92vw, 58svh, 450px); aspect-ratio: 400 / 560; margin-bottom: -1px;
}
.hold__arms, .hold__thumbs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hold__thumbs { z-index: 6; }
.hold { animation: lfFloat 5.5s ease-in-out infinite alternate; }
@keyframes lfFloat { from { translate: 0 0; } to { translate: 0 -7px; } }

.env { position: absolute; left: 10%; top: 26.8%; width: 80%; height: 42.86%; filter: drop-shadow(0 14px 16px rgba(40, 60, 20, .28)); }
.env__back { position: absolute; inset: 0; background: #586b26; border-radius: 3px; }
.env__front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; border-radius: 3px; pointer-events: none; }
.env__flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 58%; z-index: 5; transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), z-index 0s .42s, filter .9s;
}
.env__flap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gate:not([data-phase="idle"]) .env__flap { transform: perspective(900px) rotateX(178deg); z-index: 0; filter: brightness(1.12); }

/* the seal: a sticker with the monogram */
.env__seal {
  position: absolute; left: 50%; top: 56%; z-index: 7; translate: -50% -50%;
  width: 26%; aspect-ratio: 3 / 4; padding: 0; border: 0; cursor: pointer;
  background: #fffdf6; border-radius: 46% 46% 50% 50% / 38% 38% 50% 50%;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(30, 40, 10, .35);
  display: grid; place-items: center; overflow: hidden;
  animation: lfBeat 2.2s ease-in-out infinite;
  transition: transform .5s var(--ease), opacity .5s;
}
.env__seal::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%); animation: lfShine 3.4s ease-in-out infinite; }
@keyframes lfBeat { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }
@keyframes lfShine { 0%, 55% { translate: -70% 0; } 100% { translate: 70% 0; } }
.gate:not([data-phase="idle"]) .env__seal { transform: translateY(40%) rotate(-12deg) scale(.4); opacity: 0; pointer-events: none; animation: none; }
.mono.seal__mono { font-size: clamp(30px, 10vw, 50px); }
.seal__mono--img { width: 86%; height: 92%; object-fit: contain; mix-blend-mode: multiply; }

/* "These moments in my heart": typed labels on the envelope once it is open */
.env__label { position: absolute; right: 9%; bottom: 9%; z-index: 5; display: grid; justify-items: start; gap: 3px; pointer-events: none; }
.env__label span, .typed span {
  font: 400 clamp(11px, 3.4vw, 15px)/1 var(--f-type); color: #4a2c22; background: #f6ead2; padding: 3px 5px 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.env__label b, .typed b { color: #d2334d; font-weight: 400; }
.env__label span { opacity: 0; translate: 0 6px; transition: opacity .4s, translate .4s; }
.env__label span:nth-child(2) { margin-left: 12px; } .env__label span:nth-child(3) { margin-left: 12px; }
.gate[data-phase="open"] .env__label span { opacity: 1; translate: 0 0; }
.gate[data-phase="open"] .env__label span:nth-child(1) { transition-delay: 1.5s; }
.gate[data-phase="open"] .env__label span:nth-child(2) { transition-delay: 1.75s; }
.gate[data-phase="open"] .env__label span:nth-child(3) { transition-delay: 2s; }
.gate[data-phase="open"] .env__label span:nth-child(4) { transition-delay: 2.25s; }

/* the things inside: tucked in the pocket, then each slides up and settles at its own angle */
.env__items { position: absolute; inset: 0; z-index: 2; }
.it {
  position: absolute; bottom: 6%; padding: 0; border: 0; background: none; cursor: pointer; display: block;
  opacity: 0; transform: translateY(0) rotate(0deg);
  transition: transform 1.25s var(--ease), opacity .3s;
  transition-delay: calc(.45s + var(--d, 0s));
  box-shadow: 0 6px 14px rgba(40, 50, 20, .3);
}
.gate[data-phase="open"] .it { opacity: 1; transform: translateY(var(--up)) rotate(var(--rot)); }
.gate[data-phase="open"] .it:hover, .gate[data-phase="open"] .it:focus-visible { transform: translateY(calc(var(--up) - 3%)) rotate(var(--rot)) scale(1.03); transition-delay: 0s; transition-duration: .3s; }

.it--stamp {
  left: 0; width: 46%; aspect-ratio: 5 / 4; --up: -124%; --rot: -5deg; --d: .25s; padding: 6%;
  background: #fbf6ea; outline: 2px dotted #fbf6ea; outline-offset: -1px;
}
.it--stamp i {
  position: absolute; inset: 9%;
  background:
    linear-gradient(155deg, transparent 49%, #fff 49.5% 53%, transparent 53.5%) 22% 78% / 26% 30% no-repeat,
    conic-gradient(from 150deg at 30% 46%, #9db7c9 0 60deg, transparent 0) 0 100% / 60% 100% no-repeat,
    conic-gradient(from 150deg at 62% 34%, #b9cddb 0 60deg, transparent 0) 100% 100% / 80% 100% no-repeat,
    linear-gradient(#f3e7d2, #efe0c6);
}
.it--note {
  right: 2%; width: 62%; aspect-ratio: 5 / 6; --up: -92%; --rot: 4deg; --d: .12s; text-align: left;
  padding: 7% 6% 0; background: #f4e7c5; color: #5a3a12; border-radius: 2px;
  clip-path: polygon(0 3%, 6% 0, 14% 2%, 26% 0, 40% 2%, 55% 0, 70% 2%, 84% 0, 94% 2%, 100% 0, 100% 100%, 0 100%);
}
.it--note b { display: block; font: 700 clamp(10px, 3.2vw, 14px)/1.2 var(--f-body); margin-bottom: 6%; }
.it--note i { display: block; height: 2px; margin-bottom: 5%; width: 62%; background: currentColor; opacity: .45; border-radius: 2px; }
.it--note i:nth-of-type(2) { width: 54%; } .it--note i:nth-of-type(4) { width: 40%; }
.it--note svg { position: absolute; right: 5%; top: 40%; width: 56%; }
.it--card {
  left: 5%; width: 38%; aspect-ratio: 5 / 9; --up: -62%; --rot: -3deg; --d: 0s; overflow: hidden;
  background: var(--cream); border: 3px solid #f76100; outline: 2px solid #fe8f4a; outline-offset: 0;
  display: flex; flex-direction: column; align-items: center;
}
.mono.it__mono { margin-top: 12%; font-size: clamp(26px, 8vw, 40px); flex: none; }
.it__mono--img { width: 46%; height: 42%; object-fit: contain; margin-top: 8%; }
.it__scene { width: 100%; margin-top: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
.it--film {
  width: 21%; padding: 0 3.2%; background: #141414 ; display: grid; gap: 4px; padding-block: 5px;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 4px, #f4f1ea 4px 9px, transparent 9px 13px),
    repeating-linear-gradient(180deg, transparent 0 4px, #f4f1ea 4px 9px, transparent 9px 13px);
  background-size: 9% 100%; background-position: 4% 0, 96% 0; background-repeat: no-repeat; background-color: #141414;
}
.it--film img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.it--film1 { right: 26%; --up: -30%; --rot: -1.5deg; --d: .2s; }
.it--film2 { right: 3%; --up: -52%; --rot: 2.5deg; --d: .32s; }

/* hints */
.gate__hint {
  position: absolute; left: 0; right: 0; z-index: 8; text-align: center; text-decoration: none;
  top: calc(21svh + env(safe-area-inset-top)); transition: opacity .6s; pointer-events: none;
}
.gate__hint span {
  display: inline-block; font: 400 14px/1 var(--f-type); letter-spacing: .06em; color: #4a2c22;
  background: rgba(255, 252, 240, .92); padding: 9px 14px 7px; border-radius: 3px; box-shadow: 0 2px 8px rgba(40, 70, 100, .25);
}
.gate__hint--scroll { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); opacity: 0; }
.gate__hint--scroll i { display: block; width: 10px; height: 10px; margin: 8px auto 0; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); animation: lfNudge 1.4s ease-in-out infinite; }
@keyframes lfNudge { 50% { translate: 0 6px; } }
.gate:not([data-phase="idle"]) .gate__hint--open { opacity: 0; }
.gate[data-phase="open"] .gate__hint--scroll { opacity: 1; pointer-events: auto; transition-delay: 2.2s; }
.gate__skip {
  position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 9; padding: 7px 14px; cursor: pointer;
  font: 400 12px/1 var(--f-type); letter-spacing: .1em; color: #33556f; background: rgba(255, 255, 255, .55); border: 1px solid rgba(60, 100, 140, .35); border-radius: 999px;
}
.gate[data-phase="open"] .gate__skip { display: none; }
.gate.instant *, .gate.instant { transition: none !important; }
html:not(.js) :is(.gate__hint, .gate__skip, .env__seal, .env__flap) { display: none; }
html:not(.js) .it { opacity: 1; transform: translateY(var(--up)) rotate(var(--rot)); }

/* =================================================================== GARDEN + CARDS */

.garden {
  position: relative; padding: 34px 22px 0;
  background: #5c9539 url(media/garden.jpg) 50% 0 / 360px 360px;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 46px;
  box-shadow: inset 0 26px 30px -26px rgba(20, 50, 10, .7);
}
.card {
  --frame: #f76100; --frame-2: #fe8f4a; --title: var(--maroon); --text: var(--olive); --soft: #b0542a;
  --bloom: #f6a9bf; --bloom-eye: #e0607c; --wood: #5a3a34; --leaf: #8fae6a;
  position: relative; width: 100%; max-width: 430px; overflow: hidden; text-align: center;
  background: var(--cream); color: var(--text);
  border: 7px solid var(--frame); box-shadow: 0 0 0 5px var(--frame-2), 0 18px 34px -10px rgba(10, 40, 10, .6);
  display: flex; flex-direction: column;
}
.card--pink { --frame: #f84c6e; --frame-2: #fd8f9c; --title: #e8527c; --text: #5f4d1c; --soft: #e8527c; --cream-x: #f9f2df; }
.card--spring { --frame: #f9b5c1; --frame-2: #d5dbb7; --title: #ee7d9c; --text: #5f4d1c; --soft: #ee7d9c; --leaf: #7fa27c; }
.card--red { --frame: #ff6064; --frame-2: #d5233b; --title: #b92a1c; --text: #d3472f; --soft: #b92a1c; --bloom: #e8604a; --bloom-eye: #a8281c; --wood: #7a3a2a; --leaf: #b9a58a; }
.card--pink, .card--red { background: #f9f2df; }
.card__in { position: relative; z-index: 2; padding: 44px 22px 34px; }
.card--scene .card__in { padding-bottom: 6px; }
.card__art { display: block; width: 100%; height: auto; margin-top: auto; -webkit-mask-image: linear-gradient(transparent, #000 9%); mask-image: linear-gradient(transparent, #000 9%); }

/* cards arrive like something drawn out of the envelope */
.card.reveal, .note.reveal { translate: 0 60px; rotate: -2.5deg; transform-origin: 50% 100%; transition: opacity .9s var(--ease), translate 1.1s var(--ease), rotate 1.1s var(--ease); }
.card.reveal:nth-of-type(even) { rotate: 2.5deg; }
.card.reveal.in, .note.reveal.in, html:not(.js) .card.reveal { translate: 0 0; rotate: 0deg; }

/* monogram from the two initials: ribbon-pink script, a nazar bead and a small heart */
.mono { position: relative; display: inline-block; font-family: var(--f-script); font-size: 92px; line-height: 1; color: #f08a93; padding: 0 .12em; }
.mono b { font-weight: 400; display: inline-block; background: linear-gradient(160deg, #f8b3ae, #ee7f8e 55%, #f6a7a0); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .08em .1em .1em; }
.mono b + b { margin-left: -.34em; translate: 0 .22em; }
.mono i { display: none; position: absolute; left: .06em; top: .62em; width: .1em; height: .1em; border-radius: 50%; background: radial-gradient(circle, #111 0 22%, #6cc3f0 24% 44%, #fff 46% 62%, #1e46b8 64%); }
.mono i::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: .12em; background: #8a6a4a; }
.mono::after { content: "♥"; position: absolute; right: .12em; bottom: -.16em; font: 400 .2em/1 var(--f-body); color: #f0959d; }
.mono--img { display: block; width: 132px; height: auto; margin: -14px auto 0; padding: 0; }

.tag { font: 400 clamp(21px, 6.4vw, 27px)/1.2 var(--f-caps); letter-spacing: .02em; color: var(--maroon); margin-top: 18px; overflow-wrap: anywhere; }
.names { font: 400 clamp(30px, 10.2vw, 46px)/1.15 var(--f-script); color: var(--title); margin-top: 10px; padding: 0 2px; }
.names--one { font-size: clamp(50px, 15vw, 64px); margin-top: 22px; line-height: 1.05; }
.names--event { font-size: clamp(54px, 16.5vw, 70px); margin-top: 16px; }
.lead { font: 700 clamp(15px, 4.4vw, 18px)/1.55 var(--f-body); letter-spacing: .01em; }
.lead--date { margin-top: 14px; }
.lead--ask { margin-top: 20px; line-height: 1.85; }
.lead--time { margin-top: 20px; } .lead--at { margin-top: 6px; } .lead--place { margin-top: 2px; font-size: clamp(16px, 4.8vw, 20px); }

.count { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.count span { min-width: 56px; padding: 8px 4px 6px; font: 400 10px/1 var(--f-type); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); border-top: 1px solid rgba(124, 20, 36, .3); border-bottom: 1px solid rgba(124, 20, 36, .3); }
.count b { font: 700 21px/1.2 var(--f-body); color: var(--maroon); margin-bottom: 3px; }
.count__done { margin-top: 16px; font: italic 600 20px/1.3 var(--f-ital); color: var(--maroon); }

/* the invitation card */
.om { font: 400 30px/1 var(--f-deva); color: var(--maroon); margin-top: -18px; }
.ganesh { margin-top: 8px; font: 700 10px/1.4 var(--f-body); color: var(--olive); }
.shlok { margin-top: 4px; font: 400 13px/1.7 var(--f-deva); color: var(--maroon); }
.kin { font: italic 600 clamp(13px, 3.95vw, 17px)/1.4 var(--f-ital); color: #5a4416; margin: 2px -12px 0; }
.with { margin: 24px 0 -4px; font: 700 19px/1 var(--f-body); color: var(--maroon); }
.await { margin-top: 22px; }
.await__head { font: 400 11px/1.4 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.await ul { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.await li { font: italic 600 17px/1.3 var(--f-ital); }
.await small { display: block; font: 400 10px/1.3 var(--f-type); letter-spacing: .08em; opacity: .75; }

/* function cards */
.day { font: 700 clamp(16px, 4.8vw, 19px)/1.12 var(--f-body); color: var(--text); margin-top: 60px; }
.card--pink .day, .card--spring .day { color: #5a4a14; }
.day b { display: block; font-size: 2.9em; line-height: 1; margin-bottom: 4px; }
.ev__hi { font: 400 17px/1.3 var(--f-deva); color: var(--title); }
.quote { margin: 8px auto 0; max-width: 21em; font: italic 600 clamp(17px, 5vw, 21px)/1.4 var(--f-ital); color: var(--soft); }
.quote::before { content: "\201C"; } .quote::after { content: "\201D"; }
.sched { margin-top: 18px; display: grid; gap: 6px; font: 700 clamp(16px, 4.8vw, 20px)/1.4 var(--f-body); }
.dress { margin-top: 14px; font: italic 600 17px/1.4 var(--f-ital); }
.dress span { display: block; font: 400 10px/1.6 var(--f-type); letter-spacing: .16em; text-transform: uppercase; }
.dress em + em::before { content: " · "; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.btn {
  font: 400 12px/1 var(--f-type); letter-spacing: .06em; text-decoration: none; padding: 10px 12px 8px; border-radius: 999px;
  color: var(--title); border: 1.2px solid currentColor; background: rgba(255, 255, 255, .5); transition: transform .2s, background .2s;
}
.btn:active { transform: scale(.95); }
.btn--solid { background: var(--title); color: #fff8ea; border-color: var(--title); }
.card--event:not(.card--scene) .card__in { padding-bottom: 48px; }

.branch { position: absolute; top: -4px; width: 46%; z-index: 1; pointer-events: none; transform-origin: 100% 0; animation: lfSway 6s ease-in-out infinite alternate; }
.branch--r { right: -4px; }
.branch--l { left: -4px; scale: -1 1; top: 34px; width: 34%; transform-origin: 50% 0; animation-delay: -2s; }
.branch__wood { fill: none; stroke: var(--wood); stroke-width: 1.8; stroke-linecap: round; }
.branch__petal { fill: var(--bloom); } .branch__eye { fill: var(--bloom-eye); } .branch__leaf { fill: var(--leaf); }

/* =================================================================== STORY NOTE + ROAD */

.note {
  position: relative; width: 100%; max-width: 420px; padding: 40px 24px 26px; color: #5a3a12;
  background:
    radial-gradient(120% 80% at 20% 0, rgba(255, 255, 255, .5), transparent 60%),
    #f3e6c2;
  box-shadow: 0 18px 30px -12px rgba(10, 40, 10, .6); rotate: -1.2deg;
  clip-path: polygon(0 1.6%, 5% 0, 12% 1.2%, 21% .2%, 30% 1.4%, 41% 0, 52% 1.3%, 63% .2%, 74% 1.5%, 85% 0, 93% 1.2%, 100% .3%, 100% 98.6%, 94% 100%, 86% 98.8%, 76% 100%, 64% 98.7%, 52% 100%, 40% 98.8%, 28% 100%, 16% 98.7%, 7% 100%, 0 98.9%);
}
.note.reveal.in { rotate: -1.2deg; }
.note__title { font: 700 clamp(22px, 6.6vw, 27px)/1.2 var(--f-body); color: #6a4310; }
.note__text { margin-top: 10px; font: 700 clamp(14.5px, 4.2vw, 16.5px)/1.65 var(--f-body); }
.note__pin { position: absolute; left: 50%; top: 12px; width: 15px; height: 15px; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 30%, #ff9aa6, #d2334d 60%, #8e1a2e); box-shadow: 1px 3px 3px rgba(0, 0, 0, .35); }
.road { display: block; width: 100%; margin-top: 12px; overflow: visible; }
.road__bed { fill: none; stroke: #d9a441; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s ease-in-out .3s; }
.road__line { fill: none; stroke: #fff4d0; stroke-width: 1.6; stroke-dasharray: 6 7; opacity: 0; transition: opacity .8s 2.8s; }
.note.in .road__bed { stroke-dashoffset: 0; }
.note.in .road__line { opacity: 1; }
.road__badge { fill: #fff8e4; stroke: #d98a1a; stroke-width: 2; }
.road__peak { fill: #7f9db3; }
.road__name { font: 400 19px/1 var(--f-hand); fill: #d9780f; text-transform: uppercase; letter-spacing: .04em; paint-order: stroke; stroke: #f3e6c2; stroke-width: 4px; }
.road__stop > * { opacity: 0; transition: opacity .5s; transition-delay: calc(.6s + var(--i) * .75s); }
.note.in .road__stop > * { opacity: 1; }
.road__heart { fill: #d2334d; opacity: 0; transition: opacity .4s .4s; }
.note.in .road__heart { opacity: 1; }
html:not(.js) .road__bed { stroke-dashoffset: 0; } html:not(.js) :is(.road__stop > *, .road__line) { opacity: 1; }

/* =================================================================== FILM */

.moments { width: calc(100% + 44px); max-width: none; margin: 0 -22px; text-align: center; }
.typed { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; rotate: -2deg; margin-bottom: 18px; }
.typed span { font-size: 17px; padding: 5px 8px 2px; }
.film {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: #141414; padding: 22px 0; rotate: -1.4deg; margin: 0 -10px;
  box-shadow: 0 14px 26px -8px rgba(0, 0, 0, .6);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 9px, #f4f1ea 9px 21px, transparent 21px 30px),
    repeating-linear-gradient(90deg, transparent 0 9px, #f4f1ea 9px 21px, transparent 21px 30px);
  background-size: 100% 11px; background-position: 0 6px, 0 calc(100% - 6px); background-repeat: no-repeat; background-attachment: local;
}
.film::-webkit-scrollbar { display: none; }
.film__track { display: flex; gap: 10px; padding: 0 24px; width: max-content; }
.film__cell { flex: none; padding: 0; border: 0; background: #222; cursor: zoom-in; border-radius: 3px; overflow: hidden; height: min(62vw, 270px); }
.film__cell img { display: block; height: 100%; width: auto; filter: saturate(1.05); transition: scale .5s var(--ease); }
.film__cell:active img { scale: 1.05; }
.moments__hint { margin-top: 16px; font: 400 12px/1 var(--f-type); letter-spacing: .08em; color: #fffbe8; text-shadow: 0 1px 4px rgba(0, 40, 0, .8); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(12, 22, 8, .9); padding: 18px; animation: lfFade .3s; }
.lightbox img { max-width: 100%; max-height: 86svh; border: 8px solid #fffdf6; border-bottom-width: 34px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); rotate: -1deg; }
.lightbox button { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fffdf6; color: #333; font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes lfFade { from { opacity: 0; } }

/* =================================================================== RSVP */

.card--rsvp .card__in { padding-top: 150px; padding-bottom: 52px; }
.vines { position: absolute; top: -2px; width: 32%; z-index: 1; pointer-events: none; transform-origin: 50% 0; animation: lfSway 7s ease-in-out infinite alternate; }
.vines--l { left: 0; } .vines--r { right: 0; scale: -1 1; animation-delay: -3s; }
.vines__stem { fill: none; stroke: #9aa86a; stroke-width: 1; }
.vines__leaf { fill: #a9b877; } .vines__bud { fill: #f3b9b0; }
.rsvp__head { font: 400 clamp(38px, 11vw, 46px)/1.1 var(--f-caps); color: #6a3312; letter-spacing: .03em; }
.rsvp { margin-top: 8px; display: grid; gap: 14px; }
.rsvp li > p:first-child { font: 700 clamp(17px, 5.2vw, 21px)/1.4 var(--f-body); color: #dd5a3c; }
.rsvp__go { margin-top: 5px; display: flex; justify-content: center; gap: 8px; }
.rsvp__go a { font: 400 12px/1 var(--f-type); letter-spacing: .06em; text-decoration: none; padding: 9px 14px 7px; border-radius: 999px; color: #b0432a; border: 1.2px solid currentColor; background: rgba(255, 255, 255, .6); }
.rsvp__go a + a { background: #2f9e58; border-color: #2f9e58; color: #fff; }
.flourish { display: block; width: 190px; margin: 26px auto 18px; fill: none; stroke: #c9683c; stroke-width: 1.3; stroke-linecap: round; }
.tag--copy { display: block; margin: 0 auto; background: none; border: 0; padding: 4px 8px; cursor: copy; }
.bless { margin-top: 22px; cursor: pointer; font: 400 13px/1 var(--f-type); letter-spacing: .06em; padding: 12px 18px 10px; border-radius: 999px; border: 0; color: #fff8ea; background: var(--maroon); box-shadow: 0 6px 14px -6px rgba(124, 20, 36, .7); }
.bless:active { scale: .96; }
.bless__done { margin-top: 20px; font: italic 600 21px/1.3 var(--f-ital); color: var(--maroon); }
.copied { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 85; translate: -50% 0; padding: 9px 16px 7px; border-radius: 999px; background: rgba(20, 30, 12, .88); color: #fff8e6; font: 400 13px/1 var(--f-type); }

/* =================================================================== FOOT */

.foot { width: calc(100% + 44px); margin: 10px -22px 0; padding: 40px 22px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: #fffbe8; background: linear-gradient(transparent, rgba(18, 50, 12, .82) 46%); }
.foot__names { font: 400 clamp(34px, 10vw, 44px)/1.2 var(--f-script); }
.foot__date { margin-top: 4px; font: 400 13px/1 var(--f-type); letter-spacing: .3em; opacity: .85; }
.foot__cal { margin-top: 18px; font: italic 600 17px/1.5 var(--f-ital); }
.foot__music { margin-top: 16px; font: italic 500 14px/1.4 var(--f-ital); opacity: .75; }
.foot__credit { margin-top: 10px; font: 400 10px/1.6 var(--f-type); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.foot a { text-underline-offset: 3px; }

/* =================================================================== LINK PREVIEW (1200 x 630) */

html.og .ogcard { align-items: center; justify-content: center; background: #5c9539 url(media/garden.jpg) 0 0 / 420px 420px; }
.ogcard__card {
  width: 1040px; height: 480px; display: flex; align-items: center; justify-content: center; gap: 50px; text-align: center;
  background: var(--cream); border: 12px solid #f76100; box-shadow: 0 0 0 9px #fe8f4a, 0 24px 50px rgba(10, 40, 10, .55);
}
.mono.ogcard__mono { font-size: 200px; flex: none; }
.ogcard__mono--img { height: 380px; width: auto; }
.ogcard__text { flex: 1; min-width: 0; padding-right: 36px; }
.ogcard__names { font: 400 90px/1.2 var(--f-script); color: var(--maroon); padding: 0 .2em; overflow-wrap: anywhere; text-wrap: balance; }
.ogcard__date { margin-top: 18px; font: 700 34px/1.3 var(--f-body); color: var(--olive); }
.ogcard__venue { margin-top: 10px; font: 700 30px/1.3 var(--f-body); color: var(--olive); text-wrap: balance; }
.ogcard__venue span { font-weight: 400; font-size: 26px; }

@media (min-width: 720px) {
  .garden { padding-top: 60px; gap: 64px; background-size: 480px 480px; }
  .moments { width: min(100%, 760px); margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .it { transition: none; }
}
