/* Sunehri (सुनहरी): a golden jubilee in the family album. Oxblood leather with gold tooling, black album
   pages with white-ink captions (Kalam), sepia photographs held by paper corners, glassine between leaves.
   Libre Caslon for print and foil. The table underneath is old sheesham.
   Opening: open the leather cover -> wedding photo + names. Then: the years, a leaf per year turned by
   scroll -> a letter from the children -> the date pressed by a brass seal + countdown -> the events,
   mounted like cards -> sign the album (WhatsApp) -> back cover. */

:root {
  --wood: #22160e;
  --wood-2: #2f1f14;
  --leather: #4c1b13;
  --leather-2: #6b2a1d;
  --gold: #c9a24a;
  --gold-hi: #f2d68e;
  --gold-lo: #8e6a26;
  --black-page: #1c1714;
  --white-ink: #f1e9d8;
  --cream: #f3e9d4;
  --cream-2: #e7d9bc;
  --brown-ink: #3a2516;
  --muted: #b9a58a;

  --f-disp: "Libre Caslon Display", "Bodoni 72", Georgia, serif;
  --f-text: "Libre Caslon Text", Georgia, serif;
  --f-hand: "Kalam", "Bradley Hand", cursive;
  --f-deva: "Tiro Devanagari Hindi", "Kalam", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --foil: linear-gradient(100deg, #8a6522 0%, #f4d993 22%, #b8892f 42%, #f7e2a4 58%, #a87c2c 78%, #e9c878 100%);
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='turbulence' baseFrequency='.06' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)' opacity='.5'/%3E%3C/svg%3E");
  --tex-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 .02 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");

  --fx-music-bg: #4c1b13;
  --fx-music-ring: #c9a24a;
  --fx-music-ink: #f2d68e;
  --fx-bg: #f3e9d4;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body {
  background: var(--tex-wood) center top / 3200px 640px, radial-gradient(120% 70% at 50% 0%, #3a2618, var(--wood) 70%) fixed, var(--wood);
  color: var(--cream);
  font: 400 19px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--wood); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

.foil {
  background: var(--foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55));
}
.ink { font-family: var(--f-hand); color: var(--white-ink); }
.eyebrow { font: 400 13px/1.3 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sec__title { margin: 12px 0 0; font: 400 clamp(34px, 9vw, 52px)/1.1 var(--f-disp); text-wrap: balance; }
.sec__title em { display: block; font: 400 .72em/1.3 var(--f-hand); font-style: normal; color: var(--white-ink); }

/* black album paper */
.page {
  background: var(--tex-noise), radial-gradient(120% 100% at 50% 40%, #241e1a, var(--black-page) 70%, #141110);
  color: var(--white-ink);
}

/* =================================================================== a mounted photograph */
.snap {
  position: relative; margin: 0; width: 100%; padding: 3.2%; rotate: var(--tilt, 0deg);
  background: linear-gradient(160deg, #f4ecda, #e4d6b8); box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .75);
}
.snap__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #6e5232; }
.snap__art, .snap .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.snap .still { filter: sepia(.72) saturate(.75) contrast(1.06) brightness(.94); }
.snap--wed .still { filter: grayscale(1) sepia(.85) contrast(1.1) brightness(.95); }
.snap__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--tex-noise), radial-gradient(90% 90% at 50% 45%, transparent 55%, rgba(60, 35, 10, .45));
  mix-blend-mode: multiply;
}
.corner {
  position: absolute; width: 13%; aspect-ratio: 1; background: linear-gradient(135deg, #2a2420, #0d0b0a 60%, #2c2622);
  clip-path: polygon(0 0, 100% 0, 0 100%); box-shadow: none; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .5));
}
.corner--tl { top: -2.5%; left: -2.5%; }
.corner--tr { top: -2.5%; right: -2.5%; rotate: 90deg; }
.corner--br { bottom: -2.5%; right: -2.5%; rotate: 180deg; }
.corner--bl { bottom: -2.5%; left: -2.5%; rotate: 270deg; }

