/* Chandi (चाँदी): a silver jubilee. White, brushed silver and soft garden roses; engraved capitals
   (Marcellus), a warm book face (EB Garamond) and a light script (Allura) for names.
   Opening: a tarnished plaque the guest polishes clean -> the years shine, bells, the roses open.
   Then: note from the children -> the years as charms on a chain -> a silver coin with two dates
   + countdown -> the evening -> blessings on WhatsApp -> footer. */

:root {
  --white: #fcfcfb;
  --mist: #eef0f2;
  --mist-2: #e2e6ea;
  --s1: #f6f7f9;
  --s2: #d8dce1;
  --s3: #aab1ba;
  --s4: #79818c;
  --ink: #2a3039;
  --ink-2: #4f5762;
  --blush: #d99aa2;
  --blush-ink: #a85f6b;
  --blush-pale: #f6e4e5;
  --sage: #9fb3a5;

  --f-eng: "Marcellus SC", "Marcellus", Georgia, serif;
  --f-disp: "Marcellus", Georgia, serif;
  --f-body: "EB Garamond", Garamond, Georgia, serif;
  --f-script: "Allura", "Snell Roundhand", cursive;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --silver: linear-gradient(160deg, #f6f8fa 0%, #c9cfd6 20%, #f0f3f5 38%, #a8b0b9 57%, #e6e9ed 74%, #98a0aa 100%);
  --brushed: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, rgba(40, 46, 56, .035) 1px 2px, transparent 2px 3px);
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23aab1ba' stroke-opacity='.15' stroke-width='1'%3E%3Cpath d='M60 18c10 14 10 28 0 42-10-14-10-28 0-42zM60 60c10 14 10 28 0 42-10-14-10-28 0-42zM18 60c14-10 28-10 42 0-14 10-28 10-42 0zM60 60c14-10 28-10 42 0-14 10-28 10-42 0z'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='120' cy='0' r='3'/%3E%3Ccircle cx='0' cy='120' r='3'/%3E%3Ccircle cx='120' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E");

  --fx-music-bg: #2a3039;
  --fx-music-ring: #c9ced5;
  --fx-music-ink: #f4f5f7;
  --fx-bg: #fff;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body {
  background: var(--damask) center top / 120px, radial-gradient(120% 60% at 50% 0%, #fff, var(--mist) 70%) fixed, var(--mist);
  color: var(--ink);
  font: 400 19px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--blush-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blush-ink); outline-offset: 4px; }

/* engraved type, shared by the plaque, the coin and the medals */
.engraved { color: #87909b; text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(52, 58, 68, .42); }

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 400 13px/1.2 var(--f-eng); letter-spacing: .24em; text-transform: uppercase; color: var(--s4);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 7px; height: 7px; rotate: 45deg; border: 1px solid var(--s3); flex: none; }
.sec__title {
  margin: 14px 0 0; font: 400 clamp(32px, 8.6vw, 46px)/1.12 var(--f-disp); letter-spacing: .005em; text-wrap: balance;
}
.sec__title em { display: inline-block; font: 400 1.3em/1 var(--f-script); color: var(--blush-ink); padding: 0 .06em; }
.filigree {
  display: block; width: 150px; height: 14px; margin: 22px auto;
  background:
    linear-gradient(var(--s3), var(--s3)) left center / 58px 1px no-repeat,
    linear-gradient(var(--s3), var(--s3)) right center / 58px 1px no-repeat;
}
.filigree::before { content: ""; display: block; width: 9px; height: 9px; margin: 2.5px auto 0; rotate: 45deg; background: var(--blush); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--s3); }

/* =================================================================== OPENING: the plaque */

