/* ─────────────────────────────────────────────────────────────
   Ivory photo-booth wedding — site styles
   ───────────────────────────────────────────────────────────── */
:root {
  --ivory: #f1ede6;
  --ivory-deep: #e8e2d8;
  --paper: #fbf9f5;
  --paper-shade: #ece6db;
  --ink: #1f1d1a;
  --ink-soft: #4a453f;
  --muted: #7a7268;
  --line: #cfc6b8;
  --accent: #8b2c26;
  --wax: #1e2b4a;
  --steel-dark: #151515;

  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --didone: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --shadow-paper: 0 1px 1px rgba(40, 30, 20, .06), 0 10px 24px -8px rgba(40, 30, 20, .22), 0 30px 60px -30px rgba(40, 30, 20, .25);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

/* ── Type ───────────────────────────────────────────────────── */
.script { font-family: var(--script); font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.eyebrow {
  font: 500 .74rem/1.5 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0;
}
.caps { font: 500 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin: 0 0 1.2rem; }
.accent { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 .76rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem 1.8rem; min-height: 46px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; text-decoration: none;
  transition: background .25s, color .25s, transform .2s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--text { background: none; border: 0; padding: .6rem 0; min-height: 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.btn--text:hover { background: none; border-color: var(--ink); }

/* ── Photos & placeholders ──────────────────────────────────── */
.photo { position: relative; display: block; overflow: hidden; background: #bbb5ac; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.03); }
.photo.is-placeholder {
  background:
    radial-gradient(circle at calc(36% + var(--sx, 0%)) 42%, #e4e0d9 0 12.5%, transparent 13%),
    radial-gradient(circle at calc(63% + var(--sx, 0%)) 38%, #d8d3cb 0 12.5%, transparent 13%),
    radial-gradient(ellipse 27% 40% at calc(36% + var(--sx, 0%)) 100%, #a8a299 0 99%, transparent 100%),
    radial-gradient(ellipse 27% 44% at calc(63% + var(--sx, 0%)) 100%, #918b81 0 99%, transparent 100%),
    linear-gradient(165deg, #c8c3bb, #77726a);
}
.photo.is-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.18));
}

/* Photo strip */
.strip {
  display: grid; gap: 6px;
  padding: 7px 7px 26px;
  background: #fdfcf9;
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 8px 18px -6px rgba(0,0,0,.35);
}
.strip .photo { aspect-ratio: 1 / 1.03; }
.photo img { object-position: 50% 30%; }
body.photos-color .photo img { filter: saturate(.9) contrast(1.03); }

/* ── Intro: the photo booth ─────────────────────────────────── */
.intro {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem;
  padding: 2.5rem 16px 3rem;
  text-align: center;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.intro > .eyebrow { font-size: clamp(.95rem, 2.6vw, 1.15rem); letter-spacing: .04em; font-weight: 500; }
.intro__names { font-size: clamp(2.8rem, 9vw, 4.6rem); margin: -.2rem 0 .4rem; }
.date-display { font: 400 clamp(1.9rem, 6vw, 2.6rem)/1 var(--didone); letter-spacing: .06em; margin: .6rem 0 .4rem; }
.intro .btn { margin-top: .2rem; }

.booth { width: clamp(190px, 52vw, 236px); }
.booth__frame {
  padding: 11px;
  border-radius: 5px;
  background: linear-gradient(135deg, #0c0c0c 0%, #474747 18%, #121212 42%, #2d2d2d 70%, #050505 100%);
  box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 30px 50px -18px rgba(0,0,0,.55), 0 10px 18px -8px rgba(0,0,0,.4);
}
.booth__inner {
  position: relative;
  aspect-ratio: 1 / 2.05;
  overflow: hidden;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #6d6d6b 0%, #8e8e8b 35%, #7a7a77 70%, #a1a19e 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 6px 0 14px -4px rgba(0,0,0,.6), inset -6px 0 14px -4px rgba(0,0,0,.55), inset 0 12px 18px -8px rgba(0,0,0,.6);
}
.booth__slot {
  position: absolute; top: 5%; left: 22%; right: 22%; height: 7px; z-index: 3;
  background: linear-gradient(#050505, #2a2a2a);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.booth__chute { position: absolute; top: calc(5% + 4px); left: 0; right: 0; bottom: 4%; overflow: hidden; z-index: 2; }
.strip--booth {
  position: absolute; left: 50%; top: 0;
  width: 46%;
  transform: translate(-50%, -101%);
}
.booth__tray {
  position: absolute; left: 6%; right: 6%; bottom: 3%; height: 7%; z-index: 4;
  background: linear-gradient(180deg, #c9c9c6, #8d8d8a 60%, #6a6a68);
  border-radius: 2px 2px 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 -3px 6px rgba(0,0,0,.25);
}
.booth__flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.booth { cursor: pointer; }

/* Sequence: 4 camera flashes, then the strip feeds out of the slot frame by frame
   like a booth printer (feed, pause, feed…), and comes to rest hanging from the slot. */
.intro.is-printing .booth__flash { animation: flash 1.6s .4s steps(1) both; }
.intro.is-printing .strip--booth { animation: print 5.6s 2.1s both; }
@keyframes flash {
  0%, 100% { opacity: 0; }
  2% { opacity: .9; } 8% { opacity: 0; }
  27% { opacity: .9; } 33% { opacity: 0; }
  52% { opacity: .9; } 58% { opacity: 0; }
  77% { opacity: .9; } 83% { opacity: 0; }
}
@keyframes print {
  0%   { transform: translate(-50%, -101%); animation-timing-function: linear; }
  12%  { transform: translate(-50%, -82%); }
  17%  { transform: translate(-50%, -82%); animation-timing-function: linear; }
  31%  { transform: translate(-50%, -58%); }
  36%  { transform: translate(-50%, -58%); animation-timing-function: linear; }
  50%  { transform: translate(-50%, -34%); }
  55%  { transform: translate(-50%, -34%); animation-timing-function: linear; }
  72%  { transform: translate(-50%, -4%); }
  76%  { transform: translate(-50%, -4%); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  84%  { transform: translate(-50%, 1.5%) rotate(1.2deg); animation-timing-function: ease-in-out; }
  92%  { transform: translate(-50%, 1%) rotate(-.6deg); animation-timing-function: ease-in-out; }
  100% { transform: translate(-50%, 1.2%) rotate(.3deg); }
}

/* Save-the-date mode */
.std { display: flex; flex-direction: column; align-items: center; gap: .5rem; animation: drop-in 1s 8s var(--ease-out) both; }
.std__title { font-size: clamp(2.4rem, 8vw, 3.2rem); margin: -.2rem 0 0; }
.std__venue { font: 500 .72rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .6rem; }
.std__cal { display: grid; justify-items: center; }
.std__cal > * { grid-area: 1 / 1; }
.std__cal-toggle { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.std__cal-options {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .35s .1s var(--ease-out), transform .35s .1s var(--ease-out), visibility 0s .45s;
}
.std__cal-options .btn { min-width: 108px; padding-inline: 1.1rem; }
.std__cal.is-open .std__cal-toggle { opacity: 0; transform: scale(.96); pointer-events: none; }
.std__cal.is-open .std__cal-options { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.std__follow { color: var(--muted); margin-top: .8rem; font-size: .64rem; }

body:not(.is-intro) .intro { display: none; }
body.is-intro .site { display: none; }

/* ── Envelope reveal ────────────────────────────────────────── */
.envelope-stage {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  background: var(--ivory);
  padding: 16px;
  transition: opacity .8s var(--ease-out);
}
.envelope-stage[hidden] { display: none; }
.envelope-stage.is-leaving { opacity: 0; pointer-events: none; }
.envelope-stage__hint { font: 500 .7rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0; transition: opacity .3s; }
.envelope-stage.is-open .envelope-stage__hint { opacity: 0; }

.envelope {
  position: relative; display: block;
  width: min(88vw, 440px); aspect-ratio: 1.45;
  border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 1400px;
  animation: drop-in .9s var(--ease-out) both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.envelope > span { position: absolute; display: block; }
.envelope__back { inset: 0; background: var(--paper-shade); border-radius: 3px; box-shadow: var(--shadow-paper); }
.envelope__letter {
  left: 6%; right: 6%; top: 7%; bottom: 7%; z-index: 2;
  background: var(--paper);
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  transition: transform 1s .55s var(--ease-out);
}
.envelope__letter-title { font-size: clamp(3rem, 12vw, 4.4rem); margin-top: .1rem; }
.envelope__pocket {
  inset: 0; z-index: 3;
  background: linear-gradient(170deg, #f1ebe1, #e6dfd2);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  border-radius: 3px;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.05));
}
.envelope__flap {
  left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  background: linear-gradient(180deg, #e9e2d6, #ddd5c7);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .75s var(--ease-out), z-index 0s .3s;
}
.envelope__seal { width: 78px; height: 78px; }
.envelope__seal .mono { font-size: 1.85rem; }
.envelope__seal { left: 50%; top: 60%; z-index: 5; transform: translate(-50%, -50%); transition: opacity .3s, transform .4s var(--ease-out); }
.envelope:hover .envelope__seal { transform: translate(-50%, -50%) scale(1.05); }
.envelope-stage.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.envelope-stage.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.envelope-stage.is-open .envelope__letter { transform: translateY(-58%); }

/* Wax seal — navy, with an embossed L & J pressed into it */
.seal {
  position: relative;
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  color: #8495bd;
  background: radial-gradient(circle at 36% 30%, #4a5d8a, var(--wax) 52%, #0c1428);
  box-shadow: 0 0 0 4px rgba(30,43,74,.62), 0 3px 7px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.4), inset 0 3px 4px rgba(255,255,255,.16);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  white-space: nowrap;
}
.seal::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.14);
  pointer-events: none;
}
.mono {
  display: inline-flex; align-items: baseline;
  font: 400 1.5rem/1 var(--script); letter-spacing: 0;
  /* pressed-in look: dark letter with a light lower edge */
  text-shadow: 0 -1px 0 rgba(5,10,25,.7), 0 1px 0 rgba(255,255,255,.12);
}
.mono__amp { font-size: .7em; margin: 0 .04em; }
.seal--sm { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(30,43,74,.62), 0 2px 5px rgba(0,0,0,.35), inset 0 -2px 4px rgba(0,0,0,.4); }
.seal--sm::before { inset: 5px; }
.seal--sm .mono { font-size: 1.1rem; }
.hebrew-date { font: 400 1rem/1.4 "Frank Ruhl Libre", "David", "Times New Roman", serif; color: var(--muted); margin: .2rem 0 .5rem; letter-spacing: .02em; }
.chai { font: 500 1.4rem/1 "Frank Ruhl Libre", serif; color: var(--wax); }

/* ── Top nav ────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.topnav__mark { font-size: 1.7rem; text-decoration: none; }
.topnav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.topnav__links a { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: .6rem 0; }
.topnav__links a:hover { color: var(--accent); }
.topnav__rsvp { border: 1px solid var(--ink); padding: .6rem 1rem !important; }
.topnav__toggle { display: none; background: none; border: 0; font: 500 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .6rem 0; cursor: pointer; }
@media (max-width: 760px) {
  .topnav__toggle { display: block; }
  .topnav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 16px 1rem;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    display: none;
  }
  .topnav.is-open .topnav__links { display: flex; }
  .topnav__links a { padding: .9rem 0; }
  .topnav__rsvp { margin-top: .4rem; }
}

/* ── Paper ──────────────────────────────────────────────────── */
.paper {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.paper--bordered::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
}

/* ── Invitation collage ─────────────────────────────────────── */
.invitation { padding: clamp(2.5rem, 7vw, 5rem) 16px 3rem; }
.collage {
  max-width: 980px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr .78fr;
  grid-template-areas:
    "invited invited strip"
    "rsvp    names   names"
    "polaroid details stamps";
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.collage > * { transition: transform .5s var(--ease-out); }

.card-invited { grid-area: invited; transform: rotate(-3deg); text-align: left; padding: 1.8rem 2rem 2rem 2.4rem; width: min(100%, 470px); justify-self: end; aspect-ratio: 1.3; display: flex; flex-direction: column; }
.card-invited .card-invited__title { margin-top: auto; }
.card-invited .eyebrow { text-align: right; font-size: .66rem; }
.card-invited__love { text-align: right; font-size: 1.5rem; margin: .1rem 1.5rem -.6rem 0; }
.card-invited__title { font-size: clamp(4rem, 10vw, 6.5rem); margin: 0; line-height: .82; }
.card-invited__title span { font-size: .52em; margin: 0 .25em; }

.strip-envelope { grid-area: strip; position: relative; width: min(230px, 100%); aspect-ratio: .92; justify-self: start; transform: rotate(6deg); margin-top: 1rem; }
.strip-envelope > span { position: absolute; display: block; }
.strip-envelope__back {
  left: 0; right: 0; bottom: 0; height: 66%;
  background: linear-gradient(180deg, #3a3835, #1e1d1b);
  box-shadow: var(--shadow-paper);
}
.strip-envelope__back::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 52%;
  background: linear-gradient(0deg, #2b2a28, #4a4844);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.collage__strip { position: absolute; left: 50%; top: 0; width: 46%; transform: translateX(-50%) rotate(-3deg); }
.strip-envelope__pocket {
  left: 0; right: 0; bottom: 0; height: 52%; z-index: 2;
  background: linear-gradient(170deg, #f1ebe1, #e2dacc);
  clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -1px 1px rgba(0,0,0,.12));
}
.strip-envelope__seal { z-index: 3; left: 50%; bottom: 22%; transform: translateX(-50%); }

.card-names { grid-area: names; transform: rotate(1.5deg); text-align: center; padding: 2.6rem 2rem 2.2rem; }
.card-names__names { font-size: clamp(3rem, 7vw, 4.4rem); margin: .6rem 0 1rem; line-height: .95; }
.card-names__names span { display: block; }
.card-names__names em { font-style: normal; font-size: .7em; }
.card-names__date { font: 400 1.25rem/1 var(--didone); letter-spacing: .08em; margin: 0 0 .4rem; }
.card-names__venue { font: 500 .72rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0; }

.card-names__adults { font: italic 400 1rem/1.4 var(--serif); color: var(--muted); margin: .7rem 0 0; }
.card-names__adults:empty, .rsvp__adults:empty { display: none; }
.rsvp__adults { font-style: italic; color: var(--ink-soft); max-width: 42ch; margin: 1rem auto 0; }

.mini-envelope {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  aspect-ratio: 1.4; padding: 1rem;
  background: var(--paper-shade); box-shadow: var(--shadow-paper);
  text-decoration: none; text-align: center;
}
.mini-envelope:hover { transform: rotate(0) translateY(-4px) !important; }
.mini-envelope--rsvp { grid-area: rsvp; transform: rotate(-4deg); background: linear-gradient(170deg, #f4efe7, #e7e0d4); }
.mini-envelope--rsvp::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%;
  background: linear-gradient(180deg, #e9e2d6, #ded6c8);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.mini-envelope--rsvp > * { position: relative; }
.mini-envelope--rsvp .mini-envelope__title { font-size: 2.6rem; margin-top: .2rem; }
.mini-envelope--rsvp .eyebrow { font-size: .6rem; }
.mini-envelope--details { grid-area: details; transform: rotate(2.5deg); justify-content: flex-end; padding-top: 0; overflow: visible; }
.mini-envelope__card {
  position: absolute; left: 9%; right: 9%; top: -22%; height: 74%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background: var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  outline: 1px solid var(--ink); outline-offset: -7px;
}
.mini-envelope--details::after {
  content: ""; position: absolute; inset: 38% 0 0 0;
  background: linear-gradient(170deg, #efe9df, #e4dccf);
  clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%);
}
.mini-envelope--details .mini-envelope__title { font-size: 2.3rem; }
.mini-envelope--details .eyebrow { font-size: .58rem; }
.mini-envelope__sig { position: relative; z-index: 1; font-size: 1.4rem; margin-bottom: .1rem; }

.polaroid {
  grid-area: polaroid; display: block; text-decoration: none;
  background: #fdfcf9; padding: 10px 10px 0; box-shadow: var(--shadow-paper);
  transform: rotate(-5deg); max-width: 250px; justify-self: center; width: 100%;
}
.polaroid:hover { transform: rotate(-2deg) translateY(-4px); }
.polaroid .photo { aspect-ratio: 1 / 1.05; }
.polaroid__caption { display: block; text-align: center; font-size: 2rem; padding: .3rem 0 .5rem; }

.stamps { grid-area: stamps; display: flex; justify-content: center; }
.stamp {
  display: block; width: 104px; padding: 7px; background: #fdfcf9;
  /* solid centre + scalloped perforations only around the edge */
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.5px at 5px 5px, transparent 97%, #000) -5px -5px / 10px 10px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.5px at 5px 5px, transparent 97%, #000) -5px -5px / 10px 10px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2));
}
.stamp .photo { aspect-ratio: .82; }
.stamp:first-child { transform: rotate(-8deg); }
.stamp:last-child { transform: rotate(6deg) translate(-14px, 18px); }

.signoff { text-align: center; margin-top: clamp(3rem, 8vw, 5rem); }
.signoff__names { font-size: clamp(2.6rem, 8vw, 3.6rem); margin: .3rem 0 0; }

@media (max-width: 720px) {
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "invited invited"
      "names   names"
      "rsvp    strip"
      "details details"
      "polaroid stamps";
    max-width: 440px;
  }
  .mini-envelope--details { width: 78%; justify-self: center; margin-top: 2.5rem; }
  .strip-envelope { width: 100%; max-width: 190px; justify-self: center; }
  .card-invited { justify-self: center; }
  .stamps { flex-direction: column; align-items: center; }
  .stamp { width: 92px; }
  .stamp:last-child { transform: rotate(6deg) translate(8px, -10px); }
}

/* ── Countdown ──────────────────────────────────────────────── */
.countdown { background: var(--ivory-deep); text-align: center; padding: clamp(3rem, 8vw, 4.5rem) 16px; }
.countdown__clock { display: inline-flex; align-items: flex-start; gap: clamp(.4rem, 2vw, 1rem); }
.countdown__clock > div { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.countdown__clock span { font: 400 clamp(2.2rem, 8vw, 3.6rem)/1 var(--didone); font-variant-numeric: lining-nums tabular-nums; }
.countdown__clock b { font: 400 clamp(1.8rem, 6vw, 2.8rem)/1.1 var(--didone); color: var(--muted); }
.countdown__clock small { font: 500 .6rem var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-top: .6rem; color: var(--muted); }
.countdown__tag { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--ink-soft); margin: 1rem 0 0; }

/* ── Sections ───────────────────────────────────────────────── */
.section { max-width: 1040px; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) 16px; }
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__title { font-size: clamp(3.2rem, 9vw, 4.8rem); margin: .3rem 0 0; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story__strips { display: flex; justify-content: center; }
.story__strips .strip { width: 128px; }
.story__strips .strip:nth-child(1) { transform: rotate(-7deg) translateX(18px); }
.story__strips .strip:nth-child(2) { transform: translateY(-22px); z-index: 1; }
.story__strips .strip:nth-child(3) { transform: rotate(6deg) translateX(-18px); }
.story__text p { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.story__text .section__title { margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; text-align: center; }
  .story__text p { margin-inline: auto; }
  .story__strips .strip { width: 96px; }
}

.details__date { font-style: italic; color: var(--ink-soft); margin: .8rem auto 0; max-width: 34ch; }
.details__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
.details__grid .paper--bordered { padding: clamp(2rem, 5vw, 3rem); }
.details__side { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.details__venue-name { font-size: 1.45rem; font-weight: 500; margin: 0 0 .3rem; }
.details__side p { margin: 0 0 .6rem; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { font: 400 1rem/1.7 var(--didone); letter-spacing: .04em; }
.schedule strong { display: block; font-weight: 600; font-size: 1.2rem; }
.schedule span { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 760px) { .details__grid { grid-template-columns: 1fr; } .schedule li { grid-template-columns: 5.2rem 1fr; } }

.travel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); }
.travel__grid p { margin: 0; color: var(--ink-soft); }

.registry { text-align: center; }
.registry__note { max-width: 46ch; margin: 0 auto 2rem; color: var(--ink-soft); font-size: 1.2rem; }
.registry__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.registry__empty { color: var(--muted); font-style: italic; }

.faq__list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-size: 1.3rem; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 300 1.5rem var(--sans); transition: transform .3s var(--ease-out); }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { margin: 0 0 1.4rem; color: var(--ink-soft); }

/* ── RSVP ───────────────────────────────────────────────────── */
.rsvp__card { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4rem); }
.rsvp__card .section__head { margin-bottom: 2rem; }
.rsvp-intro { text-align: center; color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 40ch; }
.field { display: grid; gap: .45rem; margin-bottom: 1.3rem; }
.field > label, .field-label { font: 500 .68rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.input, .textarea {
  width: 100%; font: 400 1.15rem var(--serif); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: .6rem .1rem; border-radius: 0; min-height: 46px;
}
.textarea { border: 1px solid var(--line); padding: .8rem; min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.textarea:focus { box-shadow: none; }
.find-row { display: flex; gap: 1rem; align-items: flex-end; }
.find-row .field { flex: 1; margin: 0; }
@media (max-width: 520px) { .find-row { flex-direction: column; align-items: stretch; } }

.form-error { color: var(--accent); font-size: 1.02rem; margin: .8rem 0 0; text-align: center; }
.form-note { text-align: center; color: var(--muted); font-style: italic; margin: 0 0 1.6rem; }

.guest { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.guest:first-of-type { border-top: 0; padding-top: 0; }
.guest__name { font-size: 1.6rem; font-weight: 500; margin: 0 0 .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.guest__name small { font: 500 .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice, .chip { position: relative; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.choice span { min-height: 52px; padding: .6rem; font-size: 1.12rem; font-style: italic; }
.chip span { min-height: 38px; padding: .4rem .9rem; font: 400 .9rem var(--sans); border-radius: 999px; }
.choice input:checked + span, .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.choice span:hover, .chip span:hover { border-color: var(--ink); }
.guest__more { margin-top: 1.2rem; display: grid; gap: 1.1rem; }
.guest__more[hidden] { display: none; }
.guest__more .field { margin: 0; }
.meal-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.meal-row .choice span { font-size: 1rem; min-height: 46px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.remove-guest { background: none; border: 0; color: var(--accent); cursor: pointer; font: 500 .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0; }
.rsvp-extras { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: .4rem; }
.rsvp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.household-pick { display: grid; gap: .7rem; margin-top: 1rem; }

.dinner-card {
  position: relative; text-align: center;
  background: var(--ivory); padding: 1.8rem 1.6rem 1.6rem; margin: 0 0 2rem;
  outline: 1px solid var(--line); outline-offset: -8px;
}
.dinner-card .eyebrow { color: var(--accent); }
.dinner-card__title { font-size: 2.6rem; margin: .3rem 0 .6rem; }
.dinner-card p { margin: 0 auto .6rem; max-width: 44ch; color: var(--ink-soft); }
.dinner-card__when { font: 500 .7rem/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.guest__dinner { margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.choice-row--small .choice span { min-height: 44px; font-size: 1rem; }

.thanks { text-align: center; }
.thanks .script { font-size: 3rem; margin: 0 0 .6rem; }
.thanks ul { list-style: none; padding: 0; margin: 1.4rem auto; max-width: 420px; text-align: left; }
.thanks li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.thanks li span:last-child { font: 500 .66rem/2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ── Card suits (easter egg) ────────────────────────────────── */
.suit { width: 1em; height: 1em; fill: var(--ink); display: inline-block; vertical-align: middle; }
.suit.is-red { fill: var(--accent); }
.suits { display: flex; justify-content: center; gap: .9rem; margin: 0 0 1.2rem; font-size: .62rem; opacity: .45; }
.pip { position: absolute; font-size: .8rem; opacity: .55; }
.pip--tl { top: 20px; left: 20px; }
.pip--br { bottom: 20px; right: 20px; transform: rotate(180deg); }
.thanks__eyebrow { color: var(--accent); margin-bottom: .4rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { text-align: center; padding: 4rem 16px 3.5rem; background: var(--ivory-deep); }
.footer__names { font-size: 2.8rem; margin: 1.2rem 0 .4rem; }
.footer .suits { margin: .2rem 0 .8rem; }
.footer__seal { border: 0; cursor: pointer; transition: transform .6s var(--ease-out); }
.footer__seal.is-flipped { transform: rotateY(180deg); background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 3px 8px rgba(0,0,0,.18); border-radius: 6px; }
.footer__seal-face { display: grid; place-items: center; transform: rotateY(180deg); font-size: 1.6rem; }
.footer__seal.is-flipped::before { display: none; }
.footer__contact { color: var(--muted); margin: 1rem 0 0; }

/* ── Reveal on scroll ───────────────────────────────────────── */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .intro.is-printing .booth__flash { animation: none; }
  .strip--booth { transform: translate(-50%, 1.2%); }
  .reveal { opacity: 1; translate: none; }
}

/* Seals sit inside containers that set display:block on their children — keep them centred */
.envelope > .seal, .strip-envelope > .seal { display: grid; place-items: center; }
/* The photo strip should disappear into the envelope pocket, not hang out the bottom */
.strip-envelope { overflow: hidden; padding-top: 0; }
.strip-envelope .collage__strip { width: 42%; top: 2%; }
