/* Wedding theme. Tokens first; the engine derives everything else from them. */
@font-face {
  font-family: "Invitation Numerals";
  src: local("Georgia"), local("Times New Roman");
  font-weight: 400 500;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Invitation Numerals";
  src: local("Georgia Bold"), local("Times New Roman Bold");
  font-weight: 600 700;
  unicode-range: U+0030-0039;
}
:root {
  --sc-canvas:     #f7eeea;
  --sc-surface:    #f1e4e3;
  --sc-ink:        #482e3d;
  --sc-ink-soft:   #6b4e5c;
  --sc-accent:     #6c4054;
  --sc-accent-ink: #fff8ee;
  --sc-font-display: "Invitation Numerals", "Cormorant Garamond", Georgia, serif;
  --sc-font-text:    var(--sc-font-display);

  --script: "Invitation Numerals", "Allura", cursive;
  --arabic: "Amiri", "Scheherazade New", serif;
  --gold: #a47476;
  --hair: #80566842;
  --foil: #94626f;
  --foil-soft: #94626f60;
  --evening: #49303f;
  --evening-deep: #2b1a29;
  --champagne: #f9e8dd;
  --jasmine: url(../assets/art/jasmine-envelope.webp);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .32 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pearl: radial-gradient(120% 90% at 50% 40%, #fffaf4 0%, #f9eeea 50%, #e8d5d9 100%);
}

body {
  background: var(--sc-canvas); color: var(--sc-ink);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  font-variant-numeric: lining-nums tabular-nums;
}
main { overflow-x: clip; }

.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1.15; color: var(--sc-ink); margin: 0; }
p { margin: 0; }