/* =================================================================== the leather cover */
.leather {
  position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; overflow: hidden; container-type: size;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255, 190, 140, .2), transparent 55%),
    radial-gradient(60% 40% at 80% 90%, rgba(0, 0, 0, .35), transparent 70%),
    var(--tex-leather), var(--tex-noise),
    linear-gradient(160deg, var(--leather-2), var(--leather) 55%, #33110b);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 180, .1), inset 0 0 50px rgba(0, 0, 0, .55);
}
.leather__spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 9%;
  background: repeating-linear-gradient(180deg, transparent 0 17%, rgba(0, 0, 0, .4) 17% 17.6%, rgba(255, 200, 150, .14) 17.6% 18.2%),
    linear-gradient(90deg, #2a0d08, #561f15 60%, #2a0d08);
  box-shadow: 1px 0 0 rgba(0, 0, 0, .5), 2px 0 0 rgba(255, 200, 150, .08);
}
.leather__tool {
  position: absolute; inset: 7cqw 7cqw 7cqw 14cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center;
  border: 1.5px solid rgba(201, 162, 74, .75); border-radius: 2px;
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(201, 162, 74, .45), 0 1px 0 rgba(0, 0, 0, .4);
}
.leather__tool::before {     /* the stitching */
  content: ""; position: absolute; inset: -3.4cqw; border: 1.5px dashed rgba(236, 196, 150, .28); border-radius: 4px;
}
.leather__kicker { font: 400 4.6cqw/1.2 var(--f-text); letter-spacing: .24em; text-transform: uppercase; }
.leather__num { font: 400 42cqw/.9 var(--f-disp); margin: 1cqw 0; }
.leather__couple { font: italic 400 7.4cqw/1.2 var(--f-text); }
.leather__years { font: 400 4.4cqw/1 var(--f-text); letter-spacing: .3em; }
.brass {
  position: absolute; width: 13cqw; aspect-ratio: 1;
  background: linear-gradient(135deg, #f6dc94, #b8893a 45%, #7a561c 70%, #d8b367);
  clip-path: polygon(0 0, 100% 0, 0 100%); filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .6));
}
.brass--tl { top: 0; left: 0; } .brass--tr { top: 0; right: 0; rotate: 90deg; }
.brass--br { bottom: 0; right: 0; rotate: 180deg; } .brass--bl { bottom: 0; left: 0; rotate: 270deg; }

