/* Bachpan. A scrapbook on speckled cream paper: a kraft cover taped shut (peel the tape, the cover lifts),
   then pages of cut-outs: the opening line in red script, a polaroid and stickers for each of them, a map
   heart, the two on a sofa, the month with hearts on it, stuck-down notes for the functions, the families,
   a page saved for the guest. Everything is paper: off-white edges, soft shadows, a little tilt. */

:root {
  --paper: #f1ebe0;
  --white: #fffaf0;
  --red: #b3121d;
  --pink: #e8a0a0;
  --ink: #2a2a2a;
  --soft: #6f6354;
  --kraft: #cfae82;

  --f-script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --f-head: "Rozha One", Georgia, serif;
  --f-body: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.3, 1.55, .5, 1);
  --flecks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .18 0 0 0 -13 3.6'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23f)'/%3E%3C/svg%3E");
  --shadow: 0 5px 12px -5px rgba(70, 45, 20, .5), 0 1px 2px rgba(70, 45, 20, .16);
  --tape: repeating-linear-gradient(-45deg, rgba(200, 36, 43, .9) 0 8px, rgba(255, 244, 232, .92) 8px 16px);

  --fx-bg: var(--white);
  --fx-music-bg: #b3121d; --fx-music-ring: #fffaf0; --fx-music-ink: #fffaf0;
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body { background: #dcd1bd var(--flecks); color: var(--ink); font: 600 16px/1.55 var(--f-body); }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
.defs { position: absolute; }
.sr { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); font-size: 1px; }

main { position: relative; max-width: 480px; margin: 0 auto; background: var(--paper) var(--flecks); box-shadow: 0 0 70px rgba(70, 45, 20, .28); overflow-x: clip; }
.page { position: relative; padding: 58px 0 44px; text-align: center; }
.page + .page::before {            /* the stitch between two pages */
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; border-top: 2px dashed rgba(42, 42, 42, .13);
}

/* torn kraft paper */
.kraft {
  background: var(--kraft) var(--flecks);
  clip-path: polygon(0 12%, 4% 2%, 9% 9%, 15% 0, 22% 8%, 30% 2%, 38% 9%, 47% 1%, 55% 8%, 64% 2%, 72% 9%, 80% 1%, 88% 8%, 95% 2%, 100% 10%, 98% 50%, 100% 90%, 94% 99%, 86% 92%, 78% 100%, 69% 93%, 60% 99%, 51% 92%, 42% 100%, 33% 93%, 24% 99%, 15% 92%, 7% 100%, 0 90%, 2% 50%);
}
.wh { display: block; overflow: visible; }
.dd { position: absolute; display: block; overflow: visible; pointer-events: none; }
svg.dd:not(.dd--bunting, .dd--hearts, .dd--column, .dd--bow) { filter: drop-shadow(0 2px 2px rgba(70, 45, 20, .3)); }
.dd.kraft { width: 96px; padding: 7px 4px; }
.dd.kraft svg { display: block; width: 100%; }

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