/* shared ornaments ------------------------------------------------------- */
.lace-top {
  position: absolute; inset: 0 0 auto 0; height: clamp(85px, 15svh, 140px);
  background: var(--jasmine) center 13% / cover no-repeat;
  mask-image: linear-gradient(#000 12%, transparent);
  opacity: .22; pointer-events: none; z-index: 1;
}
.lace-top--soft { opacity: .15; }
.floral-bed {
  position: absolute; inset: auto -4% -2px -4%; height: clamp(120px, 24vw, 260px);
  background: url(../assets/svg/floral.svg) repeat-x bottom center / auto 100%;
  pointer-events: none; z-index: 2;
}
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* 1 · envelope ----------------------------------------------------------- */
.seal-stage {
  --opening-art: url(../assets/art/opening-arch-portrait.webp);
  background: var(--evening);
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.seal-stage:not(.sc-stage) { position: relative; }
.envelope {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.envelope__masks { position: absolute; pointer-events: none; }
.envelope__panel, .envelope__closed {
  position: absolute; inset: 0;
  background: var(--envelope-art, var(--jasmine)) center 54% / cover no-repeat, #795965;
}
@media (min-width: 861px) and (min-aspect-ratio: 5/4) {
  .seal-stage {
    --envelope-art: url(../assets/art/jasmine-envelope-wide.webp);
    --opening-art: url(../assets/art/opening-arch-wide.webp);
  }
}
.envelope__seal-track { position: absolute; inset: 0; }
.envelope__panel--left {
  clip-path: url(#wrap-side);
  transform-origin: left center;
}
.envelope__panel--right {
  clip-path: url(#wrap-right);
  transform-origin: right center;
}
.envelope__panel--bottom {
  clip-path: url(#wrap-bottom);
  transform-origin: center bottom;
}
.envelope__panel--top {
  clip-path: url(#wrap-top);
  transform-origin: center top;
}

.card {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
.page { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding-inline: var(--sc-gutter); background: var(--pearl); }
.page::after { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.page--bismillah {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(.35rem, 1svh, .7rem);
  padding-block: clamp(3.2rem, 17svh, 9rem) clamp(.75rem, 2.5svh, 2rem);
  background: radial-gradient(ellipse at center, #fff7edc2 0%, #fcf0e387 29%, transparent 62%),
    var(--opening-art) center / cover no-repeat, var(--pearl);
}
@media (max-width: 860px), (max-aspect-ratio: 5/4) {
  /* Keep both portrait columns and the lanterns inside the viewport. */
  .page--bismillah { background-size: auto, 100% 100%, auto; padding-inline: max(var(--sc-gutter), 6vw); }
}
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  /* The artwork already has grain. Keep the phone reveal to one background. */
  .page--bismillah::after { content: none; }
}
.page .bismillah {
  position: relative; z-index: 3; max-width: 42rem;
  opacity: 0;
}
.has-opening-motion .page .bismillah { transition: opacity .42s ease-out; }
.opening-line {
  color: #943f58;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.15;
  margin: clamp(.875rem, 2.1svh, 1.5rem) 0 .3rem;
}
.opening-names { color: var(--sc-accent); font-size: clamp(2.7rem, 6.6vw, 5.2rem); }
.opening-couple {
  position: relative; z-index: 1; align-self: end;
  display: block; width: min(calc(100% + clamp(1.25rem, 8vw, 4rem)), 46rem); height: 100%; min-height: 0;
  object-fit: contain; object-position: center bottom;
}
@media (max-height: 620px) {
  .page--bismillah { padding-top: clamp(2.25rem, 13svh, 4.25rem); }
  .page--bismillah .bismillah__ar { font-size: clamp(1.65rem, 5.5svh, 2.45rem); }
  .page--bismillah .bismillah__en { font-size: 1rem; }
  .opening-line { margin-block: .625rem .2rem; }
  .opening-names { font-size: clamp(2rem, 7svh, 3.25rem); }
}

.seal {
  position: absolute; z-index: 1; left: 50%; top: 54%; width: clamp(76px, 13vw, 97px); aspect-ratio: 7 / 8;
  border: 2px solid #ddc4b0; border-radius: 49% 51% 50% 48% / 53% 51% 49% 47%;
  padding: 0; cursor: pointer;
  background: radial-gradient(ellipse at 35% 26%, #fff6e9, #dfc8ba 66%, #b69083);
  box-shadow: 0 6px 15px #3f263d66, inset 0 0 0 3px #f6e4d2, inset 0 0 0 5px #af837b99;
  translate: -50% -50%;
  pointer-events: auto;
}
.seal__mono {
  font-family: var(--script); font-size: clamp(1.5rem, 5.4vw, 2rem); color: #674c53;
  text-shadow: 0 1px 0 #fff5e9;
  display: grid; place-items: center; height: 100%; padding: .15em .18em 0 0; white-space: nowrap;
}

/* 2 · couple ------------------------------------------------------------- */
.act-bismillah { position: relative; padding: clamp(2rem, 5.6vw, 5rem) var(--sc-gutter); text-align: center; background: var(--sc-surface); }
.act-bismillah::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jasmine) center 23% / cover no-repeat;
  opacity: .38;
  pointer-events: none;
}
.couple-kicker { font-style: italic; letter-spacing: .08em; color: var(--sc-ink-soft); font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); }
.bismillah { position: relative; z-index: 3; }
.bismillah__ar { font-family: var(--arabic); font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem); color: var(--sc-accent); line-height: 1.6; }
.bismillah__en { margin-top: .6rem; font-style: italic; color: var(--sc-ink-soft); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
.couple { position: relative; z-index: 1; margin: clamp(2.5rem, 6vh, 4rem) auto 0; width: min(78vw, 420px); padding-bottom: clamp(90px, 16vw, 180px); }
.couple__arch {
  aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 1px solid var(--hair); outline: 1px solid var(--hair); outline-offset: 10px;
  background: radial-gradient(90% 70% at 50% 35%, #fffaf2, #eadcc8);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(91, 63, 44, .35);
}
.couple__arch img { width: 100%; height: 100%; object-fit: cover; }
.couple__mono { font-family: var(--script); font-size: clamp(4rem, 14vw, 7rem); color: var(--gold); line-height: 1; text-align: center; }
.couple__mono small { display: block; font-family: var(--sc-font-text); font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sc-ink-soft); margin-top: .8rem; }
.act-bismillah .floral-bed { z-index: 2; }

/* 3 · names -------------------------------------------------------------- */
.names-stage { display: grid; place-items: center; background: var(--pearl); overflow: hidden; }
.names { position: relative; z-index: 3; text-align: center; padding: 0 var(--sc-gutter) clamp(90px, 18vh, 170px); max-width: 52rem; }
.invite-line { font-style: italic; color: var(--sc-ink-soft); font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); margin-bottom: clamp(.6rem, 2vh, 1.4rem); }
.name { font-size: clamp(2.8rem, 1.6rem + 6vw, 6.2rem); color: #6b4a33; padding-inline: .1em; }
.with { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--gold); margin: clamp(.6rem, 2.2vh, 1.4rem) 0 0; }

/* 4 · countdown ---------------------------------------------------------- */

/* 5 · story -------------------------------------------------------------- */
.story-stage { display: flex; align-items: center; overflow: hidden; background: var(--sc-canvas); }
.rail { gap: clamp(1.2rem, 3vw, 2.6rem); padding-inline: var(--sc-gutter) 20vw; align-items: center; }
.rail__lead { flex: 0 0 auto; width: min(80vw, 22rem); }
.story-title { font-size: clamp(3rem, 2rem + 4vw, 5.2rem); }
.story-sub { color: var(--sc-ink-soft); font-style: italic; margin-top: .4rem; }
.story-card { flex: 0 0 auto; width: clamp(200px, min(26vw, 50svh), 340px); margin: 0; }
.story-card__frame {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 16px 16px; overflow: hidden;
  border: 1px solid var(--hair); outline: 1px solid var(--hair); outline-offset: 8px;
  background: radial-gradient(90% 70% at 50% 30%, #fffaf2, #e7d6c0);
  display: grid; place-items: center;
}
.story-card__frame img { width: 100%; height: 100%; object-fit: cover; }
.story-card__ph { font-family: var(--script); font-size: 3.4rem; color: rgba(160, 122, 82, .55); }
.story-card figcaption { margin-top: 1.2rem; text-align: center; }
.story-card__year { display: block; letter-spacing: .3em; font-size: .8rem; color: var(--gold); }
.story-card__cap { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-style: italic; }
.story-card:nth-child(odd) { translate: 0 4vh; }

/* 6/7 · events ----------------------------------------------------------- */
.event-stage { display: grid; place-items: center; background: var(--pearl); overflow: hidden; }
.event-card {
  position: relative; z-index: 3; text-align: center;
  width: min(88vw, 30rem); padding: clamp(2.2rem, 6vh, 3.6rem) clamp(1.2rem, 4vw, 2.6rem) clamp(2rem, 5vh, 3rem);
  border-radius: 50% / 34%;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255, 252, 246, .95), rgba(246, 236, 222, .9));
  border: 1px solid var(--hair); outline: 1px solid var(--hair); outline-offset: 10px;
  box-shadow: 0 40px 80px -40px rgba(91, 63, 44, .35);
  margin-bottom: clamp(70px, 14vh, 140px);
}
.event__title { font-size: clamp(3rem, 2.2rem + 3.6vw, 5rem); }
.event__insha { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--sc-ink-soft); margin-top: .2rem; }
.event__day { margin-top: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); }
.event__time { margin-top: .5rem; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.event__venue { margin-top: 1.1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-ink); }
.event__addr { color: var(--sc-ink-soft); font-size: .98rem; margin-top: .2rem; }
.event-art { position: absolute; left: 50%; bottom: clamp(60px, 12vw, 120px); translate: -50% 0; width: min(110vw, 900px); aspect-ratio: 8 / 3; background: center bottom / contain no-repeat; z-index: 1; opacity: .95; }
.event-art--mosque { background-image: url(../assets/svg/mosque.svg); }
.event-art--table  { background-image: url(../assets/svg/table.svg); bottom: 0; }

.act-event--flow { position: relative; display: grid; place-items: center; background: var(--pearl); padding-bottom: clamp(120px, 20vw, 240px); }
.event-card--flow { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-top: 1.4rem; padding: .65rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--sc-accent); color: var(--sc-ink); text-decoration: none;
  letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-weight: 600;
  background: #fff8eecc;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.btn--solid { background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; cursor: pointer; }
.btn--solid:hover { background: var(--evening); }

/* 8 · rsvp --------------------------------------------------------------- */
.rsvp-wrap { max-width: 36rem; text-align: center; }
.rsvp-title { font-size: clamp(2.8rem, 2rem + 3.4vw, 4.6rem); }
.rsvp-sub { color: var(--sc-ink-soft); font-style: italic; margin-top: .3rem; }
.rsvp { display: grid; gap: 1.1rem; margin-top: 2rem; text-align: left; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 20px; background: rgba(255, 252, 246, .7); border: 1px solid var(--hair); }
.rsvp label { display: grid; gap: .35rem; font-size: .95rem; letter-spacing: .04em; color: var(--sc-ink-soft); }
.rsvp input:not([type=radio]):not([type=checkbox]), .rsvp textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--hair);
  background: #fffdf9; color: var(--sc-ink); font-size: 1.05rem;
}
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.rsvp legend { width: 100%; margin-bottom: .5rem; color: var(--sc-ink-soft); font-size: .95rem; }
.chip { display: inline-flex !important; grid-auto-flow: column; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--hair); background: #fffdf9; color: var(--sc-ink); cursor: pointer; font-size: 1rem; }
.chip input:checked + span { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: var(--sc-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.rsvp .btn { justify-self: center; margin-top: .4rem; }
.rsvp__status { text-align: center; min-height: 1.4em; font-style: italic; }
.rsvp.is-done > :not(.rsvp__status) { display: none; }
.rsvp.is-done .rsvp__status { font-size: 1.3rem; color: var(--sc-ink); padding: 2rem 0; }

/* 9 · closing ------------------------------------------------------------ */
.close-stage { display: grid; place-items: center; background: var(--pearl); overflow: hidden; }
.close { position: relative; z-index: 3; text-align: center; padding-bottom: clamp(100px, 20vh, 200px); }
.close__await { text-transform: uppercase; letter-spacing: .2em; font-size: clamp(1rem, .9rem + .6vw, 1.35rem); color: var(--sc-ink-soft); line-height: 1.7; }
.close__regards { font-style: italic; margin-top: 2rem; color: var(--sc-ink-soft); }
.close__family { font-size: clamp(3rem, 2rem + 5vw, 5.6rem); margin-top: .2rem; }

/* phones ----------------------------------------------------------------- */
@media (max-width: 860px) {
  .story-card:nth-child(odd) { translate: 0 2vh; }
  .story-card { width: min(66vw, 46svh); }
  .rail__lead { width: 72vw; }
  .event-card { border-radius: 50% / 22%; }
}
@media (max-height: 700px) and (max-width: 860px) {
  .event-card { padding-block: 1.6rem; }
  .event__title { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Double rose-foil rule with filigree corners. */
.foil-frame { position: absolute; inset: clamp(10px, 2.2vw, 26px); z-index: 2; pointer-events: none; }
.foil-frame::before, .foil-frame::after { content: ""; position: absolute; border: 1px solid var(--foil-soft); }
.foil-frame::before { inset: 0; }
.foil-frame::after { inset: 6px; border-color: var(--hair); }
.foil-frame i {
  position: absolute; width: clamp(54px, 8vw, 110px); aspect-ratio: 1; z-index: 1;
  background: url(../assets/svg/corner.svg) center / contain no-repeat;
  opacity: .68;
}
.foil-frame i:nth-child(1) { top: -2px; left: -2px; }
.foil-frame i:nth-child(2) { top: -2px; right: -2px; transform: scaleX(-1); }
.foil-frame i:nth-child(3) { bottom: -2px; left: -2px; transform: scaleY(-1); }
.foil-frame i:nth-child(4) { bottom: -2px; right: -2px; transform: scale(-1, -1); }
.page .foil-frame { z-index: 4; }

/* ornament: hairline, diamond, hairline */
.ornament {
  display: block; width: min(220px, 50vw); height: 14px; margin: .9rem auto;
  background:
    linear-gradient(var(--foil), var(--foil)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--foil), var(--foil)) right center / calc(50% - 14px) 1px no-repeat,
    radial-gradient(circle at 49% 43%, #fffaf4 0 2px, #d4a9ac 3px, var(--foil) 5px, transparent 5.5px) center / 20px 14px no-repeat;
}
.ornament--sm { display: inline-block; width: clamp(48px, 8vw, 90px); margin: 0 .6em; vertical-align: middle; }

/* Rose-ink script on pearl paper. */
.script.name, .event__title, .count-title, .story-title, .rsvp-title, .close__family, .with {
  color: var(--sc-accent); text-shadow: 0 1px 0 #fffaf4;
}
.with { display: flex; align-items: center; justify-content: center; }
.bismillah__ar { color: var(--sc-accent); text-shadow: 0 1px 0 #fffaf4; }
.event__insha, .story-card__year { color: var(--sc-ink-soft); }

/* Card and portrait double borders. */
.event-card { border-color: var(--foil-soft); outline-color: var(--hair); }
.event-card::before {
  content: ""; position: absolute; left: 50%; top: -1px; translate: -50% -50%;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #bd9693;
  background: radial-gradient(circle at 36% 30%, #fff8ed, #e6c4c2 68%, #aa7d83);
  box-shadow: 0 3px 9px #49303f30, inset 0 0 0 2px #fff6eb;
}
.couple__arch, .story-card__frame { border-color: var(--foil-soft); outline-color: var(--hair); }

/* stages sit on the same textured paper as the card */
.names-stage::after, .event-stage::after, .close-stage::after, .act-bismillah::after, .act-event--flow::after {
  content: ""; position: absolute; inset: 0; background: var(--paper); opacity: .4; mix-blend-mode: multiply; pointer-events: none; z-index: 0;
}
.act-bismillah, .act-event--flow { isolation: isolate; }

@media (max-width: 860px) {
  .foil-frame i { width: 54px; }
}

/* ===== watercolour artwork, used when assets/art/* exist =============== */
html.art-florals .floral-bed {
  background: var(--florals) center bottom / cover no-repeat;
  mix-blend-mode: multiply; height: clamp(170px, 30vw, 380px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}
.page .floral-bed, .names-stage .floral-bed { opacity: .58; }
.event-art.has-art {
  inset: 0; width: auto; aspect-ratio: auto; translate: none; bottom: 0;
  background-size: cover; background-position: center bottom; mix-blend-mode: multiply; opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}
.act-event--flow .event-art.has-art { position: absolute; }
.couple__arch.has-art img { mix-blend-mode: multiply; }
@media (max-width: 860px) {
  .names { padding-inline: 2.2rem; }
}
.event__addr, .invite-line { text-wrap: balance; }
.event__addr { max-width: 26rem; margin-inline: auto; }

[hidden] { display: none !important; }
.seal-stage.is-away .seal { pointer-events: none; }
.seal-stage.is-revealed .envelope { visibility: hidden; }
.seal-stage.is-copy-visible .bismillah { opacity: 1; }
.close__details {
  color: var(--champagne);
  font: 600 .9rem var(--sc-font-text);
  letter-spacing: .11em;
}
.seal:focus-visible, .close__details:focus-visible { outline: 2px solid #fff3d9; outline-offset: 4px; }
.couple-heading { margin: 0; font-size: inherit; }
.couple-heading .name { display: block; }
.couple-heading .with { margin-block: .2em; }
.couple-spread {
  position: relative;
  z-index: 3;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.35rem, 6vw, 5.5rem);
  background: var(--pearl);
  box-shadow: 0 18px 54px #49303f26;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.85rem, 3vw, 2.25rem);
  text-align: center;
}
.couple-story .script { font-size: clamp(2.45rem, 5.1vw, 4.75rem); color: var(--sc-accent); text-wrap: balance; }
.couple-spread .couple { margin: 0 auto; width: min(100%, 25rem); padding-bottom: 0; }
.couple-spread .couple--portraits { width: min(100%, 30rem); }
.couple-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2.6vw, 2rem);
  padding: .5rem;
}
.couple-portrait { margin: 0; min-width: 0; }
.couple-portrait__frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--foil);
  outline: 1px solid var(--foil-soft);
  outline-offset: 4px;
  border-radius: 100px 100px 12px 12px;
  background: var(--evening);
  box-shadow: 0 15px 30px -20px #2d1924a3;
}
.couple-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.couple-portrait figcaption { margin-top: .9rem; }
.couple-portrait__name {
  color: var(--sc-accent);
  font: 400 clamp(1.5rem, 3.5vw, 2.35rem) / 1.1 var(--script);
  text-wrap: balance;
}
.couple-portrait__parents {
  margin-top: .45rem;
  color: var(--sc-ink-soft);
  font-size: clamp(.95rem, 1vw + .65rem, 1.2rem);
  line-height: 1.25;
  text-wrap: pretty;
}
.act-save-date {
  --drive-duration: 3.15s;
  --save-date-car-start: -22;
  --save-date-car-end: 76;
  --save-date-heart-delay: var(--drive-duration);
}
.save-date-stage {
  display: grid;
  justify-items: center;
  background: linear-gradient(#f0e0e0bf, #f6ebe6ed), var(--jasmine) center / cover;
}
.save-date-stage.sc-stage { height: 100dvh; }
.save-date-lane {
  --verge-width: clamp(1.3rem, 8vw, 4.5rem);
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(.7rem, 2.6svh, 1.35rem);
  isolation: isolate;
  width: min(100%, 50rem);
  min-width: 0;
  padding: 1.25rem calc(var(--verge-width) + .5rem);
  overflow: hidden;
  background: var(--paper), radial-gradient(ellipse at 50% 35%, #f6dbb5, #deb586);
  box-shadow: 0 0 48px #49303f26;
}
.save-date-verges { position: absolute; inset: 0; z-index: -1; }
.save-date-verges::before, .save-date-verges::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: var(--verge-width);
  background: url(../assets/art/save-the-date-road.webp) 0 0 / max(420%, 12rem) auto repeat-y;
}
.save-date-verges::before { left: 0; border-right: 3px solid #f9e1bc; }
.save-date-verges::after { right: 0; border-left: 3px solid #f9e1bc; background-position: right top; }
.save-date-lane > .script {
  color: var(--sc-accent);
  font-size: clamp(2.45rem, 7.2vw, 4.6rem);
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px #fff8ee;
}
.save-date-drive {
  display: grid;
  justify-items: center;
}
.is-scroll-driven .save-date-lane { padding-bottom: clamp(3.25rem, 12dvh, 7rem); }
.is-scroll-driven .save-date-drive {
  position: absolute;
  inset: 0;
  z-index: 1;
  align-items: start;
  pointer-events: none;
  will-change: transform;
}
.save-date-car {
  width: min(100%, 8rem);
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(2px 5px 4px #4a2d2060);
}
.is-scroll-driven .save-date-car { width: 40%; height: 33%; }
.is-scroll-driven .save-date-drive { animation: save-date-drive var(--drive-duration) linear both paused; }
.is-scroll-driven .save-date-lane > .script { animation: save-date-lettering 1s linear both paused; }
.is-scroll-driven .save-date-details {
  animation: save-date-calendar-in 1s linear both paused;
}
.is-scroll-driven .save-date-heart-number { animation: save-date-number-ink .25s var(--save-date-heart-delay) ease-out both paused; }
.is-scroll-driven .save-date-heart-mark { animation: save-date-heart-stamp .55s var(--save-date-heart-delay) ease-out both paused; }
@media (max-height: 480px) {
  .save-date-stage.sc-stage .save-date-lane { padding-block: .4rem 3.4rem; gap: .3rem; }
  .save-date-stage.sc-stage .save-date-lane > .script { font-size: clamp(1.85rem, 8svh, 2.7rem); }
  .save-date-stage.sc-stage .save-date-details { padding-block: .45rem; }
  .save-date-stage.sc-stage .save-date-details .ornament { display: none; }
  .save-date-stage.sc-stage .save-date-calendar caption { padding-bottom: .12rem; font-size: 1.35rem; }
  .save-date-stage.sc-stage .save-date-calendar th { padding-bottom: .12rem; }
  .save-date-stage.sc-stage .save-date-calendar td { height: 1.2rem; font-size: .875rem; }
  .save-date-stage.sc-stage .save-date-heart { height: 1.45em; }
  .save-date-stage.sc-stage .save-date-details .btn { margin-top: .45rem; min-height: 2rem; padding-block: .3rem; }
}
@keyframes save-date-drive {
  from { transform: translate3d(0, calc(var(--save-date-car-start) * 1%), 0); }
  to { transform: translate3d(0, calc(var(--save-date-car-end) * 1%), 0); }
}
@keyframes save-date-lettering {
  from { opacity: 0; clip-path: inset(-.2em -.12em 100%); }
  to { opacity: 1; clip-path: inset(-.2em -.12em); }
}
@keyframes save-date-calendar-in {
  0% { clip-path: polygon(0 0, 100% 0, 100% 0, 82% 0, 67% 0, 49% 0, 30% 0, 14% 0, 0 0); visibility: hidden; }
  50% { clip-path: polygon(0 0, 100% 0, 100% 47%, 82% 50%, 67% 45%, 49% 49%, 30% 44%, 14% 50%, 0 46%); visibility: visible; }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 82% 100%, 67% 100%, 49% 100%, 30% 100%, 14% 100%, 0 100%); visibility: visible; }
}
@keyframes save-date-number-ink { from { color: var(--sc-ink); } to { color: #fff8ee; } }
@keyframes save-date-heart-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  65% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.save-date-details {
  position: relative;
  width: min(100%, 29rem);
  padding: clamp(.85rem, 3.2svh, 1.75rem) clamp(.65rem, 3.3vw, 2rem);
  text-align: center;
  background: radial-gradient(ellipse at center, #fff6e8 48%, #fff6e8eb 76%, #fff6e8c7 100%);
  border-radius: .7rem;
}
.save-date-day {
  display: block;
  color: var(--sc-accent);
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .045em;
}
.save-date-details .ornament { width: min(65%, 9rem); margin: .55rem auto .65rem; }
.save-date-calendar { width: 100%; max-width: 22rem; margin-inline: auto; table-layout: fixed; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.save-date-calendar caption { padding-bottom: .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--sc-accent); }
.save-date-calendar th {
  border-bottom: 1px solid var(--foil-soft);
  padding-bottom: .3rem;
  color: var(--sc-ink-soft);
  font-size: clamp(.68rem, 1.1vw, .8rem);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.save-date-calendar td { height: clamp(1.45rem, 5.3svh, 2.45rem); padding: 0; font-size: clamp(.95rem, 1.6vw, 1.2rem); }
.save-date-heart {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 1.8em;
  height: 1.8em;
  place-items: center;
  padding-bottom: .12em;
  color: #fff8ee;
  font-weight: 700;
}
.save-date-heart-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #943f58;
  font: 2.65em / 1 Georgia, serif;
}
.save-date-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.save-date-details .btn { margin-top: 1.1rem; }
.act-count {
  position: relative;
  isolation: isolate;
  color: var(--champagne);
  background: radial-gradient(ellipse at 50% 20%, #6e495a, var(--evening-deep) 83%);
  padding: clamp(1.75rem, 6vw, 5.65rem) var(--sc-gutter);
}
.act-count::before, .close-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--jasmine) center 35% / cover no-repeat;
  mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000);
  opacity: .24;
}
.count-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: clamp(.55rem, 1.5vw, 1.05rem);
  text-align: center;
  border: 1px solid #efc7a05e;
  background: linear-gradient(140deg, #754e5d70, #2b1a29ad 75%);
  box-shadow: 0 1.5rem 4rem #1b101c38;
}
.count-portrait {
  position: relative;
  margin: 0;
  border: 1px solid #efc7a070;
  background: #704857;
  aspect-ratio: 4 / 5;
}
.count-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.count-portrait::after {
  content: "";
  position: absolute;
  inset: .4rem;
  border: 1px solid #fff1df65;
  pointer-events: none;
}
.count-copy { min-width: 0; padding: clamp(1.1rem, 3vw, 3rem); }
.act-count .count-title { color: var(--champagne); text-shadow: none; font-size: clamp(2.3rem, 4.6vw, 4.75rem); text-wrap: balance; }
.count-sub { font-style: italic; margin-top: .35rem; color: #f6ded0; }
.count-ornament { width: min(35%, 9rem); opacity: .85; margin-block: 1.15rem .75rem; }
.count {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: clamp(.3rem, 1vw, .8rem) auto 0;
  padding-block: clamp(.85rem, 2.5vw, 1.45rem);
  border-block: 1px solid #e8b99570;
  background: linear-gradient(90deg, transparent, #f1c7a611, transparent);
}
.count__cell { position: relative; min-width: 0; padding-inline: .18rem; }
.count__cell + .count__cell::before {
  content: "";
  position: absolute;
  inset: .24rem auto .24rem 0;
  width: 1px;
  background: linear-gradient(transparent, #e8b99590, transparent);
}
.count__cell span {
  display: block;
  min-width: 0;
  font-size: clamp(1.75rem, 3.9vw, 3.45rem);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}
.count__cell:first-child span { color: #ffd6ad; }
.count__cell small { display: block; margin-top: .48rem; font-size: clamp(.59rem, 1.1vw, .84rem); letter-spacing: .085em; text-transform: uppercase; color: #f6ded0; }
@media (max-width: 720px) {
  .count-wrap { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
  .count-copy { padding: 1.45rem clamp(.4rem, 3vw, 1.5rem) 1.05rem; }
}
.event-stage {
  position: relative;
  padding: clamp(1.3rem, 5.8vw, 5.2rem) clamp(.6rem, 3vw, 2rem);
  background: linear-gradient(#ecdddfca, #ecdddfed), var(--jasmine) center / cover;
}
.invitation-card {
  position: relative; z-index: 1;
  width: min(100%, 35rem);
  padding: clamp(7.5rem, 30vw, 10rem) clamp(1.65rem, 7vw, 4.5rem) clamp(1.15rem, 4vw, 2rem);
  text-align: center;
  background: url(../assets/art/wedding-burgundy-frame.webp) center / 100% 100% no-repeat, #fcf3e8;
  border: 1px solid var(--foil-soft);
  box-shadow: 0 22px 60px -28px #49303f85;
}
.invitation-card__blessing {
  font: 700 clamp(1.35rem, 5.1vw, 2.2rem) / 1.4 var(--arabic);
  color: #812f47;
}
.invitation-card__translation { margin: .25rem auto 0; max-width: 37ch; color: var(--sc-ink-soft); font-size: clamp(.86rem, 2.8vw, 1.04rem); font-style: italic; line-height: 1.25; text-wrap: balance; }
.invitation-card .ornament { width: min(32vw, 8rem); margin: .24rem auto .45rem; }
.invitation-card__intro, .invitation-card__when, .invitation-card__venue {
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.invitation-card__intro { max-width: 33ch; margin-inline: auto; font-size: clamp(.81rem, 2.5vw, 1rem); line-height: 1.35; text-wrap: balance; }
.invitation-card__names { margin: .65rem auto .45rem; }
.invitation-card__names > span { display: block; color: #812f47; font-size: clamp(1.8rem, 7.35vw, 3.35rem); text-wrap: balance; }
.invitation-card__names > .invitation-card__and { font-size: clamp(1.3rem, 4.3vw, 2rem); color: var(--foil); margin-block: .05rem; }
.invitation-card__portraits { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 1.75rem); margin: .7rem auto 0; }
.invitation-card__portraits > .couple-portrait__frame { width: min(25vw, 8.65rem); }
.invitation-card__portraits > .couple-portrait__frame:only-child { width: min(42vw, 11rem); }
.invitation-card__portraits img { display: block; }
.invitation-card__portraits .couple-portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.invitation-card__couple { width: auto; max-width: 100%; height: clamp(10.5rem, 45vw, 15.5rem); aspect-ratio: 4 / 5; object-fit: contain; }
.invitation-card__when {
  width: min(100%, 24rem); margin: .65rem auto; padding-block: .32rem;
  border-block: 1px solid var(--foil-soft);
  font-size: clamp(.75rem, 2.4vw, .95rem);
}
.invitation-card__when.has-date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5.55rem, 1.15fr) minmax(0, 1fr); align-items: center; }
.invitation-card__date { display: grid; border-inline: 1px solid var(--foil-soft); padding-inline: .25rem; }
.invitation-card__day {
  color: #812f47;
  font: 600 clamp(2rem, 6.6vw, 2.85rem) / 1 var(--sc-font-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
.invitation-card__weekday, .invitation-card__time { padding-inline: .25rem; text-wrap: balance; }
.invitation-card__venue { font-size: clamp(.95rem, 2.8vw, 1.15rem); line-height: 1.3; text-wrap: balance; }
.invitation-card__address { max-width: 29rem; margin: .3rem auto 0; color: var(--sc-ink-soft); font-size: clamp(.91rem, 2.8vw, 1.12rem); line-height: 1.3; text-wrap: balance; }
.invitation-card__duas { margin-top: .5rem; color: var(--sc-ink-soft); font-size: clamp(.92rem, 2.8vw, 1.08rem); font-style: italic; }
.event-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .6rem; }
.event-actions .btn { margin-top: 0; padding: .45rem .8rem; letter-spacing: .085em; line-height: 1.15; }
.invitation-card .event-actions .btn:not(.btn--solid):not(:hover):not(:focus-visible) { background: #fff8ee; }
@media (max-width: 520px) {
  .event-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 18rem; margin-inline: auto; }
  .event-actions .btn { min-width: 0; padding-inline: .35rem; font-size: .7rem; letter-spacing: .04em; }
}
.close-stage { color: var(--champagne); background: radial-gradient(ellipse at 50% 35%, #765163, var(--evening-deep) 85%); }
.close-stage .floral-bed { opacity: .32; }
html.art-florals .close-stage .floral-bed { mix-blend-mode: screen; }
.close-stage .lace-top { opacity: .24; }
.close-stage :is(.close__await, .close__regards, .close__family) { color: var(--champagne); text-shadow: none; }
.close__details { display: inline-block; margin-top: 1rem; text-underline-offset: .28em; }
.rsvp-contact { margin-bottom: 1rem; }
@media (max-width: 860px) {
  .couple-spread { width: min(100%, 35rem); }
}
@media (max-width: 370px) {
  .count__cell small { letter-spacing: .045em; }
  .invitation-card { padding-inline: 1.5rem; }
  .invitation-card__when { letter-spacing: .035em; }
}
@media (max-height: 560px) {
  .names { padding-bottom: 3rem; }
  .name { font-size: clamp(2rem, 8.5svh, 3.9rem); }
}
.script { word-spacing: .14em; }
