@font-face {
  font-family: "Wedding Script";
  src: url("/assets/fonts/wedding-script.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aurora Script";
  src: url("/assets/fonts/aurora-script.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Serif";
  src: url("/assets/fonts/editorial-serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Serif";
  src: url("/assets/fonts/editorial-serif.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Serif";
  src: url("/assets/fonts/editorial-serif-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Embossed Monogram";
  src: url("/assets/fonts/monogram.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2f2f2f;
  --paper: #fdfcf9;
  --paper-shadow: #eeeae4;
  --line: rgba(47, 47, 47, 0.25);
  --burgundy: #7a1020;
  --serif: "Editorial Serif", "Cormorant Garamond", Georgia, serif;
  --script: "Wedding Script", "Cormorant Garamond", cursive;
  --script-cyr: "Marck Script", "Cormorant Garamond", cursive;
  --sans: "Tenor Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper) url("/assets/reference/paper-texture.png") center top / 1440px auto repeat;
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
  overflow-x: hidden;
}

body.intro-active { overflow: hidden; }

button,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 300;
  left: 16px;
  top: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: none; }

.paper-section {
  background-color: var(--paper);
  background-image: url("/assets/reference/paper-texture.png");
  background-position: center top;
  background-size: 1440px auto;
}

.microcopy {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(0.92rem, 1.3vw, 1.15rem);
  font-style: normal;
  letter-spacing: 0.08em;
}

.display-script,
.signature-script,
.opening__heading h1 {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.calligraphy {
  margin: 0 0 0.55em;
  font-family: var(--script-cyr);
  font-size: clamp(3.4rem, 6.7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.92;
}

.opening-page .opening-screen__heading h1,
.invitation-content-page .hero .display-script,
.invitation-content-page .signature-script,
.details-page .signature-script,
.invitation-content-page .letter__copy .calligraphy,
.invitation-content-page .music .calligraphy,
.invitation-content-page .details-intro .calligraphy,
.invitation-content-page .rsvp-scene__copy h2,
.invitation-content-page .love-story .calligraphy,
.invitation-content-page .countdown-section .calligraphy {
  font-family: "Aurora Script", var(--script-cyr);
  font-style: normal;
  font-weight: 400;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover { opacity: 0.62; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

/* Opening scene */
.opening {
  position: fixed;
  z-index: 200;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper) url("/assets/reference/paper-texture.png") center / 1440px auto repeat;
  transition: opacity 0.8s ease 0.55s, visibility 0s linear 1.4s;
}

.opening__stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  isolation: isolate;
}

.opening__heading {
  position: absolute;
  z-index: 5;
  top: clamp(24px, 4.3vh, 54px);
  left: 50%;
  width: min(92vw, 780px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  text-align: center;
  animation: opening-title 1.25s cubic-bezier(.2,.7,.2,1) both 0.28s;
}

.opening__heading h1 {
  margin: 0.08em 0 0;
  font-size: clamp(3.45rem, 7.2vw, 7.7rem);
  line-height: 0.92;
}

.opening-envelope {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: clamp(-32px, -3.5vh, -12px);
  width: min(55vw, 690px);
  min-width: 440px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  filter: drop-shadow(0 20px 30px rgba(52, 45, 38, 0.1));
  animation: envelope-rise 1.5s cubic-bezier(.18,.72,.2,1) both 0.62s;
  transition: filter 0.3s ease;
}

.opening-envelope:hover { filter: drop-shadow(0 26px 34px rgba(52, 45, 38, 0.17)); }
.opening-envelope__paper { width: 100%; }

.opening-envelope__seal {
  position: absolute;
  left: 50%;
  top: 55%;
  width: clamp(64px, 7vw, 96px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: rgba(106, 100, 93, 0.66);
}

.opening-envelope__seal img { grid-area: 1 / 1; width: 100%; }

.opening-envelope__seal span {
  grid-area: 1 / 1;
  transform: translateY(-2px);
  font-family: var(--script);
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  line-height: 0.68;
}

.opening__hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  animation: hint-in 0.8s ease both 1.8s, hint-pulse 2.8s ease-in-out infinite 2.8s;
}

.opening-prop {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.opening-prop--photo {
  left: clamp(-72px, -3vw, -24px);
  bottom: clamp(20px, 8vh, 90px);
  width: min(23vw, 315px);
  aspect-ratio: 4 / 5;
  padding: clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) clamp(28px, 3vw, 45px);
  background: #f7f4ee;
  box-shadow: 0 18px 38px rgba(37, 33, 29, 0.13);
  transform: rotate(-9deg);
  animation: photo-arrive 1.3s cubic-bezier(.2,.72,.22,1) both 0.15s;
}

.opening-prop--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.92);
}

.opening-prop--tray {
  right: clamp(-180px, -8vw, -80px);
  top: clamp(80px, 15vh, 150px);
  width: min(35vw, 520px);
  transform: rotate(8deg);
  animation: tray-arrive 1.35s cubic-bezier(.2,.72,.22,1) both 0.05s;
}

.opening-prop--tray img { width: 100%; }

.opening-prop__monogram {
  position: absolute;
  inset: 43% 0 auto;
  font-family: var(--script);
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  color: rgba(64, 62, 58, 0.46);
  text-align: center;
}

.opening.is-opening .opening-envelope {
  animation: envelope-open 0.72s cubic-bezier(.55,.02,.78,.28) both;
}

.opening.is-opening .opening-prop--photo { animation: photo-leave 0.7s ease both; }
.opening.is-opening .opening-prop--tray { animation: tray-leave 0.7s ease both; }
.opening.is-opening .opening__heading,
.opening.is-opening .opening__hint { animation: fade-away 0.42s ease both; }

.opening.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes opening-title {
  from { opacity: 0; transform: translate(-50%, -16px); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
}

@keyframes envelope-rise {
  from { opacity: 0; transform: translate(-50%, 28vh) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes photo-arrive {
  from { opacity: 0; transform: translate(-28vw, 16vh) rotate(-18deg); }
  to { opacity: 1; transform: translate(0, 0) rotate(-9deg); }
}

@keyframes tray-arrive {
  from { opacity: 0; transform: translate(32vw, -14vh) rotate(18deg); }
  to { opacity: 1; transform: translate(0, 0) rotate(8deg); }
}

@keyframes hint-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hint-pulse { 0%, 100% { opacity: 0.58; } 50% { opacity: 1; } }
@keyframes envelope-open { to { opacity: 0; transform: translate(-50%, 15vh) scale(1.08); filter: blur(5px); } }
@keyframes photo-leave { to { opacity: 0; transform: translate(-22vw, 12vh) rotate(-18deg); } }
@keyframes tray-leave { to { opacity: 0; transform: translate(24vw, -12vh) rotate(18deg); } }
@keyframes fade-away { to { opacity: 0; filter: blur(7px); } }

/* Reusable embossed monogram */
.embossed-monogram {
  position: relative;
  width: clamp(150px, 15vw, 215px);
  aspect-ratio: 0.74;
  container-type: inline-size;
  display: grid;
  place-items: center;
  border: clamp(2px, 0.25vw, 4px) solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--burgundy);
  box-shadow:
    2px 4px 8px rgba(75, 66, 57, 0.14),
    -2px -3px 7px rgba(255, 255, 255, 0.95),
    inset 2px 3px 6px rgba(75, 66, 57, 0.09),
    inset -2px -3px 6px rgba(255, 255, 255, 0.92);
  text-shadow: 1px 2px 3px rgba(80, 71, 62, 0.18), -1px -1px 2px white;
}

.embossed-monogram::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  box-shadow: inset 1px 2px 3px rgba(75, 66, 57, 0.08);
}

.embossed-monogram span {
  position: absolute;
  left: 46%;
  font-family: "Embossed Monogram", var(--script);
  font-size: 43cqi;
  line-height: 1;
}

.embossed-monogram span:first-child {
  top: 48%;
  transform: translate(-55%, -50%);
}

.embossed-monogram span:last-child {
  top: 59%;
  transform: translate(-45%, -50%);
}

.embossed-monogram--small { width: clamp(100px, 10vw, 145px); }

/* Invitation */
#invitation {
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.invitation-open #invitation { opacity: 1; }

#wedding-title { color: var(--ink); }
#details-page-title { color: var(--burgundy); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(42px, 5vh, 74px) 22px 54px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-items: start;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.hero .embossed-monogram { margin-top: 0; }

.hero__eyebrow {
  margin-top: clamp(30px, 5vh, 58px);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
}

.hero .display-script {
  margin: clamp(18px, 4vh, 42px) 0 0;
  font-size: clamp(4.6rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.8;
  opacity: 0;
}

.hero__meta {
  margin-top: clamp(30px, 6vh, 70px);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-style: normal;
  letter-spacing: 0.08em;
  opacity: 0;
}

.hero__meta p { margin: 0; }
.scroll-cue {
  align-self: end;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
}

body.invitation-open .hero .embossed-monogram { animation: hero-mark 1.05s ease both 0.22s; }
body.invitation-open .hero__eyebrow { animation: blur-in 0.9s ease both 0.62s; }
body.invitation-open .hero .display-script { animation: blur-in 1.15s ease both 0.86s; }
body.invitation-open .hero__meta { animation: blur-in 0.95s ease both 1.18s; }
body.invitation-open .scroll-cue { animation: hint-in 0.9s ease both 1.7s; }

@keyframes hero-mark {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); filter: blur(9px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes blur-in {
  from { opacity: 0; transform: translateY(13px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.letter {
  min-height: 100svh;
  padding: clamp(76px, 10vw, 150px) max(28px, 7vw);
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 135px);
}

.portrait-frame {
  position: relative;
  justify-self: end;
  width: min(43vw, 575px);
  aspect-ratio: 1173 / 1600;
}

.portrait-frame__photo {
  position: absolute;
  inset: 8.8% 10.6%;
  width: 78.8%;
  height: 82.4%;
  object-fit: cover;
  clip-path: polygon(31% 0, 69% 0, 77% 7%, 93% 7%, 93% 13%, 100% 18%, 100% 82%, 93% 87%, 93% 93%, 77% 93%, 69% 100%, 31% 100%, 23% 93%, 7% 93%, 7% 87%, 0 82%, 0 18%, 7% 13%, 7% 7%, 23% 7%);
  filter: grayscale(1) contrast(0.94);
}

.portrait-frame__photo--color {
  filter: none;
}

.portrait-frame__ornament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.letter__copy {
  max-width: 670px;
  text-align: center;
}

.letter__copy p { margin: 0 0 1.3em; }
.letter__copy .signature-script { margin: 0.12em 0 0; }

.signature-script {
  font-size: clamp(2.7rem, 5.5vw, 5.3rem);
  line-height: 0.9;
}

.music {
  min-height: 95svh;
  padding: clamp(80px, 10vw, 140px) 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.music-disc {
  position: relative;
  width: min(390px, 70vw);
  aspect-ratio: 1;
  margin: 0 0 clamp(48px, 7vw, 78px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 7px 6px rgba(50, 47, 44, 0.2));
}

.music-disc > img { width: 100%; height: 100%; }
.music-disc.is-playing > img { animation: spin 12s linear infinite; }

.music-disc__button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  z-index: 3;
}

.music-disc__icon { font-family: Georgia, serif; font-size: clamp(1.5rem, 3.5vw, 2.85rem); line-height: 1; }
.music-disc.is-playing .music-disc__icon { animation: note-pulse 1.35s ease-in-out infinite; }
.music .calligraphy { margin-bottom: 0.45em; }
.music__copy { max-width: 650px; margin: 0; }
.music__status { margin: 1.5rem 0 0; font-size: 0.8rem; font-style: normal; opacity: 0.62; }
.music__status a { color: inherit; text-underline-offset: .18em; }
.music__audio { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes note-pulse { 50% { transform: scale(1.08); } }

.cinematic-photo {
  position: relative;
  height: min(76svh, 880px);
  margin: 0;
  overflow: hidden;
  background: #282828;
}

.cinematic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: grayscale(1) contrast(0.92);
}

.cinematic-photo figcaption {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: white;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details-intro {
  min-height: 70svh;
  padding: clamp(80px, 11vw, 160px) 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.narrow-copy { width: min(720px, 100%); }
.narrow-copy > p:last-of-type { max-width: 650px; margin: 0 auto; }
.narrow-copy .microcopy { margin-bottom: 1.8rem; }

.rsvp-collage {
  position: relative;
  height: clamp(760px, 89.4vw, 1144px);
  padding: 0;
  overflow: hidden;
  background: #d7d7d7;
  isolation: isolate;
}

.rsvp-collage__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}

.rsvp-scene__background {
  position: absolute;
  z-index: 0;
  top: -3%;
  left: -2.5%;
  width: 105%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9);
  transform: translateX(-4.5%);
}

.rsvp-scene__layer,
.rsvp-scene__oval {
  position: absolute;
  left: 50%;
  will-change: transform;
}

.rsvp-scene__tray {
  z-index: 1;
  top: 48.7%;
  width: min(70.7vw, 905px);
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.75);
  filter: drop-shadow(0 22px 28px rgba(34, 31, 28, 0.18));
}

.rsvp-scene__tray img,
.rsvp-scene__envelope img,
.rsvp-scene__seal img { width: 100%; }

.rsvp-scene__envelope {
  z-index: 3;
  top: 31.8%;
  left: 53%;
  width: min(42.3vw, 541px);
  transform: translate(-50%, -50%) scale(0.75);
  filter: drop-shadow(0 18px 25px rgba(45, 41, 36, 0.12));
}

.rsvp-scene__oval {
  z-index: 4;
  top: 64.3%;
  left: 47.7%;
  width: min(46.1vw, 590px);
  aspect-ratio: 0.87;
  transform: translate(-50%, -50%) scale(0.75);
}

.rsvp-scene__lace,
.rsvp-scene__paper,
.rsvp-scene__floral,
.rsvp-scene__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-scene__lace { width: 100%; height: 100%; object-fit: fill; }
.rsvp-scene__paper { width: 68.5%; height: 72.5%; object-fit: fill; }
.rsvp-scene__floral { width: 66.6%; height: 70.8%; object-fit: fill; }

.rsvp-scene__copy {
  z-index: 2;
  width: 60%;
  text-align: center;
}

.rsvp-scene__copy h2 {
  margin: 0;
  font-family: var(--script-cyr);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 0.78;
}

.rsvp-scene__copy p {
  margin: clamp(10px, 1.4vw, 20px) 0 0;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.4vw, 1.18rem);
  font-style: normal;
  letter-spacing: 0.08em;
}

.rsvp-scene__copy span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rsvp-scene__seal {
  z-index: 5;
  top: 31.8%;
  left: 53%;
  width: min(7.7vw, 98px);
  transform: translate(-50%, -50%) scale(0.75);
}

.rsvp-collage.is-scene-visible .rsvp-scene__background {
  animation: rsvp-background-arrive 1.18s cubic-bezier(.2, .72, .24, 1) both;
}

.rsvp-collage.is-scene-visible .rsvp-scene__tray {
  animation: rsvp-tray-arrive 1.02s cubic-bezier(.18, .78, .2, 1) 0.08s both;
}

.rsvp-collage.is-scene-visible .rsvp-scene__envelope,
.rsvp-collage.is-scene-visible .rsvp-scene__seal {
  animation: rsvp-layer-arrive 1.02s cubic-bezier(.18, .78, .2, 1) 0.08s both;
}

.rsvp-collage.is-scene-visible .rsvp-scene__oval {
  animation: rsvp-layer-arrive 1.02s cubic-bezier(.18, .78, .2, 1) 0.08s both;
}

@keyframes rsvp-background-arrive {
  from { transform: translateX(-4.5%); }
  to { transform: translateX(0); }
}

@keyframes rsvp-tray-arrive {
  from { transform: translate(-50%, -50%) rotate(-90deg) scale(0.75); }
  to { transform: translate(-50%, -50%) rotate(-90deg) scale(1); }
}

@keyframes rsvp-layer-arrive {
  from { transform: translate(-50%, -50%) scale(0.75); }
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes rsvp-background-arrive-mobile {
  from { transform: translateX(-54.5%); }
  to { transform: translateX(-50%); }
}

.rsvp-collage__link:hover .rsvp-scene__copy span { text-decoration: underline; text-underline-offset: 0.35em; }

.love-story {
  min-height: 105svh;
  padding: clamp(72px, 9vw, 130px) 24px clamp(90px, 12vw, 180px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.love-story .calligraphy { margin-bottom: clamp(40px, 6vw, 72px); }

.video-oval {
  position: relative;
  width: min(780px, 86vw);
  aspect-ratio: 1.43;
  display: grid;
  place-items: center;
}

.video-oval video {
  width: 86%;
  height: 79%;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
}

.video-oval__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.love-story__copy { width: min(750px, 100%); margin-top: clamp(42px, 6vw, 74px); }
.love-story__copy p { margin: 0 0 1.5em; }

.schedule,
.dress-code,
.location,
.countdown-section {
  padding: clamp(80px, 11vw, 160px) max(22px, 7vw);
}

.schedule {
  min-height: 95svh;
  display: grid;
  justify-items: center;
  align-content: center;
}

.section-heading { text-align: center; }
.section-heading .microcopy { margin-bottom: 1.7rem; }

.timeline {
  width: min(820px, 100%);
  margin: clamp(35px, 6vw, 70px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 36px;
  align-items: start;
  padding: 23px 4px;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: normal;
}

.timeline span { display: grid; gap: 2px; }
.timeline strong { font-size: 1.25rem; font-weight: 400; }
.timeline small { font-size: 0.95rem; opacity: 0.72; }

.dress-code {
  min-height: 90svh;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.palette-groups {
  width: min(800px, 100%);
  margin-top: clamp(44px, 7vw, 78px);
  display: grid;
  gap: 30px;
}

.palette-group h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(6px, 1.2vw, 14px);
}

.palette-row span {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 5px 14px rgba(30,30,30,0.07);
}

.location {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.location__copy { text-align: center; }
.location__copy .microcopy { margin-bottom: 1.6rem; }
.location__copy .calligraphy { font-size: clamp(3.1rem, 5.7vw, 5.8rem); }
.location__copy address { font-style: normal; }

.map-shell {
  position: relative;
  min-height: 570px;
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid rgba(47,47,47,0.18);
  background: rgba(255,255,255,0.38);
  box-shadow: 0 24px 48px rgba(49, 44, 38, 0.09);
}

.map-shell iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
  filter: grayscale(1) contrast(0.92);
}

.countdown-section {
  min-height: 72svh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.countdown-section .calligraphy { margin-top: 1.7rem; }

.countdown {
  margin-top: clamp(35px, 6vw, 70px);
  display: flex;
  gap: clamp(26px, 6vw, 88px);
}

.countdown span { display: grid; gap: 4px; min-width: 80px; }
.countdown strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.countdown small { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; }

footer.paper-section {
  min-height: 72svh;
  padding: clamp(80px, 12vw, 170px) 24px 70px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

footer .signature-script { margin: clamp(28px, 5vw, 60px) 0 12px; }
footer p { margin: 0; }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.68,.2,1), filter 1s ease;
}

.reveal--left { transform: translate(-42px, 18px) rotate(-2deg); }
.reveal--right { transform: translate(42px, 18px) rotate(2deg); }
.reveal--scale { transform: scale(0.91); filter: blur(5px); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* RSVP page */
.rsvp-page { min-height: 100svh; }

.rsvp-hero {
  min-height: 100svh;
  padding: 30px 24px clamp(80px, 10vw, 140px);
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.back-link {
  justify-self: center;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.rsvp-hero__title {
  margin: clamp(70px, 10vw, 130px) 0 24px;
  font-family: var(--script-cyr);
  font-size: clamp(4.2rem, 8.5vw, 8.2rem);
  font-weight: 400;
  line-height: 0.9;
}

.rsvp-hero__script { margin: 0 0 28px; font-family: var(--script-cyr); font-size: clamp(2rem, 4vw, 3.9rem); }
.rsvp-page .rsvp-hero__title,
.rsvp-page .rsvp-hero__script,
.rsvp-page .rsvp-form-wrap > .calligraphy {
  font-family: "Aurora Script", var(--script-cyr);
  font-style: normal;
  font-weight: 400;
}
.rsvp-hero__copy { max-width: 700px; margin: 0; }
.rsvp-hero__deadline { margin: 1.5rem 0 0; font-style: normal; }

.rsvp-form-wrap { width: min(820px, 100%); margin-top: clamp(65px, 9vw, 120px); }

.rsvp-form__intro {
  width: min(700px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 26px;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid rgba(47,47,47,0.2);
  background: rgba(255,255,255,0.38);
  box-shadow: 0 24px 55px rgba(44, 40, 35, 0.08);
  text-align: left;
}

.form-field,
.rsvp-form fieldset { min-width: 0; }
.form-field--wide,
.rsvp-form fieldset,
.submit-button,
.form-note,
.form-status,
.honeypot { grid-column: 1 / -1; }
.rsvp-form label,
.rsvp-form legend { display: block; font-size: 0.96rem; }

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.rsvp-form textarea { resize: vertical; }
.rsvp-form fieldset { margin: 0; padding: 0; border: 0; }
.rsvp-form__attendee-fields:not([hidden]) { display: grid; row-gap: inherit; }
.rsvp-form legend { margin-bottom: 12px; }
.choice { display: flex !important; align-items: center; gap: 10px; margin: 9px 0; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.choice-grid__column { display: grid; }

.submit-button {
  min-height: 56px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover { transform: translateY(-2px); }
.submit-button:disabled { opacity: 0.54; cursor: wait; transform: none; }
.form-note,
.form-status { margin: 0; font-size: 0.78rem; }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.is-success { color: #345d24; }
.form-status.is-error { color: #761c26; }
.honeypot { position: absolute; left: -9999px; }

.rsvp-footer { padding: 65px 24px; text-align: center; }

@media (max-width: 1000px) {
  .opening-prop--photo { left: -70px; width: 27vw; }
  .opening-prop--tray { right: -160px; width: 43vw; }
  .opening-envelope { width: min(68vw, 680px); }

  .letter {
    grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1fr);
    gap: 45px;
    padding-inline: max(24px, 4vw);
  }

  .location { grid-template-columns: 1fr; }
  .location__copy { width: min(680px, 100%); justify-self: center; }
  .map-shell { width: min(900px, 100%); justify-self: center; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .opening__stage { min-height: 590px; }
  .opening__heading { top: 24px; }
  .opening__heading h1 { font-size: clamp(3.15rem, 14vw, 5.4rem); }
  .opening-prop--photo { left: -58px; bottom: 84px; width: 34vw; opacity: 0.84; }
  .opening-prop--tray { right: -135px; top: auto; bottom: 75px; width: 51vw; opacity: 0.76; }
  .opening-envelope { bottom: 46px; width: min(94vw, 600px); min-width: 0; }
  .opening__hint { bottom: 19px; width: 90%; }

  .hero { min-height: 100svh; padding-top: 42px; }
  .hero .display-script { font-size: clamp(4rem, 19vw, 7.2rem); line-height: 0.86; }
  .hero__meta { margin-top: 46px; }

  .letter {
    grid-template-columns: 1fr;
    padding: 80px 22px 100px;
    gap: 55px;
  }
  .portrait-frame { justify-self: center; width: min(82vw, 480px); }
  .letter__copy { justify-self: center; }

  .cinematic-photo { height: 58svh; }

  .rsvp-collage { height: 900px; }
  .rsvp-scene__background { top: 0; left: 50%; width: 1260px; transform: translateX(-54.5%); }
  .rsvp-collage.is-scene-visible .rsvp-scene__background { animation-name: rsvp-background-arrive-mobile; }
  .rsvp-scene__tray { width: 800px; }
  .rsvp-scene__envelope { width: 490px; }
  .rsvp-scene__oval { width: 535px; }
  .rsvp-scene__seal { width: 88px; }

  .love-story { padding-inline: 18px; }
  .video-oval { width: 98vw; }

  .schedule,
  .dress-code,
  .location,
  .countdown-section { padding-inline: 20px; }
  .timeline li { grid-template-columns: 75px 1fr; gap: 16px; }
  .timeline small { line-height: 1.3; }
  .map-shell { min-height: 440px; padding: 8px; }
  .map-shell iframe { min-height: 420px; }
  .countdown { gap: 13px; }
  .countdown span { min-width: 68px; }

  .rsvp-hero { padding-inline: 18px; }
  .rsvp-form { grid-template-columns: 1fr; padding: 26px 18px; }
  .form-field--wide,
  .rsvp-form fieldset,
  .submit-button,
  .form-note,
  .form-status { grid-column: auto; }
}

@media (max-width: 460px) {
  .opening-prop--photo { display: none; }
  .opening-prop--tray { width: 62vw; right: -145px; opacity: 0.5; }
  .opening-envelope { bottom: 72px; width: 108vw; }
  .hero .embossed-monogram { width: 128px; }
  .hero .display-script { font-size: clamp(3.5rem, 21vw, 5.5rem); }
  .calligraphy { font-size: clamp(3rem, 15vw, 4.9rem); }
  .rsvp-collage { height: 830px; }
  .rsvp-scene__tray { width: 720px; }
  .rsvp-scene__envelope { width: 430px; left: 55%; }
  .rsvp-scene__oval { width: 470px; left: 45%; }
  .rsvp-scene__seal { width: 78px; left: 55%; }
  .rsvp-scene__copy h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .palette-row { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Details page */
.details-page { background-color: var(--paper); }
.details-page address { font-style: normal; }

.details-hero {
  position: relative;
  min-height: clamp(520px, 72svh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  isolation: isolate;
  background: #3f3f3f url("/assets/versal-estate.webp") center 46% / cover no-repeat;
}

.details-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -3px;
  background: inherit;
  filter: grayscale(1) contrast(0.88) brightness(0.62);
}

.details-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.2), rgba(12, 12, 12, 0.16) 55%, rgba(12, 12, 12, 0.34));
}

.details-back {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.details-back:hover { opacity: 0.72; }

.details-hero__content {
  width: min(920px, 90vw);
  text-align: center;
}

.details-hero__content h1,
.details-section-title,
.details-rsvp__card h2 {
  font-family: "Aurora Script", var(--script-cyr);
  font-style: normal;
  font-weight: 400;
}

.details-hero__content h1 {
  margin: 0.08em 0 0.12em;
  font-size: clamp(4.6rem, 9vw, 9.4rem);
  line-height: 0.92;
}

.details-hero__content > p:last-child {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: normal;
  letter-spacing: 0.07em;
}

.details-section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(4rem, 7vw, 7.1rem);
  line-height: 0.95;
}

.details-venues { padding: 90px max(24px, 7vw) 120px; }

.details-venues__grid {
  width: min(1080px, 100%);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 9vw, 125px);
}

.details-venues__grid--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.details-venue { text-align: center; }

.details-venue__portrait {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 0.74;
  margin: 0 auto 36px;
}

.details-venue__photo,
.details-venue__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.details-venue__photo {
  inset: 6.8% auto auto 7.4%;
  width: 85.2%;
  height: 86.4%;
  object-fit: cover;
  filter: none;
  border-radius: 50% 50% 46% 46% / 17% 17% 13% 13%;
}

.details-venue__frame { z-index: 1; object-fit: fill; }

.details-venue h3,
.details-stay__card h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.details-venue p,
.details-venue address {
  margin: 0.32rem 0;
}

.details-venue address { min-height: 4.4em; }

.details-button {
  display: inline-flex;
  min-width: min(100%, 312px);
  min-height: 55px;
  margin-top: 1.3rem;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.details-button:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: white;
}

.details-timeline { padding: 100px 24px 130px; }

.details-timeline__frame {
  width: min(690px, 92vw);
  margin: 55px auto 0;
  padding: 56px 64px;
  border: 1px solid rgba(47, 47, 47, 0.22);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7), inset 0 0 0 7px rgba(47, 47, 47, 0.08), 0 8px 30px rgba(68, 57, 45, 0.04);
  clip-path: polygon(34px 0, calc(100% - 34px) 0, 100% 34px, 100% calc(100% - 34px), calc(100% - 34px) 100%, 34px 100%, 0 calc(100% - 34px), 0 34px);
}

.details-timeline ol { margin: 0; padding: 0; list-style: none; }

.details-timeline li {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 28px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.details-timeline li:last-child { border-bottom: 0; }
.details-timeline time { font-weight: 700; letter-spacing: 0.08em; }
.details-timeline strong { display: block; font-weight: 400; font-style: normal; }
.details-timeline small { display: block; margin-top: 0.15rem; color: rgba(47, 47, 47, 0.68); font-size: 0.78rem; }

.details-stay { padding: 100px max(24px, 7vw) 130px; }

.details-intro-copy {
  width: min(640px, 100%);
  margin: 38px auto 0;
  text-align: center;
}

.details-stay__grid {
  width: min(940px, 100%);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 8vw, 100px);
}

.details-stay__card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.details-stay__card p { margin: 0.7rem 0 0; }

.details-dress {
  padding: 110px max(24px, 7vw) 125px;
  text-align: center;
}

.details-dress__copy {
  width: min(700px, 100%);
  margin: 0 auto;
}

.details-dress__copy p { margin: 38px auto 0; }

.details-dress__swatches {
  width: min(1040px, 100%);
  margin: 58px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.details-dress__swatches span {
  width: clamp(68px, 7.4vw, 105px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 47, 47, 0.08);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 9px 20px rgba(45, 40, 35, 0.08);
}

.details-faq { padding: 100px max(24px, 7vw) 135px; }

.details-faq__grid {
  --faq-column-gap: 48px;
  width: min(1050px, 100%);
  margin: 62px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 55px var(--faq-column-gap);
}

.details-faq__grid > article { flex-basis: calc((100% - 2 * var(--faq-column-gap)) / 3); }
.details-faq__grid > .details-faq__contact { flex-basis: 100%; }
.details-faq article { text-align: center; }
.details-faq h3 { margin: 0 0 0.75rem; color: var(--burgundy); font-size: 1.2rem; }
.details-faq p { margin: 0; font-size: 0.94rem; }

.details-rsvp {
  position: relative;
  min-height: clamp(680px, 100svh, 960px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #999 url("/assets/versal-ceremony.png") center / cover no-repeat;
}

.details-rsvp::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -3px;
  background: inherit;
  filter: grayscale(1) contrast(0.84) brightness(0.9);
}

.details-rsvp__wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.36);
}

.details-rsvp__envelope {
  position: relative;
  width: min(670px, 82vw);
  filter: drop-shadow(0 26px 38px rgba(54, 48, 42, 0.16));
}

.details-rsvp__envelope > img { width: 100%; }

.details-rsvp__card {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 66%;
  min-height: 47%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  border: 1px solid rgba(47, 47, 47, 0.12);
  background: var(--paper) url("/assets/reference/paper-texture.png") center / 960px auto;
  text-align: center;
}

.details-rsvp__card h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
}

.details-rsvp__card p { margin: 1.2rem 0 0; font-style: normal; }
.details-rsvp__card .details-button { margin-top: 1.4rem; min-width: 230px; }

.details-footer {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 54px 24px 62px;
  text-align: center;
}

.details-footer .signature-script { margin: 0; font-size: clamp(3.4rem, 6vw, 6rem); }

@media (max-width: 900px) {
  .details-venues__grid,
  .details-stay__grid { gap: 45px; }
  .details-faq__grid > article:not(.details-faq__contact) {
    flex-basis: calc((100% - var(--faq-column-gap)) / 2);
  }
}

@media (max-width: 680px) {
  .details-hero { min-height: 72svh; background-position: 55% center; }
  .details-hero__content h1 { font-size: clamp(4.2rem, 20vw, 6.4rem); }
  .details-section-title { font-size: clamp(3.6rem, 17vw, 5.5rem); }

  .details-venues,
  .details-timeline,
  .details-stay,
  .details-dress,
  .details-faq { padding-inline: 20px; }

  .details-venues__grid,
  .details-stay__grid { grid-template-columns: 1fr; }
  .details-venues__grid { gap: 80px; }
  .details-venue__portrait { width: min(86vw, 390px); }
  .details-stay__grid { gap: 26px; }
  .details-faq__grid { row-gap: 42px; }
  .details-faq__grid > article:not(.details-faq__contact) { flex-basis: 100%; }

  .details-venue address { min-height: 0; }

  .details-timeline__frame { padding: 38px 25px; }
  .details-timeline li { grid-template-columns: 70px 1fr; gap: 18px; }
  .details-timeline small { line-height: 1.35; }

  .details-dress__swatches { gap: 10px; }
  .details-dress__swatches span { width: clamp(58px, 18vw, 78px); }

  .details-rsvp { min-height: 720px; }
  .details-rsvp__envelope { width: 112vw; }
  .details-rsvp__card { top: -2%; width: 62%; min-height: 50%; padding: 22px 14px; }
  .details-rsvp__card h2 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .details-rsvp__card p { font-size: 0.86rem; }
  .details-rsvp__card .details-button { min-width: 0; width: 100%; font-size: 0.62rem; }
}

/* --------------------------------------------------------------------------
   Replica layout v2 — section proportions and pacing from the Canva original
   -------------------------------------------------------------------------- */

.opening-page,
.invitation-content-page,
.details-page,
.rsvp-page {
  background: var(--paper) url("/assets/reference/paper-texture.png") center top / 1280px auto repeat;
}

/* Standalone envelope cover */
.opening-screen {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  row-gap: clamp(16px, 2.8svh, 30px);
  min-height: 100svh;
  padding: clamp(24px, 5svh, 52px) 16px;
  overflow: clip;
  text-align: center;
  isolation: isolate;
}

.opening-screen__mark {
  width: min(clamp(86px, 20vw, 145px), 14svh);
  animation: cover-mark-in 1.15s ease both 0.15s;
}

.opening-screen__heading {
  animation: cover-copy-in 1.15s ease both 0.45s;
}

.opening-screen__heading .microcopy {
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.055em;
}

.opening-screen__heading h1 {
  margin: 0.24em 0 0;
  font-family: var(--script);
  font-size: clamp(2.25rem, min(13vw, 11svh), 7.25rem);
  font-weight: 400;
  line-height: 1;
}

.opening-screen__date { display: none; }

.opening-screen__envelope {
  position: relative;
  width: min(51vw, 650px, 62svh);
  color: inherit;
  text-decoration: none;
  filter: drop-shadow(0 24px 32px rgba(60, 53, 46, 0.14));
  animation: cover-envelope-in 1.35s cubic-bezier(.18,.76,.22,1) backwards 0.7s;
  transition: filter .3s ease, transform .3s ease;
}

.opening-screen__envelope:hover {
  transform: translateY(-7px);
  filter: drop-shadow(0 28px 34px rgba(60, 53, 46, 0.17));
}

.opening-screen__envelope > img { width: 100%; }

.opening-screen__seal {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 14%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: rgba(88, 82, 76, 0.56);
}

.opening-screen__seal img,
.opening-screen__seal b { grid-area: 1 / 1; }
.opening-screen__seal b { font-family: var(--script); font-size: clamp(15px, 1.7vw, 25px); font-weight: 400; line-height: .72; }

.opening-screen__hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .58;
  animation: cover-copy-in 1s ease backwards 1.2s;
}

@keyframes cover-mark-in {
  from { opacity: 0; transform: translateY(-12px) scale(.94); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes cover-copy-in {
  from { opacity: 0; filter: blur(7px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes cover-envelope-in {
  from { opacity: 0; transform: translateY(22vh) scale(.88); }
}

/* Invitation page: fixed aspect rhythm at desktop widths */
.invitation-content-page #invitation { opacity: 1; }
.invitation-content-page .paper-section { background-size: 1280px auto; }

.invitation-content-page .hero {
  width: 100%;
  min-height: 0;
  padding: 3.75vw 2vw clamp(24px, 3.2vw, 44px);
  grid-template-rows: auto auto auto auto;
  align-content: start;
}

.invitation-content-page .hero .embossed-monogram { width: min(13.2vw, 169px); }
.invitation-content-page .hero__eyebrow { margin-top: min(2.6vw, 34px); font-size: clamp(15px, 1.45vw, 18px); }
.invitation-content-page .hero .display-script { margin-top: min(.8vw, 10px); font-size: min(9.2vw, 118px); line-height: .76; }
.invitation-content-page .hero__meta { margin-top: min(4.7vw, 60px); font-size: min(1.55vw, 20px); line-height: 1.25; }

.invitation-content-page .letter {
  width: 100%;
  min-height: 0;
  padding: clamp(26px, 4vw, 52px) min(8.8vw, 113px) clamp(18px, 2.6vw, 32px);
  grid-template-columns: 45% 1fr;
  gap: min(7.2vw, 92px);
}

.invitation-content-page .portrait-frame { justify-self: center; width: min(34.5vw, 442px); }
.invitation-content-page .letter__copy { max-width: none; font-size: min(1.55vw, 19.8px); line-height: 1.31; }
.invitation-content-page .letter__copy .calligraphy { margin-bottom: .7em; font-size: min(6.3vw, 81px); }
.invitation-content-page .letter__copy p { margin-bottom: 1.05em; }
.invitation-content-page .letter__copy .signature-script { font-size: min(4.4vw, 56px); }

.invitation-content-page .music {
  min-height: 0;
  padding: clamp(16px, 2vw, 26px) 20px clamp(32px, 4vw, 50px);
}

.invitation-content-page .music-disc { width: clamp(136px, 14vw, 188px); margin-bottom: 14px; }
.invitation-content-page .music .calligraphy { margin: 0 0 10px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.invitation-content-page .music__copy { max-width: min(90vw, 530px); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.25; }
.invitation-content-page .music__status { margin-top: 10px; font-size: 0.8rem; }

.invitation-content-page .cinematic-photo {
  width: 100%;
  height: 50.2191vw;
  max-height: 642.805px;
}
.invitation-content-page .cinematic-photo img { object-position: center 20%; filter: grayscale(1) contrast(.92); }

.invitation-content-page .details-intro {
  width: 100%;
  height: 33.4552vw;
  min-height: 0;
  max-height: 428.227px;
  padding: min(4.2vw, 54px) 2vw;
}
.invitation-content-page .details-intro .narrow-copy { width: min(62vw, 794px); }
.invitation-content-page .details-intro .calligraphy { margin-bottom: min(2vw, 26px); font-size: min(6.1vw, 78px); }
.invitation-content-page .details-intro p { font-size: min(1.55vw, 20px); line-height: 1.35; }
.outline-button {
  display: inline-flex;
  min-width: min(21vw, 269px);
  min-height: min(4.15vw, 53px);
  margin-top: min(2vw, 26px);
  align-items: center;
  justify-content: center;
  padding: .6em 1.4em;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: min(.75vw, 10px);
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}

.invitation-content-page .rsvp-collage {
  width: 100%;
  height: 89.3848vw;
  min-height: 0;
  max-height: 1144.125px;
}

.invitation-content-page .love-story {
  width: 100%;
  height: 74.3042vw;
  min-height: 0;
  max-height: 951.094px;
  padding: min(5.7vw, 73px) 2vw min(3.5vw, 45px);
  align-content: start;
  grid-template-rows: auto auto auto;
}
.invitation-content-page .love-story .calligraphy { margin-bottom: min(3vw, 38px); font-size: min(7vw, 90px); }
.invitation-content-page .video-oval { width: min(58.5vw, 748px); height: auto; align-self: start; }
.invitation-content-page .video-oval video { position: absolute; left: 7%; top: 10.5%; width: 86%; height: 79%; }
.invitation-content-page .love-story__copy { width: min(71vw, 909px); margin-top: min(2.3vw, 29px); font-size: min(1.55vw, 20px); line-height: 1.34; }
.invitation-content-page .love-story__copy p { margin-bottom: 1em; }

.invitation-content-page .love-story--video-only {
  height: 50.2191vw;
  max-height: 642.805px;
  padding: min(1.2vw, 15px) 2vw min(4vw, 51px);
  align-content: start;
  grid-template-rows: 1fr;
}
.invitation-content-page .love-story--video-only .video-oval { align-self: start; }

.invitation-content-page .countdown-section {
  width: 100%;
  height: 17.4231vw;
  min-height: 0;
  max-height: 223.016px;
  padding: min(2vw, 26px) 2vw 0;
  align-content: end;
}
.invitation-content-page .countdown-section .calligraphy { margin: 0; font-size: min(4.2vw, 54px); }
.invitation-content-page .countdown { margin-top: min(1.7vw, 22px); gap: min(4.2vw, 54px); }
.invitation-content-page .countdown span { min-width: min(5.2vw, 67px); }
.invitation-content-page .countdown strong { font-size: min(2.7vw, 35px); }
.invitation-content-page .countdown small { font-size: min(.55vw, 7px); }

.invitation-footer.paper-section {
  width: 100%;
  height: 48.9746vw;
  min-height: 0;
  max-height: 626.875px;
  padding: min(5.2vw, 67px) 2vw min(3vw, 38px);
  align-content: start;
  font-size: min(1.5vw, 19px);
}
.invitation-footer .embossed-monogram { width: min(11vw, 141px); margin-bottom: min(3.3vw, 42px); }
.invitation-footer__love { margin-top: min(3.3vw, 42px) !important; }
.invitation-footer .signature-script { margin-top: min(2.1vw, 27px); font-size: min(6vw, 77px); }

.page-back,
.rsvp-topbar {
  height: 5.3436vw;
  min-height: 54px;
  max-height: 68.4px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(47,47,47,.12);
  background: var(--paper) url("/assets/reference/paper-texture.png") center / 1280px auto;
}
.page-back a,
.rsvp-topbar a { font-family: var(--sans); font-size: 9px; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }

/* Details page */
.details-page .details-hero {
  height: 40.2631vw;
  min-height: 0;
  max-height: 515.37px;
  color: var(--ink);
  background: var(--paper) url("/assets/reference/paper-texture.png") center / 1280px auto;
}
.details-page .details-hero::before,
.details-page .details-hero::after { display: none; }
.details-page .details-back { top: min(2.2vw, 28px); }
.details-page .details-hero__content .microcopy,
.details-page .details-hero__content > p:last-child { display: none; }
.details-page .details-hero__content h1 { margin: 0; font-size: min(11vw, 141px); }

.details-page .details-venues { min-height: 76.5vw; padding: min(5vw, 64px) min(8vw, 102px); }
.details-page .details-timeline { padding: min(5.5vw, 70px) 2vw min(3.4vw, 46px); }
.details-page .details-stay { min-height: 67.8vw; padding: min(4.1vw, 54px) min(8vw, 102px) min(5.5vw, 70px); }
.details-page .details-dress { min-height: 42.1vw; padding: min(5.5vw, 70px) min(8vw, 102px); }
.details-page .details-faq { min-height: 70.7vw; padding: min(5.5vw, 70px) min(8vw, 102px); }
.details-page .details-rsvp { min-height: 78.18vw; max-height: 1001px; }
.details-page .details-section-title { font-size: min(6.7vw, 86px); }
.details-page .details-venues__grid { margin-top: min(3.2vw, 41px); }
.details-page .details-venue__portrait { width: min(40.5vw, 519px); margin-bottom: min(2vw, 26px); }
.details-page .details-timeline__frame { margin-top: min(3vw, 38px); }
.details-page .details-stay__content {
  width: min(1040px, 100%);
  margin: min(3.3vw, 42px) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: min(2.2vw, 28px);
  align-items: stretch;
}
.details-page .details-stay__content > .details-stay__card {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.5fr) minmax(180px, .6fr);
  gap: min(2.6vw, 34px);
  align-items: center;
  padding: min(2.2vw, 28px) min(2.8vw, 36px);
  text-align: left;
}
.details-page .details-stay__content > .details-stay__card h3,
.details-page .details-stay__content > .details-stay__card p { margin: 0; }
.details-page .details-stay__content > .details-stay__card .details-button { margin: 0; }
.details-page .details-stay__content > .details-stay__card--city {
  grid-template-columns: minmax(190px, .7fr) minmax(0, 2.1fr);
}
.details-map-shell {
  position: relative;
  min-height: min(34vw, 435px);
  padding: 8px;
  border: 1px solid rgba(47,47,47,.18);
  background: rgba(255,255,255,.38);
}
.details-map-fallback {
  position: absolute;
  inset: 8px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 32px;
  background: linear-gradient(rgba(255,255,255,.56), rgba(255,255,255,.56)), url("/assets/versal-estate.webp") center / cover;
  text-align: center;
}
.details-map-fallback strong { font-size: min(1.6vw, 21px); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.details-map-fallback span { font-size: min(1.25vw, 16px); }
.details-map-fallback .details-button { background: rgba(253,252,249,.76); }
.details-map-shell iframe { position: absolute; z-index: 1; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); min-height: 0; border: 0; opacity: 0; filter: grayscale(1) contrast(.92); transition: opacity .25s ease; }
.details-map-shell.is-map-loaded iframe { opacity: 1; }
.details-page .details-footer { min-height: 67px; padding: 18px 24px; }
.details-page .details-footer .signature-script { display: none; }

/* RSVP page */
.rsvp-page .rsvp-topbar { border-top: 0; border-bottom: 1px solid rgba(47,47,47,.12); }
.rsvp-page .rsvp-hero {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: min(4vw, 51px) 2vw min(3vw, 38px);
  align-content: start;
}
.rsvp-page .rsvp-hero__title { margin: 0; font-size: min(8.2vw, 105px); }
.rsvp-page .rsvp-hero__script { margin-bottom: min(1.2vw, 15px); font-size: min(3.6vw, 46px); }
.rsvp-page .rsvp-hero__copy { max-width: min(56vw, 717px); font-size: min(1.35vw, 17px); line-height: 1.35; }
.rsvp-page .rsvp-hero__deadline { margin-top: min(1.2vw, 15px); font-size: min(1.35vw, 17px); }
.rsvp-page .rsvp-form-section { min-height: 75.2557vw; padding: min(4.5vw, 58px) 2vw; display: grid; justify-items: center; align-content: start; }
.rsvp-page .rsvp-form-wrap { width: min(64vw, 820px); margin: 0; }
.rsvp-page .rsvp-form-wrap > .calligraphy {
  margin: 0 auto min(2.2vw, 28px);
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
.rsvp-page .rsvp-form__intro { margin-bottom: min(2.2vw, 28px); font-size: clamp(15px, 1.35vw, 17px); line-height: 1.35; }
.rsvp-page .rsvp-form { padding: min(2.2vw, 28px); gap: min(1.4vw, 18px); }
.rsvp-page .rsvp-form input[type="text"],
.rsvp-page .rsvp-form input[type="email"],
.rsvp-page .rsvp-form textarea { padding-block: 8px; }
.rsvp-page .rsvp-footer { min-height: 68px; padding: 20px 24px; }

@media (max-width: 700px) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { transition-duration: .55s; }
    .reveal--left:not(.is-visible),
    .reveal--right:not(.is-visible) { transform: translateY(18px); }
  }

  .opening-screen {
    padding-block: clamp(18px, 4svh, 36px);
    row-gap: clamp(14px, 2.4svh, 24px);
  }
  .opening-screen__mark {
    width: min(clamp(86px, 25vw, 128px), 14svh);
    animation-duration: .65s;
    animation-delay: 0s;
  }
  .opening-screen__heading { animation-duration: .65s; animation-delay: .08s; }
  .opening-screen__heading h1 { font-size: clamp(2.75rem, min(16vw, 11svh), 5.5rem); }
  .opening-screen__envelope { width: min(100%, 62svh); animation-duration: .8s; animation-delay: .16s; }
  .opening-screen__hint {
    font-size: 11px;
    letter-spacing: .13em;
    opacity: .76;
    animation-duration: .55s;
    animation-delay: .3s;
  }

  .invitation-content-page .hero { padding: 32px 18px 26px; }
  .invitation-content-page .hero .embossed-monogram { width: clamp(96px, 29vw, 128px); }
  .invitation-content-page .hero__eyebrow { margin-top: 22px; font-size: 16px; letter-spacing: .22em; }
  .invitation-content-page .hero .display-script {
    margin-top: .2em;
    font-size: clamp(3.55rem, 19vw, 7.25rem);
    line-height: .96;
  }
  .invitation-content-page .hero .display-script span { white-space: nowrap; }
  .invitation-content-page .hero__meta { margin-top: 28px; font-size: 17px; }

  .invitation-content-page .letter { grid-template-columns: 1fr; padding: 18px 20px 12px; gap: 28px; }
  .invitation-content-page .portrait-frame { width: min(78vw, 430px); }
  .invitation-content-page .letter__copy { max-width: 460px; font-size: 17px; line-height: 1.48; }
  .invitation-content-page .letter__copy .calligraphy {
    margin-bottom: .45em;
    font-size: clamp(2.75rem, 15.2vw, 5.75rem);
    line-height: 1.06;
    text-wrap: balance;
  }
  .invitation-content-page .letter__copy .signature-script { font-size: 13vw; }

  .invitation-content-page .music-disc { width: clamp(128px, 38vw, 170px); }
  .invitation-content-page .music .calligraphy { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .invitation-content-page .music__copy { line-height: 1.45; }
  .invitation-content-page .music__copy br { display: none; }

  .invitation-content-page .cinematic-photo { height: 64vw; }
  .invitation-content-page .details-intro { height: auto; max-height: none; padding: clamp(50px, 12vw, 76px) 20px; }
  .invitation-content-page .details-intro .narrow-copy { width: min(460px, 100%); }
  .invitation-content-page .details-intro .calligraphy { margin-bottom: .3em; font-size: clamp(2.75rem, 15.2vw, 5rem); }
  .invitation-content-page .details-intro p { font-size: 17px; }
  .invitation-content-page .outline-button { min-width: min(250px, 100%); min-height: 52px; margin-top: 24px; font-size: 11px; }

  .invitation-content-page .rsvp-collage { height: clamp(400px, 120vw, 690px); max-height: none; }
  .invitation-content-page .rsvp-scene__background {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
  }
  .invitation-content-page .rsvp-collage.is-scene-visible .rsvp-scene__background { animation-name: none; }
  .invitation-content-page .rsvp-scene__tray { width: min(103vw, 650px); }
  .invitation-content-page .rsvp-scene__envelope { width: min(68vw, 390px); }
  .invitation-content-page .rsvp-scene__oval { left: 50%; top: 60%; width: min(75vw, 410px); }
  .invitation-content-page .rsvp-scene__copy h2 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .invitation-content-page .rsvp-scene__copy span { font-size: 11px; letter-spacing: .13em; }
  .invitation-content-page .rsvp-scene__seal { width: 12vw; }

  .invitation-content-page .love-story { height: auto; max-height: none; padding: 75px 18px 90px; }
  .invitation-content-page .love-story .calligraphy { margin-bottom: 36px; font-size: 18vw; }
  .invitation-content-page .video-oval { width: 102vw; }
  .invitation-content-page .love-story__copy { width: 100%; margin-top: 38px; font-size: 17px; }
  .invitation-content-page .love-story--video-only { min-height: 0; padding: 24px 0 70px; }
  .invitation-content-page .love-story--video-only .video-oval { width: 96vw; }
  .invitation-content-page .countdown-section { height: auto; max-height: none; padding: 40px 12px 0; }
  .invitation-content-page .countdown-section .calligraphy {
    font-size: clamp(2.2rem, 11.5vw, 3.6rem);
    line-height: 1.05;
    text-wrap: balance;
  }
  .invitation-content-page .countdown {
    width: min(340px, 100%);
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 2.5vw, 16px);
  }
  .invitation-content-page .countdown span { min-width: 0; }
  .invitation-content-page .countdown strong { font-size: clamp(1.75rem, 7.5vw, 2rem); }
  .invitation-content-page .countdown small { font-size: 10px; letter-spacing: .1em; }

  .invitation-footer.paper-section { font-size: 17px; }
  .invitation-footer .signature-script { margin-top: 22px; font-size: clamp(2.75rem, 14vw, 5rem); }
  .invitation-content-page .page-back a { display: grid; min-height: 44px; padding-inline: 16px; place-items: center; font-size: 11px; }

  .details-page .details-hero { height: 72vw; max-height: none; min-height: 440px; }
  .details-page .details-hero__content h1 { font-size: 20vw; }
  .details-page .details-section-title { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .details-page { --details-mobile-gutter: clamp(16px, 5vw, 28px); }

  .details-page .details-venues,
  .details-page .details-timeline,
  .details-page .details-stay,
  .details-page .details-dress,
  .details-page .details-faq,
  .details-page .details-rsvp { min-height: 0; }
  .details-page .details-stay__content { grid-template-columns: 1fr; gap: 28px; }
  .details-page .details-stay__content > .details-stay__card,
  .details-page .details-stay__content > .details-stay__card--city {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 22px;
    text-align: center;
  }
  .details-page .details-stay__content > .details-stay__card .details-button { margin-inline: auto; }
  .details-map-shell { min-height: 430px; }
  .details-map-fallback strong { font-size: 19px; }
  .details-map-fallback span { font-size: 15px; }

  .rsvp-page .rsvp-hero { height: auto; max-height: none; min-height: 0; padding: 50px 20px 35px; }
  .rsvp-page .rsvp-hero__title { font-size: 18vw; }
  .rsvp-page .rsvp-hero__script { font-size: 11vw; }
  .rsvp-page .rsvp-hero__copy,
  .rsvp-page .rsvp-hero__deadline { max-width: 92vw; font-size: 17px; }
  .rsvp-page .rsvp-form-section {
    min-height: 0;
    padding: clamp(34px, 8vw, 48px) clamp(14px, 4vw, 24px) clamp(36px, 10vw, 58px);
  }
  .rsvp-page .rsvp-form-wrap { width: 100%; }
  .rsvp-page .rsvp-form-wrap > .calligraphy { margin-bottom: 28px; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.15; }
  .rsvp-page .rsvp-form__intro { margin-bottom: 28px; font-size: 13px; }
  .rsvp-page .rsvp-form { padding: clamp(16px, 4.5vw, 24px); gap: 20px; }
  .rsvp-page .rsvp-form label,
  .rsvp-page .rsvp-form legend { font-size: 1rem; line-height: 1.35; }
  .rsvp-page .rsvp-form legend { margin-bottom: 4px; }
  .rsvp-page .rsvp-form .choice { min-height: 44px; margin: 0; }
  .rsvp-page .rsvp-form .choice input { flex-shrink: 0; }
  .rsvp-page .rsvp-form input[type="text"],
  .rsvp-page .rsvp-form textarea { min-height: 44px; font-size: 1rem; }
  .rsvp-page .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .rsvp-page .choice-grid > .form-field:not([hidden]) { margin-top: 8px; }
  .rsvp-page .rsvp-topbar .back-link,
  .rsvp-page .rsvp-footer .back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 11px;
  }
}

@media (min-width: 360px) and (max-width: 700px) {
  .rsvp-page .choice-grid--drinks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .rsvp-page .choice-grid--drinks > .choice,
  .rsvp-page .choice-grid--drinks > .form-field { grid-column: 1 / -1; }
}

/* Final invitation art direction */
.embossed-monogram {
  color: rgba(255, 255, 255, 0.86);
  text-shadow:
    -1px -1px 1.4px rgba(82, 70, 59, 0.32),
    1px 1px 1px rgba(255, 255, 255, 0.98),
    0 0 0.6px rgba(255, 255, 255, 0.88);
}

.opening-page #opening-title,
.invitation-content-page .display-script,
.invitation-content-page .signature-script,
.invitation-content-page .calligraphy,
.invitation-content-page .rsvp-scene__copy h2,
.details-page #details-page-title,
.details-page .details-section-title,
.details-page .details-rsvp__card h2,
.details-page .signature-script,
.rsvp-page .calligraphy,
.rsvp-page .rsvp-hero__title,
.rsvp-page .rsvp-hero__script,
.details-page .details-faq h3 {
  color: var(--burgundy);
}

#wedding-title { color: var(--burgundy); }

.invitation-content-page .paper-section,
.invitation-footer.paper-section {
  background-color: transparent;
  background-image: none;
}

.portrait-frame__media {
  position: absolute;
  inset: 8.8% 10.6%;
  width: 78.8%;
  height: 82.4%;
  overflow: hidden;
  clip-path: polygon(31% 0, 69% 0, 77% 7%, 93% 7%, 93% 13%, 100% 18%, 100% 82%, 93% 87%, 93% 93%, 77% 93%, 69% 100%, 31% 100%, 23% 93%, 7% 93%, 7% 87%, 0 82%, 0 18%, 7% 13%, 7% 7%, 23% 7%);
}

.portrait-frame__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invitation-content-page .love-story--video-only {
  height: auto;
  max-height: none;
  padding-bottom: 20px;
}

.invitation-footer.paper-section {
  height: auto;
  min-height: 340px;
  max-height: none;
  padding: clamp(34px, 4vw, 52px) 2vw clamp(54px, 6vw, 78px);
  align-content: start;
}
.invitation-footer__love { margin-top: 0 !important; }

.rsvp-page .rsvp-form-wrap > .calligraphy {
  margin-bottom: min(1.35vw, 18px);
}

.rsvp-form__subtitle {
  max-width: 760px;
  margin: 0 auto min(1.5vw, 20px);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.65vw, 1.4rem);
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
}

.details-page .details-dress {
  min-height: 0;
  padding-block: min(5.5vw, 70px) min(3.15vw, 42px);
}

.details-dress__palette,
.details-dress__looks {
  width: min(1080px, 100%);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.details-dress__palette { margin-top: clamp(40px, 5vw, 70px); }
.details-dress__looks { margin-top: clamp(35px, 4vw, 58px); }

.details-dress__note {
  width: min(900px, 100%);
  margin: clamp(34px, 4vw, 56px) auto 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  text-align: center;
}

.details-dress__note strong {
  white-space: nowrap;
}

.details-faq__contact a { text-underline-offset: .18em; }

.details-page .details-faq {
  min-height: 0;
  padding-top: min(3.6vw, 46px);
  padding-bottom: min(3vw, 40px);
}

.details-page .details-rsvp__envelope {
  width: min(720px, 88vw);
  filter: none;
}

.details-page .details-rsvp__card {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  min-height: 360px;
  transform: none;
  padding: 50px 42px;
  box-shadow: 0 22px 55px rgba(54, 48, 42, 0.12);
}

@media (max-width: 700px) {
  .invitation-content-page .love-story--video-only { padding-bottom: 24px; }

  .invitation-footer.paper-section { min-height: 0; padding-block: 34px 40px; }

  .rsvp-page .rsvp-form-wrap > .calligraphy {
    margin-bottom: 14px;
    font-size: clamp(3.25rem, 11.5vw, 4.5rem);
    line-height: 0.99;
  }
  .rsvp-form__subtitle {
    margin-bottom: 22px;
    font-size: clamp(1.0625rem, 3.5vw, 1.125rem);
    line-height: 1.3;
  }

  .details-page .details-venues,
  .details-page .details-timeline,
  .details-page .details-stay,
  .details-page .details-dress,
  .details-page .details-faq { padding-inline: var(--details-mobile-gutter); }

  .details-page .details-section-title {
    font-size: clamp(2.65rem, 12.5vw, 4.5rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .details-page .details-venues { padding-block: 32px 22px; }
  .details-page .details-venues__grid { margin-top: 22px; }
  .details-page .details-venue__portrait { width: min(70vw, 330px); margin-bottom: 16px; }
  .details-page .details-venue address { min-height: 0; }
  .details-venue .details-button { margin-top: 16px; }

  .details-page .details-timeline { padding-block: 28px 32px; }
  .details-page .details-timeline__frame {
    width: min(100%, 520px);
    margin-top: 22px;
    padding: 28px clamp(16px, 5vw, 28px);
  }
  .details-timeline li { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding-block: 14px; }

  .details-page .details-stay { padding-block: 28px 36px; }
  .details-stay .details-intro-copy { margin-top: 16px; }
  .details-page .details-stay__content { width: min(100%, 520px); margin-top: 24px; gap: 18px; }
  .details-page .details-stay__content > .details-stay__card { gap: 12px; padding: 22px 14px; }
  .details-map-shell { min-height: min(380px, 65svh); }
  .details-map-fallback { padding: 16px; }

  .details-page .details-dress { padding-block: 28px 32px; }
  .details-dress__copy p { margin-top: 16px; }
  .details-dress__palette { margin-top: 28px; }
  .details-dress__looks {
    width: calc(100% + 2 * var(--details-mobile-gutter));
    max-width: none;
    margin: 32px calc(-1 * var(--details-mobile-gutter)) 0;
  }
  .details-dress__note { margin-top: 32px; font-size: 17px; }

  .details-page .details-faq { padding-block: 24px 36px; }
  .details-faq__grid { margin-top: 30px; row-gap: 30px; }

  .details-page .details-rsvp { min-height: 460px; }
  .details-page .details-rsvp__envelope { width: min(calc(100% - 32px), 440px); }
  .details-page .details-rsvp__card { min-height: auto; padding: 38px 20px; }
  .details-rsvp__card h2 { font-size: clamp(2.65rem, 13vw, 4.2rem); text-wrap: balance; }
  .details-rsvp__card .details-button { width: 100%; min-width: 0; }
  .details-page .details-footer { padding-block: 8px; }
  .details-footer .back-link { display: inline-flex; min-height: 44px; align-items: center; }
}

