/* Saryu Deepotsav (दीपोत्सव). One world from top to bottom: blue-hour indigo, lamplight gold, hairline gold
   drawing, a lot of dark. Gate: sky and stars (canvas) -> a far town in haze -> the temple bank (SVG, a dark
   and a lit copy; the lit one is unmasked from the waterline up) -> the river and its reflections -> the ghat
   steps and their diyas (canvas, script.js). Then: invitation -> date and countdown -> a diya set afloat ->
   functions -> reply -> footer. Two faces (Cormorant Garamond, Pinyon Script) and Tiro Devanagari Hindi. */

:root {
  --night: #070921;
  --night-2: #0b0e2e;
  --indigo: #121746;
  --line: rgba(230, 194, 122, .34);
  --gold: #e6c27a;
  --gold-2: #f6dfa6;
  --amber: #f3a23a;
  --cream: #ece5d2;
  --mist: #b3b2d2;
  --f-text: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --fx-bg: #0b0e2e;
  --fx-music-bg: rgba(11, 14, 46, .82);
  --fx-music-ring: #e6c27a;
  --fx-music-ink: #f6dfa6;
}

html { scroll-behavior: smooth; background: #04051a; }
html.shut, html.shut body { overflow: hidden; }
body {
  color: var(--cream); font: 400 19px/1.6 var(--f-text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(210, 215, 255, .5) 50%, transparent 51%) 0 0 / 260px 240px,
    radial-gradient(1px 1px at 70% 60%, rgba(210, 215, 255, .35) 50%, transparent 51%) 0 0 / 190px 310px,
    radial-gradient(1.4px 1.4px at 45% 85%, rgba(255, 226, 170, .3) 50%, transparent 51%) 0 0 / 340px 280px,
    radial-gradient(60% 50% at 50% 46%, #0d1038, #04051a 80%) fixed;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 1.5px solid var(--gold-2); outline-offset: 4px; }
main, .foot { position: relative; max-width: 480px; margin: 0 auto; }
main {
  background: linear-gradient(180deg, var(--night) 0, var(--night-2) 28%, #0d1138 55%, var(--night-2) 80%, var(--night));
  box-shadow: 0 0 120px rgba(0, 0, 0, .7);
}
.w { display: inline-block; white-space: nowrap; }
[lang="hi"] { font-family: var(--f-deva); }

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

.gate {
  --hz: 53%; --bank: 36.75cqw;           /* the horizon, and the height of the temple bank above it */
  --lit: 0; --up: 0; --sy: 0; --px: 0;
  position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate;
  container-type: inline-size; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(130% 20% at 50% var(--hz), rgba(150, 120, 210, .34), transparent 70%),
    linear-gradient(180deg, #03041a 0, #070a29 calc(var(--hz) * .34), #0e1444 calc(var(--hz) * .66), #1e2670 calc(var(--hz) * .9), #333b90 var(--hz), #070921 var(--hz));
}
.scene, .scene > *, .scene__bank > * { position: absolute; }
.scene { inset: 0; }
.scene canvas { display: block; }
.scene__stars { left: 0; top: 0; width: 100%; height: var(--hz); transform: translate3d(calc(var(--px) * 3px), calc(var(--sy) * .42px), 0); }
.scene__glow {
  inset: 0; opacity: var(--up); mix-blend-mode: screen;
  background:
    radial-gradient(74% 30% at 50% var(--hz), rgba(255, 170, 72, .62), rgba(255, 128, 52, .2) 48%, transparent 74%),
    radial-gradient(120% 16% at 50% var(--hz), rgba(255, 196, 120, .4), transparent 70%);
  transform: translate3d(0, calc(var(--sy) * .2px), 0);
}
.scene__far {
  left: -4%; width: 108%; bottom: calc(100% - var(--hz) - 1px); height: calc(var(--bank) * .5);
  fill: #232a70; opacity: .78;
  transform: translate3d(calc(var(--px) * 6px), calc(var(--sy) * .28px), 0);
}
.scene__bank { inset: 0; transform-origin: 50% var(--hz); transform: translate3d(calc(var(--px) * 10px), calc(var(--sy) * .16px), 0) scale(1.05); }
.skyline { display: block; width: 100%; height: auto; overflow: visible; }
.scene__bank > .skyline, .scene__lit { left: 0; right: 0; bottom: calc(100% - var(--hz)); }
.scene__lit {
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--up) * 130% - 30%), transparent calc(var(--up) * 130%));
  mask-image: linear-gradient(to top, #000 calc(var(--up) * 130% - 30%), transparent calc(var(--up) * 130%));
}
.skyline--dark .step { fill: none; stroke: rgba(130, 142, 230, .2); stroke-width: .5; }
.skyline--lit .mass { stroke: rgba(255, 226, 160, .5); stroke-width: .35; }
.skyline--lit .rib { fill: rgba(255, 232, 170, .16); stroke: none; }
.skyline--lit .round { stroke: none; }
.skyline--lit .quay { fill: rgba(58, 26, 8, .6); stroke: none; }
.skyline--lit .band { fill: none; stroke: rgba(84, 44, 14, .5); stroke-width: .55; }
.skyline--lit .arch { fill: #fff3c8; stroke: rgba(255, 170, 60, .9); stroke-width: .5; }
.skyline--lit .ember { fill: #fff0bd; stroke: rgba(255, 160, 50, .7); stroke-width: 1; }
.skyline--lit .flag { fill: #e9792b; stroke: none; }
.skyline--dark .flag { fill: #0b0e2f; }
.lamps { stroke: #fff4d0; stroke-width: 1.05; }
.glowlamps { stroke: #ff9a2e; stroke-width: 3.4; opacity: .42; }

/* the river: the sky's last light at the far bank, deep indigo at our feet */
.water {
  left: -3%; right: -3%; top: var(--hz); bottom: -10%; overflow: hidden;
  background: linear-gradient(180deg, #2d3486 0, #1c2268 9%, #10143f 34%, #080a26 70%);
}
.water::before {                /* warm light pooling on the water under the lit bank */
  content: ""; position: absolute; inset: 0; opacity: var(--up);
  background: radial-gradient(64% 46% at 50% 0, rgba(255, 168, 70, .5), rgba(255, 130, 50, .12) 60%, transparent 80%);
}
.water::after {                 /* ripples: thin dark bands that slide, breaking every reflection */
  content: ""; position: absolute; inset: -20px 0 0;
  background: repeating-linear-gradient(180deg, transparent 0 2.5px, rgba(7, 9, 36, .2) 2.5px 4px, transparent 4px 9px, rgba(7, 9, 36, .12) 9px 10px, transparent 10px 16px);
  animation: syRipple 3.4s linear infinite;
}
@keyframes syRipple { to { transform: translateY(16px); } }
.refl {
  position: absolute; left: 2.83%; width: 94.34%; bottom: 100%; height: auto; overflow: visible;
  transform-origin: 50% 100%; transform: scaleY(-.82); filter: blur(1.1px);
  -webkit-mask-image: linear-gradient(to top, #000 8%, rgba(0, 0, 0, .55) 45%, transparent 92%);
  mask-image: linear-gradient(to top, #000 8%, rgba(0, 0, 0, .55) 45%, transparent 92%);
  animation: syWobble 5s ease-in-out infinite alternate;
}
.refl--dark { opacity: .7; }
.refl--lit { opacity: calc(var(--up) * 1.25 - .25); }
@keyframes syWobble { from { transform: scaleY(-.82) skewX(-.7deg); } to { transform: scaleY(-.86) skewX(.7deg); } }

.scene__mist {
  left: -20%; right: -20%; top: calc(var(--hz) - 3.5%); height: 9%; filter: blur(8px); pointer-events: none;
  background:
    radial-gradient(40% 60% at 22% 50%, rgba(160, 170, 250, .2), transparent 70%),
    radial-gradient(46% 56% at 74% 54%, rgba(160, 170, 250, .16), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 190, 120, calc(var(--up) * .16)), transparent);
  animation: syMist 26s ease-in-out infinite alternate;
}
@keyframes syMist { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
.scene__fx { inset: 0; width: 100%; height: 100%; }
.gate::before {                 /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--tex-grain); opacity: .11; mix-blend-mode: overlay;
}
.gate::after {                  /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 91%, #070921), radial-gradient(120% 85% at 50% 55%, transparent 55%, rgba(2, 3, 16, .62));
}

/* --- words in the sky: real dark above the spires --- */
.sky {
  position: absolute; z-index: 4; left: 18px; right: 18px; top: calc(58px + env(safe-area-inset-top));
  bottom: calc(100% - var(--hz) + var(--bank) + 2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  pointer-events: none;
}
.sky__hi { font: 400 15px/1.3 var(--f-deva); letter-spacing: .06em; color: var(--gold); opacity: .78; }
.sky__to { margin-top: 8px; font: italic 400 17px/1.3 var(--f-text); color: var(--mist); overflow-wrap: anywhere; }
.sky__mid { position: relative; width: 100%; display: grid; place-items: center; margin: clamp(6px, 1.6svh, 16px) 0; }
.sky__mid > * { grid-area: 1 / 1; }
.sky__wait { font: italic 300 clamp(20px, 6cqw, 26px)/1.3 var(--f-text); color: var(--mist); transition: opacity .9s ease; }
.names {
  max-width: 100%; font: 400 clamp(46px, 15.5cqw, 70px)/1.08 var(--f-script); color: var(--gold-2);
  text-shadow: 0 0 22px rgba(255, 186, 96, .42), 0 0 2px rgba(255, 220, 160, .4); text-wrap: balance;
  opacity: 0; filter: blur(7px); transform: translateY(8px);
  transition: opacity 2s ease, filter 2s ease, transform 2.2s var(--ease);
}
.names em, .foot__names em, .og__names em { font: italic 300 .52em/1 var(--f-text); color: var(--gold); padding: 0 .12em 0 .04em; vertical-align: .08em; }
.sky__date {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 10px;
  font: 500 12.5px/1.5 var(--f-text); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transition: opacity 1.6s ease .7s;
}
.sky__date i, .foot__date i, .ev__day i { display: inline-block; width: 4px; height: 4px; rotate: 45deg; background: currentColor; opacity: .7; }
.gate.named .names { opacity: 1; filter: none; transform: none; }
.gate.named .sky__date { opacity: 1; }
.gate.named .sky__wait, .gate[data-phase="open"] .sky__wait { opacity: 0; }
.gate.instant :is(.names, .sky__date, .sky__wait) { transition: none; }

/* --- the first diya, within reach --- */
.first {
  position: absolute; z-index: 5; left: 50%; top: 86.8%; width: 124px; height: 104px; margin: -58px 0 0 -62px;
  padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; border-radius: 50%;
  display: grid; place-items: center; -webkit-touch-callout: none;
}
.first svg { position: relative; width: 78px; height: auto; overflow: visible; filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .55)); }
.fd-c1 { stop-color: #343a78; transition: stop-color 1s; }
.fd-c2 { stop-color: #12143a; transition: stop-color 1s; }
.fd-oil { fill: #0d0f30; transition: fill .8s; }
.fd-rim { fill: none; stroke: #8f99e6; stroke-width: 1.3; transition: stroke .8s; }
.fd-dots { fill: none; stroke: #7780cf; stroke-width: 2; opacity: .7; transition: stroke .8s; }
.fd-wick { fill: none; stroke: #c9cdf2; stroke-width: 2; stroke-linecap: round; }
.fd-flame { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.first__halo { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; border: 1px solid rgba(230, 194, 122, .7); animation: syCall 2.8s ease-out infinite; }
@keyframes syCall { 0% { transform: scale(.55); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.first:focus-visible { outline-offset: -6px; }
.gate:not([data-phase="idle"]) .first__halo { display: none; }
.gate:not([data-phase="idle"]) .fd-c1 { stop-color: #b0652a; }
.gate:not([data-phase="idle"]) .fd-c2 { stop-color: #4a2414; }
.gate:not([data-phase="idle"]) .fd-oil { fill: #f7c768; }
.gate:not([data-phase="idle"]) .fd-rim { stroke: #ffe3a2; }
.gate:not([data-phase="idle"]) .fd-dots { stroke: #ffd98c; }
.gate:not([data-phase="idle"]) .fd-flame { transform: none; opacity: 1; }
.gate:not([data-phase="idle"]) .fd-flame path { transform-box: fill-box; transform-origin: 50% 100%; animation: syFlame 1.7s ease-in-out infinite alternate; }
.gate:not([data-phase="idle"]) .fd-flame path + path { animation-duration: 1.1s; }
@keyframes syFlame { 0% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.94, 1.07) skewX(2.5deg); } 62% { transform: scale(1.04, .95) skewX(-2deg); } 100% { transform: scale(.97, 1.04) skewX(1deg); } }
.gate[data-phase="open"] .first { cursor: default; }

.gate__hint, .gate__on {
  position: absolute; z-index: 5; left: 50%; top: 94.4%; translate: -50% -50%; width: max-content; max-width: 62%;
  text-align: center; font: italic 400 17px/1.22 var(--f-text); color: #d5d3ee; text-shadow: 0 1px 8px #04051a;
  transition: opacity .6s ease;
}
.gate.lit-on .gate__hint { color: #ffe9bd; }
.gate[data-phase="open"] .gate__hint { opacity: 0; visibility: hidden; }
.gate__on {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 12px; text-decoration: none;
  font: 500 11.5px/1.3 var(--f-text); font-style: normal; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--gold-2);
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease 1.4s;
}
.gate__on i { width: 1px; height: 20px; background: currentColor; transform-origin: top; animation: syDrip 2.4s var(--ease) infinite; }
@keyframes syDrip { 0% { scale: 1 0; } 55% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }
.gate[data-phase="open"] .gate__on { opacity: 1; visibility: visible; }
.gate.instant .gate__on { transition: none; }
.gate__skip {
  position: absolute; z-index: 6; right: 14px; top: calc(12px + env(safe-area-inset-top)); min-width: 62px; height: 44px; padding: 0 14px;
  border: 0; background: none; cursor: pointer;
  font: 500 11.5px/1 var(--f-text); letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--mist);
}
.gate__skip::after { content: ""; position: absolute; inset: 7px 0; border: 1px solid rgba(179, 178, 210, .4); border-radius: 999px; }
.gate[data-phase="open"] .gate__skip { display: none; }
html:not(.js) :is(.gate__skip, .gate__hint, .first__halo, .sky__wait) { display: none; }
html:not(.js) .gate { --up: 1; --lit: 1; }
html:not(.js) :is(.names, .sky__date) { opacity: 1; filter: none; transform: none; }

/* =================================================================== THE SCROLL */

.sec { position: relative; padding: 92px 28px 96px; text-align: center; }
.afloat { padding-bottom: 48px; }
.date { padding-bottom: 72px; }
.kicker { font: 500 12px/1.5 var(--f-text); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--gold); }
.kicker--quiet { color: var(--mist); }
.title { margin-top: 14px; font: 300 clamp(34px, 9.6vw, 44px)/1.1 var(--f-text); color: var(--cream); text-wrap: balance; }
.title em { font-style: italic; color: var(--gold-2); }
.lead { max-width: 21em; margin: 18px auto 0; color: #cfcbdc; text-wrap: pretty; }
.mark { display: block; width: 200px; max-width: 64%; margin: 0 auto 34px; fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mark circle { fill: var(--gold); stroke: none; }
.mark__flame { fill: var(--amber); stroke: none; filter: drop-shadow(0 0 5px rgba(255, 170, 60, .9)); transform-box: fill-box; transform-origin: 50% 100%; animation: syFlame 2.2s ease-in-out infinite alternate; }

/* --- the invitation --- */
.invite { padding-top: 84px; }
.invite__in {
  position: relative; padding: 14px 22px 44px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, transparent, rgba(230, 194, 122, .045) 50%, transparent);
}
.invite__in::before, .invite__in::after { content: ""; position: absolute; top: 0; height: 1px; width: calc(50% - 74px); background: var(--line); }
.invite__in::before { left: 0; } .invite__in::after { right: 0; }
.crest { display: block; width: 120px; margin: -62px auto 26px; fill: none; stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; overflow: visible; }
.invite__ask { max-width: 19.5em; margin: 20px auto 0; color: #d6d2e2; text-wrap: pretty; }
.pair { margin-top: 34px; }
.pair__name { font: 400 clamp(46px, 13.5vw, 60px)/1.1 var(--f-script); color: var(--gold-2); text-shadow: 0 0 20px rgba(255, 186, 96, .3); overflow-wrap: anywhere; }
.pair__kin { max-width: 17em; margin: 8px auto 0; font-size: 18px; line-height: 1.45; color: #cfcbdc; text-wrap: balance; }
.pair__kin span { display: block; font: 500 11px/1.9 var(--f-text); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--gold); }
.pair__amp { margin: 20px auto 16px; display: flex; align-items: center; justify-content: center; gap: 16px; font: italic 300 30px/1 var(--f-text); color: var(--gold); }
.pair__amp::before, .pair__amp::after { content: ""; width: 46px; height: 1px; background: var(--line); }
.invite__msg { max-width: 19em; margin: 34px auto 0; padding-top: 26px; border-top: 1px solid var(--line); font: italic 400 21px/1.5 var(--f-text); color: var(--gold-2); text-wrap: pretty; }
.kin { margin-top: 70px; }
.kin__list { margin-top: 18px; display: grid; gap: 14px; }
.kin__list li { display: flex; flex-direction: column; }
.kin__list b { font: 500 22px/1.25 var(--f-text); color: var(--cream); }
.kin__list span { font: italic 400 17px/1.4 var(--f-text); color: var(--mist); }

/* --- the date --- */
.date { padding-top: 40px; }
.day { position: relative; width: min(290px, 82vw); aspect-ratio: 1; margin: 46px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 80, .13), transparent 72%); }
.day__ring { position: absolute; inset: 0; animation: sySpin 90s linear infinite; }
.day__ring i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 9px 2px rgba(255, 166, 60, .75); transform: rotate(calc(var(--i) * 15deg)) translateY(calc(min(290px, 82vw) / -2 + 4px)); animation: syTwinkle 2.4s ease-in-out calc(var(--i) * -.37s) infinite alternate; }
@keyframes sySpin { to { rotate: 360deg; } }
@keyframes syTwinkle { from { opacity: .45; } to { opacity: 1; } }
.day__week, .day__month, .day__time { font: 500 12.5px/1.6 var(--f-text); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--gold); }
.day__num {
  font: 300 clamp(104px, 31vw, 132px)/.86 var(--f-text); font-variant-numeric: lining-nums; margin: 2px 0 8px;
  background: linear-gradient(180deg, #fff1c9 10%, #e9b963 55%, #b97a2c 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.day__time { margin-top: 2px; color: var(--mist); }
.date__at { margin-top: 34px; color: #cfcbdc; }
.date__at strong { font: 500 24px/1.3 var(--f-text); color: var(--cream); }
.date__count { margin-top: 54px; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 340px; margin: 18px auto 0; font: 500 10.5px/1.4 var(--f-text); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; color: var(--mist); }
.count span + span { border-left: 1px solid var(--line); }
.count b { font: 300 40px/1.1 var(--f-text); letter-spacing: 0; text-indent: 0; color: var(--gold-2); font-variant-numeric: lining-nums tabular-nums; }
.count__done { margin-top: 16px; font: italic 400 22px/1.4 var(--f-text); color: var(--gold-2); }

/* --- a diya set afloat --- */
.river {
  position: relative; height: 250px; margin: 40px -28px 0; overflow: hidden; cursor: pointer; touch-action: manipulation;
  background:
    radial-gradient(70% 34% at 50% 0, rgba(255, 170, 72, .3), transparent 75%),
    linear-gradient(180deg, #1b2166 0, #10143f 30%, #090b2a 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent);
}
.river__bank { position: absolute; left: 0; right: 0; top: 30px; height: 4px; background: radial-gradient(circle, #fff0c4 0 1.2px, rgba(255, 170, 60, .7) 1.6px, transparent 2.6px) 0 0 / 9px 4px repeat-x; filter: drop-shadow(0 0 5px #ff9a2e); }
.river__bank::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 26px; background: linear-gradient(0deg, rgba(255, 176, 84, .26), transparent); }
.river__bank::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 84px; background: repeating-linear-gradient(90deg, rgba(255, 196, 110, .55) 0 2px, transparent 2px 9px, rgba(255, 196, 110, .3) 9px 11px, transparent 11px 18px); filter: blur(.7px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.river::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(7, 9, 36, .3) 3px 4.5px, transparent 4.5px 16px); animation: syRipple 3.4s linear infinite; }
.river__lamps { position: absolute; inset: 0; pointer-events: none; }
.lamp { position: absolute; width: 22px; height: 9px; margin: -5px 0 0 -11px; border-radius: 0 0 11px 11px / 0 0 9px 9px; background: linear-gradient(180deg, #a9612a, #4a2414); }
.lamp::before { content: ""; position: absolute; left: 50%; bottom: 7px; width: 7px; height: 13px; margin-left: -3.5px; border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; background: radial-gradient(circle at 50% 70%, #fffbe6, #ffd25e 45%, #f58a1f); box-shadow: 0 0 16px 7px rgba(255, 168, 60, .55), 0 0 44px 16px rgba(255, 140, 40, .22); animation: syFlame 1.3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.lamp::after { content: ""; position: absolute; left: 50%; top: 10px; width: 9px; height: 46px; margin-left: -4.5px; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 196, 100, .75), rgba(255, 150, 50, 0)); filter: blur(1.4px); }
.river__btn {
  position: absolute; left: 50%; bottom: 46px; translate: -50% 0; z-index: 2; min-height: 46px; padding: 0 24px; cursor: pointer;
  border: 1px solid var(--gold); border-radius: 999px; background: rgba(7, 9, 33, .66);
  font: 500 12.5px/1 var(--f-text); letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap;
}
.river__note { margin-top: 2px; font: italic 400 18px/1.5 var(--f-text); color: var(--mist); min-height: 2.9em; text-wrap: balance; }

/* --- the functions: a string of lamps --- */
.evs { position: relative; margin-top: 50px; text-align: left; }
.evs::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 30px; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(230, 194, 122, .12)); }
.ev { position: relative; padding: 0 0 54px 44px; }
.ev:last-child { padding-bottom: 0; }
.ev__lamp { position: absolute; left: 0; top: 9px; width: 21px; height: 9px; border-radius: 0 0 11px 11px / 0 0 9px 9px; background: linear-gradient(180deg, #c98a45, #6a3a1a); box-shadow: 0 0 0 6px var(--night-2); }
.ev__lamp::before { content: ""; position: absolute; left: 50%; bottom: 7px; width: 6px; height: 11px; margin-left: -3px; border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; background: radial-gradient(circle at 50% 70%, #fffbe6, #ffd25e 45%, #f58a1f); box-shadow: 0 0 14px 6px rgba(255, 168, 60, .5); transform-origin: 50% 100%; animation: syFlame 1.5s ease-in-out infinite alternate; }
.ev__day { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; font: 500 12.5px/1.6 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ev__day b { font: 400 30px/1 var(--f-text); letter-spacing: 0; color: var(--gold-2); font-variant-numeric: lining-nums; }
.ev__hi { margin-top: 12px; font-size: 17px; line-height: 1.3; color: var(--gold); opacity: .85; }
.ev__name { margin-top: 2px; font: 400 clamp(32px, 9vw, 40px)/1.12 var(--f-text); color: var(--cream); overflow-wrap: anywhere; }
.ev__hi + .ev__name { margin-top: 0; }
.ev__when { margin-top: 10px; font: italic 400 19px/1.4 var(--f-text); color: var(--gold-2); }
.ev__where { margin-top: 4px; color: #cfcbdc; }
.ev__where strong { font-weight: 600; color: var(--cream); }
.ev__note { margin-top: 12px; color: #c1bdd4; text-wrap: pretty; }
.ev__dress { margin-top: 10px; color: #cfcbdc; }
.ev__dress span { margin-right: 8px; font: 500 11px/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ev__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.lnk {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  font: 500 11px/1 var(--f-text); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap;
  transition: background .3s, border-color .3s;
}
.lnk:hover { border-color: var(--gold); background: rgba(230, 194, 122, .08); }
.lnk--solid { background: var(--gold); border-color: var(--gold); color: #1a1436; font-weight: 600; }
.lnk--solid:hover { background: var(--gold-2); }

/* --- gallery --- */
.gallery__grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 120px 120px 3px 3px; }
.gallery__grid img:nth-child(even) { margin-top: 28px; }

/* --- the reply --- */
.reply { padding-bottom: 76px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 34px; padding: 0 30px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #f6dfa6, #e0b566); color: #1a1436; box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 10px 40px -8px rgba(255, 170, 60, .55);
  font: 600 13px/1 var(--f-text); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; white-space: nowrap;
}
.reply__far { display: block; width: max-content; max-width: 100%; margin: 14px auto 0; padding: 12px 6px; font: italic 400 18px/1.3 var(--f-text); color: var(--gold-2); text-underline-offset: 5px; text-decoration-color: var(--line); }
.reply__tag { margin-top: 30px; font: 500 14px/1.4 var(--f-text); letter-spacing: .22em; color: var(--gold); overflow-wrap: anywhere; }

/* --- footer: the lit bank once more, far off --- */
.foot { overflow: hidden; text-align: center; background: var(--night); }
.foot__scene { position: relative; padding-top: 44px; background: linear-gradient(180deg, var(--night), #0e1342 62%, #1d2570); }
.foot__scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: -40px; height: 170px; background: radial-gradient(60% 50% at 50% 60%, rgba(255, 160, 66, .34), transparent 75%); }
.foot__scene .skyline { position: relative; width: 100%; }
.foot__in { position: relative; padding: 46px 24px calc(96px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #1c2268 0, #0d103a 30px, var(--night) 130px); }
.foot__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44px; background: radial-gradient(50% 100% at 50% 0, rgba(255, 170, 72, .32), transparent 80%); }
.foot__names { position: relative; font: 400 46px/1.15 var(--f-script); color: var(--gold-2); overflow-wrap: anywhere; }
.foot__date { margin-top: 10px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 10px; font: 500 12px/1.6 var(--f-text); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--gold); }
.foot__cal { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 22px; font: 500 11px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-2); text-decoration-color: var(--line); text-underline-offset: 5px; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #9b9abb; }
.foot__music { margin-top: 26px; }
.foot__credit a { color: var(--mist); }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font: 500 11px/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* =================================================================== LINK-PREVIEW CARD */

html.og .ogcard {
  color: var(--cream);
  background:
    radial-gradient(60% 34% at 74% 66%, rgba(255, 166, 70, .5), rgba(255, 128, 52, .14) 55%, transparent 78%),
    linear-gradient(180deg, #03041a 0, #080b2c 30%, #121a52 54%, #252d78 66%, #0b0e30 66.2%, #070921 100%);
}
.og__bank { position: absolute; right: -40px; bottom: 214px; width: 610px; }
.og__bank .skyline { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
.og__bank .skyline { position: relative; }
.og__refl { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%; transform: scaleY(-.62); filter: blur(2px); opacity: .75; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%), linear-gradient(90deg, transparent, #000 20%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, #000 10%, transparent 85%), linear-gradient(90deg, transparent, #000 20%); mask-composite: intersect; }
.og__ghat { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; overflow: visible; }
.og__tread { fill: color-mix(in srgb, #1a1c50, #0a0b26 calc(var(--k) * 30%)); stroke: rgba(255, 196, 120, .3); stroke-width: 1.5; }
.og__halo { fill: none; stroke: #ff9226; stroke-linecap: round; opacity: .6; filter: blur(7px); }
.og__dot { fill: none; stroke: #fff0c0; stroke-linecap: round; }
.og__text { position: absolute; left: 64px; top: 84px; width: 640px; }
.og__hi { font: 400 30px/1.3 var(--f-deva); color: var(--gold); letter-spacing: .05em; }
.og__names { margin: 10px 0 18px -4px; white-space: nowrap; font: 400 96px/1.2 var(--f-script); color: var(--gold-2); text-shadow: 0 0 34px rgba(255, 186, 96, .45); }
.og__date { font: 600 38px/1.3 var(--f-text); color: #fff1cf; }
.og__venue { margin-top: 4px; font: italic 400 31px/1.3 var(--f-text); color: #c9c7e4; }

/* =================================================================== WIDER SCREENS, LESS MOTION */

@media (min-width: 700px) {
  .gate { height: min(100svh, 980px); }
  main { box-shadow: 0 0 0 1px rgba(230, 194, 122, .1), 0 0 140px rgba(0, 0, 0, .8); }
  .foot { box-shadow: 1px 0 0 rgba(230, 194, 122, .1), -1px 0 0 rgba(230, 194, 122, .1); }
  .sec { padding-inline: 44px; }
  .river { margin-inline: -44px; }
}
@media (max-height: 640px) {
  .sky { top: calc(50px + env(safe-area-inset-top)); }
  .sky__hi { font-size: 13px; }
  .names { font-size: clamp(40px, 13cqw, 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .first__halo { opacity: .6; transform: none; }
  .names { filter: none; transform: none; }
}