/* =================================================================== OPENING: the album */
.gate {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 42%, rgba(255, 196, 120, .2), transparent 70%);
}
.gate__in {
  width: 100%; padding: calc(80px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gate__to { margin-bottom: 14px; font: 400 20px/1.3 var(--f-hand); color: var(--gold-hi); }
.album {
  position: relative; width: min(80vw, 330px, 58svh * .75); aspect-ratio: 3 / 4; perspective: 2000px;
  transition: translate 1.3s var(--ease);
}
.album__first {
  position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8%;
  box-shadow: 1px 0 0 #3a322c, 3px 1px 0 #15110f, 4px 1px 0 #3a322c, 6px 2px 0 #15110f, 7px 2px 0 #3a322c, 0 30px 50px -20px rgba(0, 0, 0, .85);
}
.album__first .snap { width: 96%; }
.first__cap { margin-top: 5cqw; font-size: max(15px, 5.6cqw); line-height: 1.2; }
.first__names { margin: 3cqw 0 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.first__name { font: 400 max(20px, 9.4cqw)/1.12 var(--f-disp); color: var(--gold-hi); }
.first__amp { font: 400 max(16px, 5.6cqw)/1.2 var(--f-hand); color: var(--white-ink); }
.first__hi { margin-top: 2cqw; font: 400 max(15px, 5.2cqw)/1.3 var(--f-deva); color: var(--muted); }

.album__cover { position: absolute; inset: 0; z-index: 2; transform-origin: 0 50%; transform-style: preserve-3d; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.album__front, .album__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 12px 12px 3px; }
.album__front { box-shadow: 0 34px 50px -20px rgba(0, 0, 0, .85), 5px 0 0 -1px #e7dcc6, 7px 2px 0 -1px #cdbf9f; }
.album__back {
  transform: rotateY(180deg); border-radius: 12px 3px 3px 12px; overflow: hidden; display: grid; place-items: center; container-type: inline-size;
  background:
    repeating-radial-gradient(circle at 30% 35%, #1f3a44 0 7px, #7b2d24 7px 10px, #d8b16a 10px 12px, #2b4c58 12px 19px, #e9dcc0 19px 20px),
    repeating-radial-gradient(circle at 75% 75%, #1f3a44 0 6px, #d8b16a 6px 8px, #7b2d24 8px 12px, #2b4c58 12px 18px);
  background-blend-mode: multiply;
}
.album__back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 20%); }
.bookplate {
  position: relative; z-index: 1; width: 70%; padding: 7cqw 5cqw; text-align: center; color: var(--brown-ink);
  background: var(--tex-noise), var(--cream); box-shadow: inset 0 0 0 2cqw var(--cream), inset 0 0 0 calc(2cqw + 1px) #9b7a3e, 0 6px 14px rgba(0, 0, 0, .5);
}
.bookplate__ex { font: italic 400 4.6cqw/1.3 var(--f-text); }
.bookplate__names { margin: 2cqw 0; font: 400 9cqw/1.1 var(--f-disp); }
.bookplate__and { font: 400 5cqw/1.3 var(--f-hand); }
.bookplate__years { margin-top: 3cqw; font: 400 3.6cqw/1 var(--f-text); letter-spacing: .3em; }

.gate[data-phase="idle"] .album__cover:not(.held) { animation: peek 5s ease-in-out 2s infinite; }
@keyframes peek { 0%, 72%, 100% { transform: none; } 82% { transform: rotateY(-16deg); } 90% { transform: rotateY(-4deg); } }
.gate[data-phase="open"] .album__cover { transform: rotateY(-180deg); }
.gate.instant .album__cover, .gate.instant .album { transition: none !important; }
@media (max-width: 759px) {      /* on a phone the cover swings away; the first page is the hero */
  .gate[data-phase="open"] .album__cover { opacity: 0; transition: opacity .5s ease .6s; pointer-events: none; }
}
@media (min-width: 760px) {      /* on a wide screen the spread lies open */
  .gate[data-phase="open"] .album { translate: 50% 0; }
}

.gate__swap { display: grid; margin-top: 30px; }
.gate__hint, .hero { grid-area: 1 / 1; }
.gate__hint { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .5s ease; }
.gate__deva { font: 400 22px/1.3 var(--f-deva); color: var(--gold-hi); }
.gate__line { font: 400 22px/1.3 var(--f-hand); color: var(--white-ink); }
.gate__open {
  min-height: 46px; margin-top: 14px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: rgba(34, 22, 14, .6); color: var(--gold-hi);
  font: 400 13px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
}
.gate__open:hover { background: rgba(201, 162, 74, .15); }
.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 12px; transition: opacity 1s var(--ease) .5s, translate 1s var(--ease) .5s; }
.gate[data-phase="open"] .hero > * { opacity: 1; translate: 0 0; }
.gate[data-phase="open"] .hero > :nth-child(2) { transition-delay: 1.1s; }
.hero__hosts { max-width: 20em; font: italic 400 19px/1.45 var(--f-text); color: var(--cream); text-wrap: balance; }
.hero__hosts span { display: block; font: 400 26px/1.25 var(--f-disp); font-style: normal; color: var(--gold-hi); }
.hero__down {
  margin-top: 18px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font: 400 12px/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.hero__down::after { content: ""; width: 1px; height: 26px; background: var(--gold); 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-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201, 162, 74, .5); background: rgba(20, 12, 8, .5); color: var(--cream);
  font: 400 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase;
}
.gate:not([data-phase="idle"]) .gate__skip { display: none; }
html:not(.js) :is(.gate__hint, .gate__skip) { display: none; }
html:not(.js) .album__cover { display: none; }
html:not(.js) .hero, html:not(.js) .hero > * { visibility: visible; opacity: 1; translate: 0 0; }

/* dust from the old pages (made in script.js) */
.mote { position: fixed; z-index: 81; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; background: #f6deA0; box-shadow: 0 0 6px 2px rgba(246, 222, 160, .5); }

/* =================================================================== THE YEARS: the book */
.story { position: relative; height: calc((var(--n) + 1) * 64svh + 100svh); overflow-x: clip; }
.story__head { position: relative; z-index: 2; padding: 96px 16px 0; text-align: center; }
.story__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.book { position: relative; width: min(80vw, 330px, 62svh * .75); aspect-ratio: 3 / 4; perspective: 2200px; container-type: inline-size; }
@media (min-width: 760px) { .book { translate: 50% 0; } }
.book__base, .leaf__front, .leaf__back { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; }
.book__base {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; padding: 10cqw; text-align: center;
  box-shadow: 1px 0 0 #3a322c, 3px 1px 0 #15110f, 4px 1px 0 #3a322c, 0 30px 50px -20px rgba(0, 0, 0, .85);
}
.base__line { font-size: 7cqw; line-height: 1.3; }
.base__num { font: 400 40cqw/.9 var(--f-disp); }
.base__sign { font-size: 5.6cqw; color: var(--muted); }
.leaf { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(calc(var(--t, 0) * -180deg)); will-change: transform; }
.leaf__front, .leaf__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.leaf__front { display: flex; flex-direction: column; align-items: center; padding: 9cqw 8cqw 7cqw; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .8); }
.leaf__front::after, .leaf__back::after {      /* the page darkens as it lifts */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 70%); opacity: calc(var(--t, 0) * 1.4);
}
.leaf__back { transform: rotateY(180deg); border-radius: 8px 2px 2px 8px; display: grid; place-items: end center; padding: 12cqw; }
.glassine {      /* the translucent tissue between album leaves */
  position: absolute; inset: 2cqw 2cqw 2cqw 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .12)),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 9px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.leaf__doodle { position: relative; font-size: 6cqw; opacity: .45; rotate: -6deg; }
.leaf__year { margin-top: 6cqw; font-size: 12cqw; line-height: 1; }
.leaf__cap { margin-top: 3cqw; font-size: max(16px, 6.4cqw); line-height: 1.3; text-align: center; text-wrap: balance; }
.leaf__folio { position: absolute; bottom: 4cqw; left: 0; right: 0; text-align: center; font: italic 400 max(12px, 3.8cqw)/1 var(--f-text); color: var(--muted); }
.story__hint { font: 400 18px/1.3 var(--f-hand); color: var(--muted); }
.story__year { color: var(--gold-hi); }

/* reduced motion, or no script: the pages simply lie one after another */
.story.flat { height: auto; }
.story.flat .story__pin { position: static; height: auto; padding: 40px 16px 20px; }
.story.flat .book { aspect-ratio: auto; translate: none; display: flex; flex-direction: column; gap: 22px; perspective: none; }
.story.flat .book__base { order: 99; position: relative; aspect-ratio: 3 / 4; }
.story.flat .leaf { position: relative; transform: none !important; aspect-ratio: 3 / 4; }
.story.flat .leaf__back, .story.flat .story__hint { display: none; }

/* =================================================================== SECTIONS */
.sec { position: relative; padding: 90px 16px; }
.sec > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.sec__head, .date, .rsvp { text-align: center; }

/* --- the letter --- */
.letter {
  position: relative; padding: 46px 28px 40px; rotate: -1deg; color: var(--brown-ink);
  background:
    linear-gradient(180deg, transparent 32.8%, rgba(120, 90, 50, .16) 33.2%, transparent 34%, transparent 65.8%, rgba(120, 90, 50, .14) 66.2%, transparent 67%),
    var(--tex-noise), linear-gradient(170deg, #f7efdd, var(--cream-2));
  box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .8);
}
.letter .eyebrow { color: #8a6728; text-align: center; }
.letter__msg { margin-top: 18px; font: italic 400 21px/1.6 var(--f-text); text-wrap: pretty; }
.letter__sign { margin-top: 22px; text-align: right; font: 400 28px/1.2 var(--f-hand); color: #5a3a1e; }

/* --- the seal and the gold --- */
.press { position: relative; height: 330px; margin-top: 18px; display: grid; place-items: center; }
.medal {
  position: relative; width: 210px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--tex-noise), radial-gradient(circle at 50% 40%, #2a221d, var(--black-page) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 30px -16px rgba(0, 0, 0, .9);
}
.medal__ghost {
  position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed rgba(201, 162, 74, .45);
  display: grid; place-items: center; font: 400 18px/1.2 var(--f-hand); color: var(--muted); transition: opacity .3s;
}
.medal__foil {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; scale: 1.15;
  transition: opacity .25s ease, scale .35s var(--ease);
}
.medal::after {      /* the debossed ring the seal leaves */
  content: ""; position: absolute; inset: 12px; border-radius: 50%; opacity: 0; transition: opacity .3s;
  box-shadow: inset 0 0 0 3px rgba(201, 162, 74, .8), inset 0 2px 3px 3px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 220, 150, .2);
}
.press.stamped .medal__ghost { opacity: 0; }
.press.stamped .medal__foil, .press.stamped .medal::after { opacity: 1; scale: 1; }
.medal__wd { font: 400 14px/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase; }
.medal__day { font: 400 72px/1 var(--f-disp); }
.medal__my { font: 400 17px/1.2 var(--f-text); letter-spacing: .08em; }
.medal__time { font: italic 400 16px/1.3 var(--f-text); }
.seal {
  position: absolute; left: 50%; top: 50%; width: 110px; height: 170px; margin: -170px 0 0 -55px; padding: 0;
  border: 0; background: none; cursor: pointer; transform-origin: 50% 100%;
  translate: 116px -70px; rotate: 20deg; transition: translate .5s var(--ease), rotate .5s var(--ease), scale .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.seal__knob { position: absolute; left: 50%; top: 0; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a0644a, #5a2414 55%, #2c0f08); box-shadow: 0 6px 10px rgba(0, 0, 0, .5); }
.seal__neck { position: absolute; left: 50%; top: 46px; width: 26px; height: 74px; margin-left: -13px; background: linear-gradient(90deg, #7a561c, #f2d58d 40%, #b8893a 60%, #6c4a17); border-radius: 4px; }
.seal__base {
  position: absolute; left: 50%; bottom: 0; width: 96px; height: 54px; margin-left: -48px; border-radius: 10px 10px 48px 48px / 10px 10px 18px 18px;
  background: linear-gradient(90deg, #6c4a17, #e9c878 35%, #b8893a 60%, #6c4a17); box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .7);
  display: grid; place-items: end center; padding-bottom: 6px;
}
.seal__base i { font: 400 22px/1 var(--f-disp); font-style: normal; color: rgba(60, 40, 10, .55); text-shadow: 0 1px 0 rgba(255, 230, 170, .6); }
.seal:hover { scale: 1.03; }
.seal.down { translate: 0 100px; rotate: 0deg; }
.seal.down.hit { translate: 0 112px; scale: 1 .97; transition: translate .09s ease-in, scale .09s ease-in; }
.press.stamped .seal:not(.down) { translate: 120px -60px; rotate: 24deg; }
.press__hint { margin-top: 6px; font: 400 20px/1.3 var(--f-hand); color: var(--muted); transition: opacity .4s; }
.press.stamped + .press__hint { opacity: 0; }
.date__count { margin-top: 26px; }
.count { display: flex; justify-content: center; gap: 10px; }
.count span { display: flex; flex-direction: column; align-items: center; min-width: 70px; font: 400 16px/1.2 var(--f-hand); color: var(--muted); }
.count b { font: 400 40px/1.1 var(--f-disp); color: var(--gold-hi); }
.count__done { text-align: center; font: 400 22px/1.4 var(--f-hand); color: var(--gold-hi); }

/* --- the day: cards mounted on black paper --- */
.sec__head { margin-bottom: 36px; }
.mount { position: relative; padding: 22px 18px; }
.mount + .mount { margin-top: 30px; }
.mount { background: var(--tex-noise), radial-gradient(120% 100% at 50% 40%, #241e1a, var(--black-page) 70%); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
.mount > .corner { width: 34px; z-index: 2; }
.mount > .corner--tl { top: 12px; left: 8px; } .mount > .corner--tr { top: 12px; right: 8px; }
.mount > .corner--br { bottom: 12px; right: 8px; } .mount > .corner--bl { bottom: 12px; left: 8px; }
.mount__card {
  position: relative; padding: 34px 22px 28px; rotate: var(--tilt); text-align: center; color: var(--brown-ink);
  background: var(--tex-noise), linear-gradient(170deg, #f8f0de, var(--cream-2));
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5), inset 0 0 0 6px transparent, inset 0 0 0 7px rgba(155, 122, 62, .5);
}
.ev__hi { font: 400 21px/1.3 var(--f-deva); color: #8a5a1e; }
.ev__name { margin: 4px 0 18px; font: 400 clamp(28px, 7.4vw, 36px)/1.15 var(--f-disp); }
.ev__rows { margin: 0; text-align: left; display: grid; gap: 12px; }
.ev__rows > div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(155, 122, 62, .35); }
.ev__rows dt { padding-top: 3px; font: 400 12px/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #8a6728; }
.ev__rows dd { margin: 0; font: 400 18px/1.45 var(--f-text); }
.ev__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(110, 80, 40, .55); color: var(--brown-ink); text-decoration: none; background: transparent;
  font: 400 12px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase;
}
.btn:hover { background: rgba(155, 122, 62, .12); }
.btn--gold { border: 0; color: #2a1a0c; background: linear-gradient(100deg, #b8892f, #f4d993 45%, #c99a3c); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { filter: brightness(1.06); background: linear-gradient(100deg, #b8892f, #f4d993 45%, #c99a3c); }

/* --- sign the album --- */
.rsvp__ask { margin: 18px auto 26px; max-width: 24em; font: italic 400 20px/1.55 var(--f-text); color: var(--cream); }
.btn--wa { min-height: 54px; padding: 0 30px; font-size: 14px; }
.rsvp__tag { margin-top: 20px; font-size: 22px; color: var(--gold-hi); }

/* --- the back cover --- */
.foot {
  position: relative; padding: 70px 16px calc(84px + env(safe-area-inset-bottom)); text-align: center;
  background: radial-gradient(100% 70% at 50% 0%, rgba(255, 190, 140, .14), transparent 60%), var(--tex-leather), var(--tex-noise), linear-gradient(170deg, var(--leather-2), var(--leather) 60%, #2c0f09);
  box-shadow: inset 0 14px 0 -10px rgba(201, 162, 74, .5);
}
.foot__num { font: 400 120px/.9 var(--f-disp); }
.foot__names { margin-top: 8px; font: 400 34px/1.2 var(--f-disp); color: var(--gold-hi); }
.foot__dates { margin-top: 8px; font: italic 400 16px/1.4 var(--f-text); color: var(--muted); }
.foot__hosts { margin-top: 14px; font-size: 22px; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 15px; color: var(--muted); }
.foot__music { margin-top: 28px; }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font: 400 12px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }

@media (min-width: 760px) {
  .sec { padding: 120px 24px; }
  .letter { padding: 64px 60px 54px; }
  .mount { padding: 34px 40px; }
}

/* =================================================================== LINK PREVIEW (1200 x 630) */
.ogcard { background: var(--tex-wood) center / 2400px 600px, radial-gradient(80% 90% at 50% 40%, #4a301d, var(--wood) 75%); }
.og__cover { position: absolute; left: 70px; top: 46px; width: 404px; height: 538px; rotate: -3deg; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .9); border-radius: 3px 12px 12px 3px; }
.og__page {
  position: absolute; left: 520px; top: 34px; width: 620px; height: 562px; padding: 34px 50px; rotate: 1.5deg;
  display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 2px 8px 8px 2px;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .9);
}
.snap--og { width: 64%; }
.og__eyebrow { margin-top: 22px; font: 400 20px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.og__names { margin-top: 10px; font: 400 64px/1.05 var(--f-disp); color: var(--gold-hi); }
.og__date { margin-top: 8px; font: 400 34px/1.2 var(--f-hand); color: var(--white-ink); }
.og__venue { margin-top: 4px; font: italic 400 22px/1.3 var(--f-text); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .press .medal__foil { transition: none; }
}