.gate {
  position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; perspective: 1700px;
  background: #cdbfa6; transition: background-color .5s;
}
html:not(.shut) .gate:not([data-phase="opening"]) { display: none; }
.gate[data-phase="opening"] { background-color: transparent; pointer-events: none; }
.cover {
  position: relative; width: min(100%, 480px); height: 100%; overflow: hidden; transform-origin: 0 50%;
  background:
    radial-gradient(120% 80% at 60% 30%, rgba(255, 240, 210, .28), transparent 60%),
    var(--kraft) var(--flecks);
  box-shadow: inset 0 0 60px rgba(90, 55, 20, .28), 8px 0 30px rgba(60, 40, 20, .35);
  transition: transform 1.15s cubic-bezier(.6, .05, .3, 1), opacity .45s .7s;
}
.cover::after {                    /* a stitched border */
  content: ""; position: absolute; inset: 16px 14px 16px 46px; border: 2px dashed rgba(255, 250, 240, .75); border-radius: 10px; pointer-events: none;
}
.gate[data-phase="opening"] .cover { transform: rotateY(-114deg); opacity: 0; }
.cover__spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 32px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 4px), linear-gradient(90deg, #7c0c15, #a8121c 60%, #8a0e17);
  box-shadow: 3px 0 8px rgba(40, 10, 10, .4);
}
.cover__to {
  position: absolute; left: 58px; top: calc(11% + env(safe-area-inset-top)); max-width: 62%; rotate: -5deg;
  padding: 7px 16px 7px 30px; background: var(--white); color: var(--ink); font: 700 23px/1.15 var(--f-hand);
  border-radius: 4px; box-shadow: var(--shadow); overflow-wrap: anywhere;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.cover__to::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--kraft); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.cover__label {
  position: absolute; left: calc(50% + 16px); top: 40%; translate: -50% -50%; width: min(76%, 330px); rotate: -2deg;
  padding: 30px 14px 22px; background: var(--white) var(--flecks); text-align: center; box-shadow: var(--shadow);
  outline: 1.5px solid rgba(179, 18, 29, .5); outline-offset: -8px;
}
.cover__kicker { font: 800 13px/1.2 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.cover__names { margin: 12px 0 2px; font: 400 clamp(54px, 17vw, 76px)/1 var(--f-script); color: var(--red); overflow-wrap: anywhere; }
.cover__names span { font-size: .7em; }
.cover__sub { font: 700 21px/1.2 var(--f-hand); color: var(--soft); }
.dd.cover__bow { left: 50%; top: -30px; width: 78px; translate: -50% 0; rotate: -4deg; }
.cover__h1, .cover__h2 { position: absolute; }
.cover__h1 { width: 74px; right: 9%; top: 9%; rotate: 14deg; }
.cover__h2 { width: 46px; right: 26%; top: 15%; rotate: -12deg; }
.dd.cover__stars { left: 54px; bottom: 15%; rotate: -8deg; }

/* the washi tape: --p is how much has been peeled (0 to 1) */
.tape {
  position: absolute; left: 20%; right: -5%; top: 66%; height: 50px; padding: 0; border: 0; background: none;
  rotate: -3deg; cursor: grab; touch-action: none; z-index: 3; -webkit-tap-highlight-color: transparent;
  transition: opacity .35s, translate .5s ease-in;
}
.tape:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.tape__stuck {
  position: absolute; inset: 0; background: var(--tape); clip-path: inset(0 0 0 calc(var(--p) * 100%));
  box-shadow: 0 2px 4px rgba(60, 35, 15, .35);
}
.tape__flap {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: min(calc(var(--p) * 100%), 120px);
  transform-origin: 0 50%; rotate: -9deg; translate: 0 -5px;
  background: linear-gradient(90deg, #e9c3bb, #fbe6df 30%, #f6d7cf);
  box-shadow: 4px 7px 10px -3px rgba(60, 35, 15, .5);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 25%, 100% 50%, calc(100% - 7px) 75%, 100% 100%, 0 100%);
}
.tape.off { opacity: 0; translate: 30px 60px; pointer-events: none; }
.gate__hint {
  position: absolute; left: 20%; top: calc(66% + 60px); display: flex; align-items: flex-start; gap: 6px; rotate: -3deg;
  font: 700 25px/1 var(--f-hand); color: #4a2f14; pointer-events: none; transition: opacity .3s;
}
.gate__hint svg { width: 50px; height: 26px; scale: 1 -1; animation: bcNudge 1.6s ease-in-out infinite; }
@keyframes bcNudge { 50% { translate: 8px 0; } }
.gate:not([data-phase="idle"]) .gate__hint, .tape.off ~ .gate__hint { opacity: 0; }
.gate__skip {
  position: absolute; left: max(46px, calc(50% - 194px)); bottom: calc(14px + env(safe-area-inset-bottom)); min-width: 64px; min-height: 44px; padding: 0 16px;
  border: 0; background: none; font: 800 14px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #4a2f14;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; z-index: 4;
}
.gate[data-phase="opening"] .gate__skip { opacity: 0; }

/* =================================================================== PAGE ONE */

.hero { min-height: max(600px, min(100svh, 900px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 0 110px; overflow: hidden; }
.dd.hero__bunting { top: -4px; right: -7%; width: 66%; rotate: 5deg; }
.hero__pair { position: absolute; display: block; width: 104px; height: 80px; }
.hero__pair .wh { position: absolute; }
.hero__pair .wh:first-child { width: 66px; left: 0; top: 0; rotate: -14deg; }
.hero__pair .wh:last-child { width: 44px; right: 0; bottom: 0; rotate: 12deg; }
.hero__pair--a { left: 5%; top: 5%; }
.hero__pair--b { right: 5%; bottom: 12%; }
.hero__pair--b .wh:first-child { width: 42px; top: 8px; }
.hero__pair--b .wh:last-child { width: 68px; }
.dd.hero__bow { right: 9%; top: 15%; width: 62px; rotate: 14deg; }
.dd.hero__stars { left: -10px; bottom: 13%; rotate: -9deg; }
.dd.hero__column { right: 5%; top: 37%; width: 24px; }
.hero__line {
  position: relative; z-index: 1; width: 100%; padding: 0 30px 0 22px; rotate: -4deg;
  font: 400 clamp(64px, 20.5vw, 98px)/.98 var(--f-script); color: var(--red); text-wrap: balance;
}
.write__w { display: inline-block; padding: .22em .16em; margin: -.22em -.16em; }
html:not(.shut) .write__w { animation: bcWrite var(--t) linear var(--d) backwards; }
@keyframes bcWrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero__sub { position: relative; z-index: 1; margin-top: 30px; font: 600 16px/1.5 var(--f-body); color: var(--ink); }
.hero__sub b { font: 400 22px/1.3 var(--f-head); color: var(--red); letter-spacing: .02em; }
.hero__next {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; min-height: 48px; padding: 0 12px;
  display: flex; flex-direction: column; align-items: center; font: 700 21px/1 var(--f-hand); color: var(--soft); text-decoration: none;
}
.hero__next svg { width: 20px; height: 28px; margin-top: 2px; animation: bcBob 1.8s ease-in-out infinite; }
@keyframes bcBob { 50% { translate: 0 6px; } }

/* =================================================================== A PERSON */

.arch { display: block; margin: 0 auto; overflow: visible; }
.arch text { font-family: var(--f-head); fill: var(--red); }
.arch--who { width: min(84%, 380px); }
.arch--who text { font-size: 50px; }
.who__tag { margin: 2px 24px 0; font: 800 17px/1.35 var(--f-body); color: var(--ink); text-wrap: balance; }
.who__stage { position: relative; width: 100%; aspect-ratio: 360 / 400; margin-top: 18px; }
.who__name { position: relative; margin: -4px 0 0; rotate: -5deg; font: 400 clamp(84px, 27vw, 128px)/.95 var(--f-script); color: var(--red); overflow-wrap: anywhere; padding: 0 16px; }
.who__hint { margin-top: 2px; font: 700 19px/1.2 var(--f-hand); color: var(--soft); }

.pola { position: relative; padding: 6% 6% 0; background: #fffdf8; box-shadow: 0 8px 18px -6px rgba(70, 45, 20, .55), 0 1px 3px rgba(70, 45, 20, .2); }
.pola__pic { display: block; aspect-ratio: 1 / 1.04; overflow: hidden; background: #e7ded0; }
.pola__pic img, .pola__pic svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pola .kid { filter: sepia(.22) saturate(.92); }
.pola figcaption { padding: 7px 0 10px; font: 700 17px/1.1 var(--f-hand); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.pola__tape { position: absolute; left: 50%; top: -13px; width: 44%; height: 26px; translate: -50% 0; rotate: -4deg; background: var(--tape); opacity: .86; box-shadow: 0 1px 2px rgba(60, 35, 15, .25); }
.who__stage .pola { position: absolute; left: 27%; top: 11%; width: 46%; rotate: -3deg; }
.who--bride .who__stage .pola { rotate: 3deg; }
.who--bride .pola__tape { rotate: 5deg; }

.stk {
  position: absolute; left: var(--x); top: var(--y); width: 21%; aspect-ratio: 1; padding: 0; border: 0; background: none;
  rotate: var(--r); cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(70, 45, 20, .32));
}
.stk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stk:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; border-radius: 8px; }
.stk__say {
  position: absolute; left: 50%; bottom: -8px; translate: -50% 0; padding: 1px 9px 2px; background: var(--white); color: var(--red);
  font: 700 18px/1.15 var(--f-hand); white-space: nowrap; border-radius: 3px; opacity: 0; scale: .7; transition: opacity .2s, scale .3s var(--pop); pointer-events: none;
}
.stk.say { z-index: 5; }
.stk.say .stk__say { opacity: 1; scale: 1; }
.stk--word { width: auto; max-width: 24%; aspect-ratio: auto; min-height: 44px; display: grid; place-items: center; }
.stk__label { display: block; padding: 3px 9px 4px; background: var(--white); color: var(--red); font: 700 19px/1.1 var(--f-hand); border: 1.5px dashed var(--pink); border-radius: 4px; overflow-wrap: anywhere; }
.stk.poke { animation: bcPoke .62s ease-in-out; }
@keyframes bcPoke {
  0% { transform: none; } 20% { transform: translateY(-9px) rotate(-11deg) scale(1.14); } 45% { transform: translateY(-3px) rotate(9deg) scale(1.1); }
  70% { transform: rotate(-5deg) scale(1.03); } 100% { transform: none; }
}
/* stickers pop in as their page arrives */
html.js .reveal:not(.in) .stk, html.js .reveal:not(.in) .stk-pop { opacity: 0; }
.reveal.in .stk { animation: bcPop .55s var(--pop) calc(.35s + var(--i) * .12s) backwards; }
.reveal.in .stk.poke { animation: bcPoke .62s ease-in-out; }
.reveal.in .stk-pop { animation: bcPop .55s var(--pop) .5s backwards; }
.reveal.in .stk-pop:nth-of-type(2n) { animation-delay: .72s; }
.reveal.in .stk-pop:nth-of-type(3n) { animation-delay: .94s; }
@keyframes bcPop { from { opacity: 0; scale: .15; transform: rotate(-40deg); } }

/* =================================================================== MEETS */

.meets { padding-top: 46px; }
.meets__stage { position: relative; width: 100%; aspect-ratio: 360 / 296; }
.meets__map { position: absolute; left: 20%; top: 9%; width: 60%; overflow: visible; filter: drop-shadow(0 4px 5px rgba(70, 45, 20, .32)); }
.meets__word { position: absolute; left: 11%; right: 11%; top: 39%; rotate: -4deg; filter: drop-shadow(0 3px 3px rgba(70, 45, 20, .35)); z-index: 2; }
.meets__word .kraft { display: block; padding: 8px 0 6px; font: 400 clamp(40px, 12.5vw, 58px)/1.1 var(--f-head); letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; color: var(--red); }
.meets__pin { width: 8%; left: 46.5%; top: 1%; z-index: 3; }
.meets__card { width: 19%; left: 3%; top: 3%; rotate: -13deg; }
.meets__bubble { width: 18%; right: 3%; top: 1%; rotate: 9deg; }
.meets__flower { width: 16%; left: 5%; top: 60%; rotate: -18deg; }
.meets__film { width: 19%; right: 4%; top: 62%; }
.meets__sparkle { width: 11%; left: 25%; top: 82%; }

.note {
  position: relative; width: calc(100% - 44px); margin: 30px auto 6px; padding: 30px 20px 22px 40px; rotate: 1.2deg; text-align: left;
  background: repeating-linear-gradient(#fffdf8 0 29px, #cfdbe6 29px 30px); box-shadow: var(--shadow);
}
.note::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; border-left: 1.5px solid rgba(200, 36, 43, .45); }
.note__tape { position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; translate: -50% 0; rotate: -3deg; background: var(--tape); opacity: .86; }
.note__title { font: 400 25px/30px var(--f-head); color: var(--red); }
.note__text { font: 500 22px/30px var(--f-hand); color: var(--ink); }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-top: 30px; font: 800 14px/30px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.route li + li::before { content: "· · ·"; margin-right: 4px; color: var(--soft); letter-spacing: 0; }

/* =================================================================== THE TWO OF THEM */

.arch--duo { width: min(94%, 440px); }
.duo__head--plain { padding: 0 24px; font: 400 30px/1.2 var(--f-head); color: var(--red); text-wrap: balance; }
.duo__stage { position: relative; width: 100%; aspect-ratio: 360 / 300; margin-top: 4px; }
.sofa { position: absolute; left: 9%; top: 9%; width: 82%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(70, 45, 20, .3)); }
.duo__photo {
  position: absolute; left: 13%; top: 5%; width: 74%; height: 84%; object-fit: cover; border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px;
  border: 5px solid var(--white); outline: 4px solid var(--red); box-shadow: 0 10px 16px -6px rgba(70, 45, 20, .5);
}
.duo__dice { width: 15%; left: 1%; top: 0; }
.duo__excl { width: 12%; right: 2%; top: 9%; rotate: 16deg; }
.duo__env { width: 17%; right: 1%; bottom: 0; rotate: -10deg; }
.duo__flower { width: 13%; left: 3%; bottom: -2%; rotate: 16deg; }
.duo__sparkle { width: 11%; left: 21%; top: -9%; }
.duo__forever { position: absolute; left: 0; right: 0; bottom: -9%; rotate: -5deg; font: 400 clamp(52px, 16vw, 76px)/1 var(--f-script); color: var(--red); pointer-events: none; }
.snaps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 56px 14px 0; }
.snaps li { width: calc(33.3% - 8px); padding: 5px 5px 16px; background: #fffdf8; box-shadow: var(--shadow); rotate: var(--r); }
.snaps img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.duo { padding-bottom: 64px; }

/* =================================================================== SAVE THE DATE */

.date { padding-top: 84px; }
.dd.date__bunting { top: 12px; left: 12%; width: 76%; }
.date__save { font: 400 clamp(64px, 20vw, 92px)/1 var(--f-script); color: var(--ink); }
.date__month { margin-top: 2px; font: 400 32px/1.2 var(--f-head); color: var(--red); letter-spacing: .02em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); width: min(calc(100% - 40px), 350px); margin: 14px auto 0; font: 800 17px/1 var(--f-body); }
.cal li { display: grid; place-items: center; height: 44px; }
.cal__wd { font: 400 17px/1 var(--f-head); color: var(--red); }
.cal__d--on a { position: relative; display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; color: #fff; }
.cal__d--on b { position: relative; font-weight: 800; text-shadow: 0 1px 2px rgba(110, 0, 10, .6); translate: 0 -2px; }
.cal__heart { position: absolute; left: 50%; top: 50%; width: 52px; translate: -50% -50%; }
.reveal.in .cal__heart { animation: bcStamp .5s var(--pop) 1s backwards; }
@keyframes bcStamp { from { opacity: 0; scale: 2.2; } }
.hrow { display: flex; justify-content: center; gap: 9px; margin: 16px 0; }
.hrow svg { width: 13px; height: 12px; fill: var(--red); }
.hrow svg:nth-child(2n) { fill: var(--pink); }
.date__for { font: 800 14px/1.3 var(--f-body); letter-spacing: .24em; text-transform: uppercase; }
.date__names { margin: 10px 0 0; padding: 0 16px; font: 400 clamp(68px, 21vw, 100px)/1 var(--f-script); color: var(--ink); overflow-wrap: anywhere; }
.date__names span { font-size: .7em; color: var(--red); }
.date__hi { font: 400 21px/1.4 var(--f-head); color: var(--soft); }
.date__place { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin: 14px 26px 0; font: 800 17px/1.35 var(--f-body); text-wrap: balance; }
.date__place svg { flex: none; width: 17px; height: 22px; margin-top: 1px; }
.date__tag { margin-top: 10px; font: 400 23px/1.3 var(--f-head); color: var(--red); overflow-wrap: anywhere; padding: 0 20px; }
.date__count { margin-top: 30px; }
.date__in { font: 700 24px/1.2 var(--f-hand); color: var(--soft); }
.count { display: flex; justify-content: center; gap: 10px; margin: 10px 0 8px; }
.count span { width: 70px; padding: 11px 0 9px; background: #fffdf8; box-shadow: var(--shadow); font: 800 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); rotate: -2deg; }
.count span:nth-child(2n) { rotate: 2.4deg; translate: 0 4px; }
.count b { margin-bottom: 6px; font: 400 31px/1 var(--f-head); color: var(--red); letter-spacing: 0; }
.count[hidden] ~ .date__in--after, .date__count:has(.count[hidden]) .date__in { display: none; }
.count__done { font: 400 24px/1.3 var(--f-head); color: var(--red); }

/* =================================================================== THE FUNCTIONS */

.fns { padding-bottom: 30px; }
.fns__head { font: 400 40px/1.1 var(--f-head); color: var(--red); }
.fns__sub { font: 700 24px/1.2 var(--f-hand); color: var(--soft); }
.fn {
  position: relative; width: calc(100% - 40px); margin: 38px auto 0; padding: 26px 20px 20px; rotate: var(--r); text-align: left;
  background: #fffdf8; box-shadow: var(--shadow);
}
.fn.reveal { transition-property: opacity, translate; }
.fn__day {
  position: absolute; right: 14px; top: 16px; width: 70px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--red); border-radius: 50%; rotate: 9deg; font: 800 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.fn__day b { margin: 1px 0; font: 400 27px/1 var(--f-head); letter-spacing: 0; }
.fn__name { min-height: 44px; padding-right: 80px; font: 400 31px/1.1 var(--f-head); color: var(--red); overflow-wrap: anywhere; }
.fn__hi { font: 400 21px/1.3 var(--f-head); color: var(--soft); padding-right: 80px; }
.fn__when { margin-top: 10px; padding-right: 60px; font: 800 16px/1.4 var(--f-body); }
.fn__when span { display: block; color: var(--red); }
.fn__sched { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font: 600 16px/1.4 var(--f-body); }
.fn__sched b { margin-left: 6px; font-weight: 800; color: var(--red); }
.fn__note { margin-top: 10px; font: 500 22px/1.25 var(--f-hand); color: #4a4036; }
.fn__at { margin-top: 12px; font: 800 17px/1.35 var(--f-body); }
.fn__at span { display: block; font-weight: 600; font-size: 16px; color: var(--soft); }
.fn__dress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font: 700 20px/1 var(--f-hand); color: var(--soft); }
.fn__dress em { padding: 5px 11px; border: 1.5px solid currentColor; border-radius: 999px; font: 800 14px/1 var(--f-body); color: var(--ink); }
.fn__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; text-decoration: none;
  font: 800 14px/1 var(--f-body); color: var(--ink); background: rgba(255, 253, 248, .6);
  border: 1.7px solid var(--ink); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
}
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--big { min-height: 54px; padding: 0 28px; font-size: 17px; box-shadow: 0 6px 12px -6px rgba(120, 10, 20, .7); }
.fn__fix { position: absolute; left: 50%; top: -13px; width: 100px; height: 26px; translate: -50% 0; rotate: -3deg; background: var(--tape); opacity: .86; box-shadow: 0 1px 2px rgba(60, 35, 15, .25); }
/* the wedding itself: a ticket */
.fn--ticket { padding: 30px 24px 24px; outline: 2px solid var(--red); outline-offset: -9px; }
.fn--ticket::before, .fn--ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 3px rgba(70, 45, 20, .3); }
.fn--ticket::before { left: -13px; }
.fn--ticket::after { right: -13px; }
.fn--ticket .fn__day { background: var(--red); color: #fff; border-color: #fff; outline: 2px solid var(--red); right: 20px; top: 22px; }
.fn--ticket .fn__fix { display: none; }
.fn--note { padding-left: 38px; background: repeating-linear-gradient(#fffdf8 0 29px, #d3dee8 29px 30px); }
.fn--note::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; border-left: 1.5px solid rgba(200, 36, 43, .4); }
.fn--kraft { background: #d9bc92 var(--flecks); }
.fn--kraft .fn__name, .fn--kraft .fn__day { color: #8f0d16; border-color: #8f0d16; }
.fn--kraft .fn__hi, .fn--kraft .fn__at span, .fn--kraft .fn__dress { color: #4a3a26; }
.fn--kraft .fn__fix { width: 22px; height: 22px; top: -8px; rotate: 0deg; border-radius: 50%; opacity: 1; background: radial-gradient(circle at 35% 30%, #f08a8f 0 18%, #c8242b 40%, #8f0d16); box-shadow: 2px 5px 5px rgba(60, 35, 15, .45); }
.fn--plain { background: #fbe4df; }
.fn--plain .fn__fix { left: 14%; rotate: -24deg; top: -8px; }

/* =================================================================== FAMILIES */

.fam__head { font: 400 36px/1.15 var(--f-head); color: var(--red); padding: 0 20px; }
.fam__msg { margin: 12px 28px 0; font: 500 23px/1.3 var(--f-hand); color: #4a4036; text-wrap: balance; }
.kin { position: relative; width: calc(100% - 52px); margin: 40px auto 0; padding: 26px 18px 22px; background: #fffdf8; box-shadow: var(--shadow); rotate: -1.3deg; }
.kin--2 { rotate: 1.4deg; background: #fbe4df; }
.kin__tape { position: absolute; left: 50%; top: -13px; width: 90px; height: 26px; translate: -50% 0; rotate: 4deg; background: var(--tape); opacity: .86; }
.kin__who { font: 400 clamp(52px, 16vw, 68px)/1 var(--f-script); color: var(--red); overflow-wrap: anywhere; }
.kin__line { margin-top: 12px; font: 800 17px/1.4 var(--f-body); text-wrap: balance; }
.kin small { display: block; font: 800 13px/1.5 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.kin__list { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(42, 42, 42, .16); font: 800 16px/1.3 var(--f-body); }
.kin__list li + li { margin-top: 8px; }
.kin__list small { letter-spacing: .14em; }

/* =================================================================== REPLY */

.reply { padding-top: 72px; }
.pola--blank { width: 44%; margin: 0 auto 26px; rotate: 4deg; }
.pola--blank .pola__pic { display: grid; place-items: center; background: #f3e9da; }
.pola--blank .pola__pic svg { width: 46%; height: auto; overflow: visible; }
.reply.in .pola--blank .pola__pic svg { animation: bcBeat 1.5s ease-in-out infinite; }
@keyframes bcBeat { 50% { scale: 1.12; } }
.reply__head { padding: 0 18px; font: 400 clamp(56px, 17.5vw, 80px)/.95 var(--f-script); color: var(--red); text-wrap: balance; }
.reply__text { margin: 16px 30px 24px; font: 600 17px/1.5 var(--f-body); text-wrap: balance; }
.rsvp { margin: 30px 24px 0; }
.rsvp li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; padding: 10px 0; border-top: 2px dashed rgba(42, 42, 42, .14); }
.rsvp__name { font: 400 21px/1.2 var(--f-head); color: var(--red); }
.rsvp__num { font: 800 16px/1.2 var(--f-body); }
.rsvp__go { width: 100%; display: flex; justify-content: center; gap: 4px; }
.rsvp__go a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font: 800 15px/1 var(--f-body); text-underline-offset: 4px; }
.reply .hrow { margin: 22px 0 0; }
.tagbtn { min-height: 48px; margin-top: 4px; padding: 0 16px; border: 0; background: none; font: 400 25px/1.2 var(--f-head); color: var(--red); cursor: pointer; overflow-wrap: anywhere; }
.reply .tagbtn + .hrow { margin-top: 4px; }

.foot { padding: 46px 22px calc(96px + env(safe-area-inset-bottom)); text-align: center; border-top: 2px dashed rgba(42, 42, 42, .13); margin: 0 26px; }
.foot__names { font: 400 54px/1 var(--f-script); color: var(--red); }
.foot__date { margin-top: 4px; font: 800 16px/1.4 var(--f-body); }
.foot__cal { margin-top: 12px; font: 600 15px/2.2 var(--f-body); }
.foot__cal a { padding: 10px 2px; text-underline-offset: 4px; }
.foot__music, .foot__credit { margin-top: 8px; font: 600 14px/1.5 var(--f-body); color: var(--soft); }
.copied { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 75; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font: 800 15px/1 var(--f-body); }

/* =================================================================== LINK PREVIEW */

html.og .ogcard { align-items: center; justify-content: center; gap: 34px; padding: 0 70px; background: var(--paper) var(--flecks); font-family: var(--f-body); color: var(--ink); }
.og__pola { flex: none; width: 240px; padding: 15px 15px 0; rotate: -6deg; }
.og__pola--r { rotate: 6deg; margin-top: 60px; }
.og__pola figcaption { font-size: 23px; padding: 10px 0 14px; }
.og__text { flex: 1; min-width: 0; text-align: center; }
.og__save { font: 400 36px/1.2 var(--f-head); letter-spacing: .16em; text-transform: uppercase; }
.og__names { margin: 6px 0 0; font: 400 150px/1.05 var(--f-script); color: var(--red); overflow-wrap: anywhere; }
.og__date { font: 400 50px/1.2 var(--f-head); color: var(--red); }
.og__venue { margin-top: 8px; font: 800 28px/1.3 var(--f-body); text-wrap: balance; }
.og__h { position: absolute; }
.og__h--1 { width: 96px; left: 30px; top: 26px; rotate: -16deg; }
.og__h--2 { width: 60px; left: 124px; top: 20px; rotate: 10deg; }
.og__h--3 { width: 60px; right: 128px; bottom: 26px; rotate: -10deg; }
.og__h--4 { width: 96px; right: 30px; bottom: 30px; rotate: 14deg; }

@media (min-width: 720px) {
  .hero__line { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