.gate {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 42%, #fff 0%, #f1f3f5 55%, #dfe3e8 100%);
}
.gate__sprig { position: absolute; width: min(60vw, 400px); pointer-events: none; z-index: 0; }
.gate__sprig svg { display: block; width: 100%; height: auto; }
.gate__sprig--tl { top: -34px; left: -40px; transform: scaleY(-1); }
.gate__sprig--br { bottom: -14px; right: -30px; transform: scaleX(-1); }
.gate__in :is(.gate__hosts, .hero) { text-shadow: 0 0 10px #fff, 0 0 18px #fff; }
.sprig__bloom { transform-box: fill-box; transform-origin: center; transition: transform 1.6s var(--ease) var(--d), opacity 1.2s ease var(--d); }
.gate:not([data-phase="open"]) .sprig__bloom { transform: scale(.45) rotate(-40deg); opacity: .55; }
.gate[data-phase="open"] .sprig__bloom { transform: none; opacity: 1; }

.gate__in {
  position: relative; z-index: 1; width: min(100%, 460px);
  padding: calc(80px + env(safe-area-inset-top)) 16px calc(36px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gate__hosts {
  font: 400 14px/1.4 var(--f-eng); letter-spacing: .18em; text-transform: uppercase; color: var(--s4);
  opacity: 0; translate: 0 8px; transition: opacity 1s var(--ease) .3s, translate 1s var(--ease) .3s;
}
.gate__hosts span { display: block; color: var(--ink); }
.gate__hosts em { display: block; margin-top: 4px; font: italic 400 18px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
.gate[data-phase="open"] .gate__hosts { opacity: 1; translate: 0 0; }

/* --- the stage: plaque, tarnish canvas, cloth --- */
.stage {
  position: relative; width: min(74vw, 300px, 46svh); aspect-ratio: 3 / 4; margin: 22px 0 26px;
  container-type: inline-size;
}
.plaque {
  position: absolute; inset: 0; border-radius: 50% 50% 14px 14px / 26% 26% 14px 14px;
  background: var(--brushed), var(--silver);
  box-shadow:
    inset 0 0 0 5px #cfd4da, inset 0 0 0 6px #8a929c, inset 0 0 0 11px #eef1f4, inset 0 0 0 12px #9aa2ab,
    inset 0 2px 1px 12px rgba(255, 255, 255, .6),
    0 34px 50px -26px rgba(38, 46, 58, .6), 0 6px 14px -6px rgba(38, 46, 58, .35);
}
.plaque__face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw;
  padding: 12cqw 9cqw 9cqw;
}
.plaque__face > p { color: #848d98; text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(52, 58, 68, .45); }
.plaque__milestone { font: 400 5.4cqw/1.1 var(--f-eng); letter-spacing: .16em; text-transform: uppercase; }
.plaque__num {
  font: 400 46cqw/.86 var(--f-disp); letter-spacing: -.02em; margin: 1cqw 0 0;
  background: linear-gradient(180deg, #b8bfc7, #78818c 60%, #a6aeb7); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, .95)) drop-shadow(0 -1px 0 rgba(48, 54, 64, .35));
}
.plaque__years { font: italic 400 6cqw/1 var(--f-body); }
.plaque__couple { font: 400 12cqw/1.1 var(--f-script); margin-top: 1cqw; white-space: nowrap; }
.plaque__date { font: 400 4.6cqw/1 var(--f-eng); letter-spacing: .2em; }
.plaque__rule { width: 42%; height: 2px; border-top: 1px solid rgba(70, 78, 90, .45); border-bottom: 1px solid rgba(255, 255, 255, .9); }
.plaque__shine {
  position: absolute; inset: -10% -60%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 48%, #fff 50%, rgba(255, 255, 255, .95) 52%, transparent 62%);
  translate: -100% 0;
}
.plaque.shine .plaque__shine { animation: sweep 1.5s var(--ease) forwards, sweep 1.8s var(--ease) 7s infinite; }
.plaque.shine .plaque__num { animation: glow 2.4s ease 1; }
@keyframes sweep { 0% { translate: -100% 0; } 100% { translate: 100% 0; } }
@keyframes glow { 0% { filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, .95)); } 30% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1)) brightness(1.3); } 100% { filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, .95)) drop-shadow(0 -1px 0 rgba(48, 54, 64, .35)); } }
.plaque__rivet {
  position: absolute; width: 4.2cqw; height: 4.2cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c3c9d0 45%, #7e8792);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}
.plaque__rivet--tl { top: 32%; left: 6.5cqw; } .plaque__rivet--tr { top: 32%; right: 6.5cqw; }
.plaque__rivet--bl { bottom: 6.5cqw; left: 6.5cqw; } .plaque__rivet--br { bottom: 6.5cqw; right: 6.5cqw; }

.tarnish {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  border-radius: 50% 50% 14px 14px / 26% 26% 14px 14px;
  touch-action: none; cursor: grab; transition: opacity 1.1s ease;
}
.tarnish.gone { opacity: 0; pointer-events: none; }
.gate.is-rubbing .tarnish { cursor: grabbing; }

/* the polishing cloth: drifts in a little figure-eight until the guest picks it up */
.cloth {
  position: absolute; z-index: 3; left: 58%; top: 62%; width: 70px; height: 54px; margin: -27px 0 0 -35px;
  pointer-events: none; transition: opacity .5s ease;
  animation: wipe 3.2s ease-in-out infinite;
}
.cloth i {
  position: absolute; inset: 0; border-radius: 10px 16px 12px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 40%),
    repeating-linear-gradient(45deg, rgba(168, 95, 107, .09) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #fbeff0, #efc9cd 60%, #e0aeb4);
  box-shadow: 0 10px 18px -8px rgba(80, 40, 46, .45), inset -6px -8px 0 -4px rgba(168, 95, 107, .18);
  rotate: -14deg;
}
.cloth i::after { content: ""; position: absolute; right: -6px; bottom: 8px; width: 26px; height: 20px; border-radius: 4px 12px 12px 4px; background: linear-gradient(160deg, #f6dcdf, #dba4ab); rotate: 18deg; }
@keyframes wipe {
  0%, 100% { left: 58%; top: 62%; }
  25% { left: 34%; top: 50%; }
  50% { left: 62%; top: 40%; }
  75% { left: 40%; top: 66%; }
}
.gate.is-rubbing .cloth { animation: none; }
.gate[data-phase="shine"] .cloth, .gate[data-phase="open"] .cloth { opacity: 0; }

/* --- the hint, then the names, in the same place --- */
.gate__swap { display: grid; }
.gate__hint, .hero { grid-area: 1 / 1; }
.gate__hint { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .6s ease; }
.gate__to { font: italic 400 18px/1.3 var(--f-body); color: var(--blush-ink); margin-bottom: 4px; }
.gate__deva { font: 400 22px/1.3 var(--f-deva); color: var(--blush-ink); }
.gate__line { font: italic 400 19px/1.35 var(--f-body); color: var(--ink-2); }
.gate__meter { width: 150px; height: 3px; margin: 12px 0 6px; border-radius: 3px; background: var(--s2); overflow: hidden; }
.gate__meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--s3), #fff, var(--s3)); transform-origin: left; scale: var(--p, 0) 1; transition: scale .2s linear; }
.gate__polish {
  min-height: 44px; padding: 0 20px; margin-top: 6px; border: 1px solid var(--s3); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .7); font: 400 13px/1 var(--f-eng); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.gate__polish:hover { background: #fff; border-color: var(--s4); }
.gate:not([data-phase="idle"]) .gate__hint { opacity: 0; pointer-events: none; }
.gate[data-phase="open"] .gate__hint { visibility: hidden; }

.hero { display: flex; flex-direction: column; align-items: center; }
.gate:not([data-phase="open"]) .hero { visibility: hidden; }
.hero > * { opacity: 0; translate: 0 14px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
.gate[data-phase="open"] .hero > * { opacity: 1; translate: 0 0; }
.gate[data-phase="open"] .hero > :nth-child(2) { transition-delay: .2s; }
.gate[data-phase="open"] .hero > :nth-child(3) { transition-delay: .4s; }
.gate[data-phase="open"] .hero > :nth-child(4) { transition-delay: 1s; }
.hero__names { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.hero__name { font: 400 clamp(40px, 11.5vw, 56px)/1.05 var(--f-script); color: var(--ink); }
.hero__amp { font: 400 22px/1.2 var(--f-disp); color: var(--blush-ink); margin: 2px 0; }
.hero__hi { margin-top: 8px; font: 400 21px/1.3 var(--f-deva); color: var(--s4); }
.hero__wed { margin-top: 8px; font: 400 14px/1.3 var(--f-eng); letter-spacing: .2em; text-transform: uppercase; color: var(--s4); }
.hero__down {
  margin-top: 22px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font: 400 12px/1 var(--f-eng); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.hero__down::after { content: ""; width: 1px; height: 26px; background: var(--s4); transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { scale: 1 0; } 50% { scale: 1 1; transform-origin: top; } 51% { transform-origin: bottom; } 100% { scale: 1 0; transform-origin: bottom; } }

.gate__skip {
  position: absolute; z-index: 6; top: calc(12px + env(safe-area-inset-top)); right: 12px;
  min-height: 44px; min-width: 64px; padding: 0 16px; border: 1px solid var(--s3); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .6); font: 400 12px/1 var(--f-eng); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.gate:not([data-phase="idle"]) .gate__skip { display: none; }

/* glints thrown off while rubbing (made in script.js) */
.glint {
  position: fixed; z-index: 81; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%),
    linear-gradient(transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 1px #9aa2ac);
}

html:not(.js) :is(.tarnish, .cloth, .gate__hint, .gate__skip) { display: none; }
html:not(.js) .hero, html:not(.js) .hero > *, html:not(.js) .gate__hosts { visibility: visible; opacity: 1; translate: 0 0; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: 84px 16px; }
.sec > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.card {
  position: relative; text-align: center; padding: 48px 24px 42px; border-radius: 4px;
  background: var(--white);
  box-shadow: inset 0 0 0 7px var(--white), inset 0 0 0 8px var(--s2), inset 0 0 0 11px var(--white), inset 0 0 0 12px var(--mist-2),
    0 30px 60px -36px rgba(42, 48, 57, .4), 0 1px 0 rgba(42, 48, 57, .05);
}

/* --- note --- */
.note__msg { font: 400 21px/1.6 var(--f-body); color: var(--ink); text-wrap: pretty; }
.note__sign { margin-top: 26px; font: italic 400 18px/1.3 var(--f-body); color: var(--ink-2); }
.note__sign span { display: block; margin-top: 4px; font: 400 38px/1.1 var(--f-script); font-style: normal; color: var(--blush-ink); }

/* --- the years: charms on a chain --- */
.years__head { text-align: center; margin-bottom: 40px; }
.chain { position: relative; list-style: none; margin: 0 auto; padding: 0; }
.chain__links { position: absolute; left: 33px; top: 20px; bottom: 20px; width: 8px; }
.chain__links i {
  position: absolute; inset: 0; transform-origin: top; scale: 1 var(--p, 0);
  background: radial-gradient(ellipse 3px 6px at 50% 50%, transparent 52%, #a3abb4 58% 82%, transparent 88%) center top / 8px 11px repeat-y;
  filter: drop-shadow(0 1px 0 #fff);
}
.charm { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px 0; }
.charm.reveal { transition-delay: calc(var(--i) * 60ms); }
.charm__medal {
  position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--brushed), radial-gradient(circle at 35% 30%, #fbfcfd, #cfd5db 50%, #98a0aa);
  box-shadow: inset 0 0 0 3px #e9ecef, inset 0 0 0 4px #8d959f, 0 10px 18px -10px rgba(42, 48, 57, .6);
  filter: sepia(.45) saturate(.6) brightness(.78) contrast(.92);
  transition: filter 1.2s ease;
}
.charm__medal b { font: 400 17px/1 var(--f-eng); letter-spacing: .06em; color: #7c8590; text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(52, 58, 68, .4); }
.charm__medal::after {
  content: ""; position: absolute; inset: -20% -80%; translate: -100% 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%);
}
.charm.shone .charm__medal { filter: none; }
.charm.shone .charm__medal::after { animation: sweep 1.2s var(--ease) .1s forwards; }
.charm__text { padding: 4px 0; }
.charm__year { display: flex; align-items: baseline; gap: 10px; font: 400 15px/1.2 var(--f-eng); letter-spacing: .16em; color: var(--s4); }
.charm__year small { font: italic 400 15px/1 var(--f-body); letter-spacing: 0; color: var(--blush-ink); }
.charm__cap { margin-top: 6px; font: 400 21px/1.42 var(--f-body); color: var(--ink); text-wrap: pretty; }

.divider { width: 230px; margin: 0 auto; opacity: .95; }
.divider svg { display: block; width: 100%; height: auto; }

/* --- save the date: the coin --- */
.date { text-align: center; }
.date__ask { margin-top: 10px; font: italic 400 19px/1.4 var(--f-body); color: var(--ink-2); }
.coin {
  display: block; position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin: 34px auto 0; padding: 0;
  border: 0; background: none; cursor: pointer; perspective: 900px; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.coin::after {      /* its shadow on the table, squashed mid-flip */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 48, 57, .28), transparent); transition: scale .45s ease;
}
.coin.flipping::after { scale: .6 1; }
.coin__body { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.3, 1.35, .5, 1); }
.coin__face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--brushed), radial-gradient(circle at 34% 28%, #ffffff, #dfe3e7 38%, #b3bac2 72%, #8d959f);
  box-shadow: inset 0 0 0 6px #d4d9de, inset 0 0 0 7px #8a929c, inset 0 0 0 9px #eef1f3, 0 18px 30px -16px rgba(42, 48, 57, .55);
}
.coin__face--now { transform: rotateY(180deg); background: var(--brushed), radial-gradient(circle at 66% 28%, #ffffff, #e6e2e2 38%, #bfb5b7 72%, #978c8f); }
.coin__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(90, 98, 110, .45); }
.coin__face > :not(.coin__ring) { color: #77808b; text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(52, 58, 68, .45); }
.coin__face small { font: 400 12px/1 var(--f-eng); letter-spacing: .22em; text-transform: uppercase; }
.coin__face b { font: 400 76px/1 var(--f-disp); margin-top: 4px; }
.coin__face span:not(.coin__ring) { font: 400 19px/1 var(--f-eng); letter-spacing: .16em; text-transform: uppercase; }
.coin__face i { font: italic 400 20px/1.2 var(--f-body); }
.date__when { margin-top: 46px; font: 400 15px/1.5 var(--f-eng); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.date__count { margin-top: 22px; }
.count { display: flex; justify-content: center; gap: 10px; }
.count span {
  display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 12px 6px 10px; border-radius: 4px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--s2);
  font: italic 400 14px/1.2 var(--f-body); color: var(--s4);
}
.count b { font: 400 30px/1.1 var(--f-disp); font-style: normal; color: var(--ink); }
.count__done { text-align: center; font: italic 400 20px/1.4 var(--f-body); color: var(--blush-ink); }

/* --- the evening --- */
.ev + .ev { margin-top: 28px; }
.ev__hi { font: 400 21px/1.3 var(--f-deva); color: var(--blush-ink); }
.ev__name { margin: 6px 0 0; font: 400 clamp(28px, 7.6vw, 36px)/1.15 var(--f-disp); }
.ev__rows { margin: 0; text-align: left; display: grid; gap: 16px; }
.ev__rows > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--mist-2); }
.ev__rows dt { padding-top: 4px; font: 400 12px/1.3 var(--f-eng); letter-spacing: .18em; text-transform: uppercase; color: var(--s4); }
.ev__rows dd { margin: 0; font: 400 19px/1.45 var(--f-body); }
.chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 12px; border-radius: 999px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--s2); font-size: 17px; }
.ev__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--s3); background: #fff; color: var(--ink); text-decoration: none;
  font: 400 13px/1 var(--f-eng); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { border-color: var(--ink); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: #f4f5f7; }
.btn--solid:hover { background: #3a414c; }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.gallery figure { margin: 0; padding: 8px; background: var(--brushed), var(--silver); border-radius: 3px; box-shadow: 0 14px 24px -16px rgba(42, 48, 57, .6); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9); }

/* --- blessings --- */
.rsvp { overflow: hidden; padding-top: 30px; }
.rsvp__sprig { width: 200px; margin: 0 auto 6px; }
.rsvp__sprig svg { display: block; width: 100%; height: auto; }
.rsvp__ask { margin: 18px auto 26px; max-width: 26em; font: 400 20px/1.55 var(--f-body); color: var(--ink-2); }
.btn--wa { min-height: 52px; padding: 0 28px; font-size: 14px; }
.rsvp__tag { margin-top: 22px; font: 400 15px/1 var(--f-eng); letter-spacing: .14em; color: var(--blush-ink); }

/* --- footer --- */
.foot {
  padding: 72px 16px calc(84px + env(safe-area-inset-bottom)); text-align: center;
  background: radial-gradient(80% 60% at 50% 0%, #3a414c, var(--ink)); color: #dfe3e7;
}
.foot__num {
  font: 400 120px/.9 var(--f-disp);
  background: linear-gradient(170deg, #fff, #9aa2ac 45%, #eef1f4 60%, #7f8892); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.foot__names { margin-top: 8px; font: 400 40px/1.2 var(--f-script); color: #fff; }
.foot__dates { margin-top: 6px; font: 400 14px/1 var(--f-eng); letter-spacing: .3em; color: var(--s3); }
.foot__hosts { margin-top: 18px; font: italic 400 18px/1.4 var(--f-body); }
.foot__music, .foot__credit { margin-top: 10px; font-size: 15px; color: var(--s3); }
.foot__music { margin-top: 30px; }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font: 400 12px/1 var(--f-eng); letter-spacing: .2em; text-transform: uppercase; color: #fff; }

/* =================================================================== WIDE SCREENS */
@media (min-width: 760px) {
  .gate__sprig { width: min(42vw, 560px); }
  .stage { width: min(300px, 46svh); }
  .sec { padding: 110px 24px; }
  .card { padding: 60px 56px 52px; }
}

/* =================================================================== LINK PREVIEW (1200 x 630) */
.ogcard { align-items: center; gap: 64px; padding: 0 70px 0 110px; background: radial-gradient(90% 90% at 30% 40%, #fff, #eceff2 60%, #d9dee3); color: var(--ink); }
.og__sprig { position: absolute; width: 360px; }
.og__sprig svg { display: block; width: 100%; height: auto; }
.og__sprig--l { left: -40px; top: -20px; transform: scaleY(-1); }
.og__sprig--r { right: -70px; bottom: -60px; transform: scaleX(-1); }
.og__plaque { position: relative; flex: none; width: 330px; height: 440px; container-type: inline-size; z-index: 1; }
.og__text { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.og__eyebrow { font: 400 28px/1 var(--f-eng); letter-spacing: .24em; text-transform: uppercase; color: var(--s4); }
.og__names { font: 400 92px/1.05 var(--f-script); color: var(--ink); text-wrap: balance; }
.og__date { font: 400 34px/1.2 var(--f-disp); }
.og__venue { font: italic 400 28px/1.3 var(--f-body); color: var(--ink-2); }
.og__hosts { margin-top: 6px; font: 400 22px/1 var(--f-eng); letter-spacing: .16em; color: var(--blush-ink); }

@media (prefers-reduced-motion: reduce) {
  .gate:not([data-phase="open"]) .sprig__bloom { transform: none; opacity: 1; }
  .charm__medal { filter: none; }
}
