.royal-page {
  --royal-ink: color-mix(in srgb, var(--invitation-primary, #541d36) 62%, #1a1214);
  --royal-plum: color-mix(in srgb, var(--invitation-primary, #541d36) 88%, #190d14);
  --royal-gold: var(--invitation-accent, #d7b572);
  --royal-ivory: #fff2d7;
  --royal-paper: var(--invitation-background, #f4ead7);
  position: relative;
  overflow: clip;
  background: var(--royal-paper);
  color: var(--royal-ink);
  font-family: var(--invitation-body-font, "DM Sans", sans-serif);
}
.royal-page *, .royal-page *::before, .royal-page *::after { box-sizing: border-box; }
.royal-page h1, .royal-page h2, .royal-page h3 { font-family: var(--invitation-heading-font, "Cormorant Garamond", Georgia, serif); font-weight: 500; }
.royal-sections > div { display: contents; }
.royal-art { position: absolute; inset: 0; display: block; overflow: hidden; }
.royal-art img { object-fit: cover; object-position: center; }

/* The Royal opening is a pinned, frame-by-frame camera journey. The section's
   extra scroll height is the camera travel; its sticky stage stays viewport-sized. */
.royal-journey { position: relative; height: 280svh; background: #211b20; color: var(--royal-ivory); }
.royal-journey-stage { position: sticky; top: 0; isolation: isolate; width: 100%; height: 100svh; overflow: hidden; background: #211b20; }
.royal-journey-poster { z-index: 0; }
.royal-journey-poster img { object-position: center; }
.royal-journey-canvas { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 240ms ease-out; }
.royal-journey-canvas.is-ready { opacity: 1; }
.royal-journey-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, #16111dcc 0%, #16111d50 24%, transparent 52%, #16111d38 100%); }
.royal-journey-copy { position: absolute; z-index: 3; top: clamp(38px, 9svh, 92px); left: 50%; width: min(78%, 800px); color: #fff1d2; text-align: center; text-shadow: 0 2px 26px #130d16b8; opacity: var(--royal-reveal, 0); transform: translateX(-50%); transition: opacity 120ms linear; pointer-events: none; }
.royal-journey-copy h1 { margin: 0; color: #fff1d2; font-size: clamp(56px, 7vw, 108px); line-height: .94; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.royal-journey-copy p { max-width: 58ch; margin: 14px auto 0; color: #fff5e2; font: 400 clamp(16px, 1.45vw, 21px)/1.5 var(--invitation-body-font, sans-serif); }
.royal-journey-copy p + p { margin-top: 8px; }
.royal-journey.is-compact { height: auto; min-height: 0; aspect-ratio: 9 / 16; overflow: hidden; }
.royal-journey.is-compact .royal-journey-stage { position: relative; top: auto; height: 100%; min-height: 0; aspect-ratio: 9 / 16; }
.royal-journey.is-compact .royal-journey-copy { top: 8%; width: 88%; opacity: 1; transform: translateX(-50%); }
.royal-journey.is-compact .royal-journey-copy h1 { font-size: clamp(32px, 9vw, 56px); }
.royal-journey.is-compact .royal-journey-copy p { font-size: 12px; }

.royal-cover, .royal-scene, .royal-venue, .royal-closing { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; }
.royal-cover { display: grid; align-items: center; min-height: max(760px, 100svh); color: var(--royal-ivory); background: #202d42; }
.royal-cover > .royal-art img { object-position: center 52%; }
.royal-cover-shade { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, #13223800 35%, #13223820 55%, #10223838 100%), linear-gradient(0deg, #101a2d3b, transparent 35%); }
.royal-cover .invitation-hairline { position: absolute; z-index: 2; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); color: #efcf90; opacity: .55; }
.royal-cover .hairline-frame { stroke: currentColor; stroke-width: .46; vector-effect: non-scaling-stroke; }
.royal-cover-copy { position: relative; z-index: 1; width: min(41%, 660px); margin: 0 8.5% 0 auto; padding: 48px 0; text-align: center; text-shadow: 0 2px 22px #07152670; }
.royal-overline { margin: 0 0 18px; color: #edcf92; font-size: 11px; font-weight: 650; letter-spacing: .2em; line-height: 1.55; text-transform: uppercase; }
.royal-cover-copy h1 { margin: 0; color: #fff1d2; font-size: clamp(68px, 7.7vw, 138px); line-height: .87; letter-spacing: -.045em; overflow-wrap: anywhere; }
.royal-cover-message { max-width: 36ch; margin: 28px auto 0; color: #fff6e6; font: 400 clamp(16px, 1.24vw, 20px)/1.55 var(--invitation-body-font, sans-serif); }
.royal-cover-date { display: grid; gap: 5px; margin-top: 34px; color: #f4d99f; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.royal-scroll-cue { position: absolute; z-index: 2; bottom: 33px; left: 50%; display: grid; width: 31px; height: 48px; place-items: start center; padding-top: 10px; border: 1px solid #f5dca7a8; border-radius: 22px; transform: translateX(-50%); }
.royal-scroll-cue span { width: 3px; height: 8px; border-radius: 4px; background: #f5dca7; animation: royal-scroll 1.8s ease-in-out infinite; }
@keyframes royal-scroll { 60%, 100% { opacity: .2; transform: translateY(15px); } }

/* Every selected celebration is a full-scene chapter with HTML set into its own safe space. */
.royal-scene { display: grid; align-items: center; min-height: max(680px, 92svh); color: var(--royal-ivory); background: #322821; }
.royal-scene .royal-art img { object-position: center; }
.royal-scene-vignette { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, #0f182b00 38%, #0f182b75 100%); }
.royal-scene[data-placement="left"] .royal-scene-vignette { background: linear-gradient(90deg, #0e1c23bd 0%, #0e1c2363 31%, transparent 68%); }
.royal-scene[data-tone="ink"] { color: #3d2027; }
.royal-scene[data-tone="ink"] .royal-overline { color: #75412c; }
.royal-scene[data-tone="ink"] .royal-scene-vignette { background: linear-gradient(90deg, transparent 34%, #fff4dfb0 100%); }
.royal-scene-copy { position: relative; z-index: 1; width: min(35%, 560px); margin: 0 8.5% 0 auto; padding: 56px 0; text-align: center; text-shadow: 0 2px 24px #17111b70; }
.royal-scene[data-placement="left"] .royal-scene-copy { margin: 0 auto 0 8.5%; }
.royal-scene[data-tone="ink"] .royal-scene-copy { text-shadow: 0 1px 10px #fff2dc88; }
.royal-scene-copy h2 { margin: 0; color: #fff1d2; font-size: clamp(62px, 7vw, 112px); line-height: .9; letter-spacing: -.035em; overflow-wrap: anywhere; }
.royal-scene[data-tone="ink"] .royal-scene-copy h2 { color: #4a2430; }
.royal-event-date { margin: 25px 0 6px; color: #f5dca7; font: 500 clamp(20px, 2vw, 28px)/1.2 var(--invitation-heading-font, Georgia, serif); }
.royal-scene[data-tone="ink"] .royal-event-date { color: #71442b; }
.royal-event-time, .royal-event-venue { margin: 0; color: #fff4df; font-size: 15px; line-height: 1.6; }
.royal-scene[data-tone="ink"] .royal-event-time, .royal-scene[data-tone="ink"] .royal-event-venue { color: #402930; }
.royal-event-venue { margin-top: 5px; }

/* Save the date is a typographic invitation, not a detached panel. */
.royal-date { position: relative; isolation: isolate; display: grid; min-height: 620px; place-items: center; overflow: hidden; padding: 104px 26px; background: #f2e3c7; text-align: center; }
.royal-date .royal-art { z-index: -2; }
.royal-date-wash { position: absolute; z-index: -1; inset: 0; background: #fff0d055; }
.royal-date::before, .royal-date::after { position: absolute; inset: 22px; border: 1px solid #b88b4d; content: ""; pointer-events: none; }
.royal-date::after { inset: 31px; border-color: #b88b4d70; }
.royal-date-inner { position: relative; z-index: 1; width: min(100%, 900px); }
.royal-date .royal-overline { color: #795132; }
.royal-date h2 { margin: 0 0 26px; color: #56283a; font-size: clamp(42px, 5vw, 74px); line-height: .98; }
.royal-date-lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px); color: #54283a; }
.royal-date-lockup > span { color: #a06c34; font: 500 clamp(92px, 15vw, 196px)/.78 var(--invitation-heading-font, Georgia, serif); letter-spacing: -.08em; }
.royal-date-lockup > div { display: grid; gap: 9px; text-align: left; }
.royal-date-lockup strong { max-width: 20ch; font: 500 clamp(23px, 3vw, 40px)/1.05 var(--invitation-heading-font, Georgia, serif); }
.royal-date-lockup small { color: #75513e; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.royal-date-names { margin: 36px 0 0; color: #7c563e; font: italic 500 clamp(24px, 3vw, 38px)/1.2 var(--invitation-heading-font, Georgia, serif); }

.royal-venue { display: grid; min-height: max(700px, 88svh); place-items: center; color: #fff1d2; background: #2a1c24; }
.royal-venue .royal-art img { object-position: center 62%; }
.royal-venue-wash, .royal-closing-wash { position: absolute; inset: 0; background: linear-gradient(0deg, #1b1417dd, #21151b58 44%, #1b141755); }
.royal-venue-copy { position: relative; z-index: 1; width: min(92%, 720px); padding: 46px; text-align: center; text-shadow: 0 2px 18px #12090f80; }
.royal-venue-copy h2 { margin: 0 0 26px; color: #fff0cd; font-size: clamp(58px, 8vw, 112px); line-height: .91; }
.royal-venue-name { margin: 0; color: #f7dcaa; font: 500 clamp(27px, 3vw, 42px)/1.15 var(--invitation-heading-font, Georgia, serif); }
.royal-venue-copy > p:not(.royal-overline, .royal-venue-name) { margin: 10px 0 25px; color: #fff6e7; font-size: 16px; }
.royal-venue-copy a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid #f1d49a; border-radius: 24px; color: #fff0d2; font-size: 13px; text-decoration: none; }
.royal-venue-copy a svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.royal-venue-copy a:focus-visible { outline: 3px solid #f1d49a; outline-offset: 4px; }

.royal-families { padding: 80px 22px; background: #4a2034; color: #fff2d7; text-align: center; }
.royal-families .royal-overline { margin-bottom: 36px; }
.royal-families > div { display: flex; justify-content: center; gap: clamp(38px, 12vw, 180px); }
.royal-families > div > p { max-width: 34ch; margin: 0; }
.royal-families small, .royal-families strong { display: block; }
.royal-families small { margin-bottom: 9px; color: #e5c88e; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.royal-families strong { font: 500 clamp(23px, 3vw, 36px)/1.15 var(--invitation-heading-font, Georgia, serif); }
.royal-story { padding: clamp(78px, 11vw, 150px) 24px; background: #efe2cb; color: #482535; text-align: center; }
.royal-story .royal-overline { color: #91673c; }
.royal-story h2 { max-width: 18ch; margin: 0 auto 18px; font-size: clamp(42px, 6vw, 76px); line-height: .96; }
.royal-story > p:last-child { max-width: 58ch; margin: 0 auto; color: #554143; font: 400 clamp(18px, 2vw, 22px)/1.7 var(--invitation-body-font, serif); }
.royal-rsvp { display: grid; min-height: 64svh; place-items: center; padding: 88px 22px; background: radial-gradient(ellipse at 50% 115%, #84513e, transparent 52%), #301e2a; color: #fff2d7; text-align: center; }
.royal-rsvp > div { max-width: 620px; }
.royal-rsvp h2 { margin: 0 0 15px; color: #fff0d2; font-size: clamp(46px, 6vw, 76px); line-height: .96; }
.royal-rsvp > div > p:not(.royal-overline) { color: #f1dfc5; font: 400 18px/1.6 var(--invitation-body-font, serif); }
.royal-rsvp > div > span { display: inline-block; margin-top: 20px; color: #e9cc91; font: italic 18px var(--invitation-heading-font, Georgia, serif); }
.royal-rsvp .guest-rsvp-form { margin: 28px auto 0; color: #fff; text-align: left; }
.royal-rsvp .guest-rsvp-form input, .royal-rsvp .guest-rsvp-form select, .royal-rsvp .guest-rsvp-form textarea { border-color: #b99666; }
.royal-closing { display: grid; min-height: max(620px, 76svh); place-items: center; color: #fff0d2; text-align: center; }
.royal-closing > div:last-child { position: relative; z-index: 1; width: min(88%, 760px); padding: 70px 20px; }
.royal-closing > div:last-child h2 { margin: 0 0 18px; color: #fff0d2; font-size: clamp(52px, 7vw, 92px); line-height: .92; }
.royal-closing > div:last-child > p:not(.royal-overline) { max-width: 50ch; margin: 0 auto; color: #ffefd7; font: 400 19px/1.6 var(--invitation-body-font, serif); }
.royal-closing strong { display: block; margin-top: 30px; color: #f3d395; font: 500 clamp(27px, 4vw, 44px) var(--invitation-heading-font, Georgia, serif); }
.royal-gallery { padding: 80px 24px 100px; background: #f0e4d0; text-align: center; }
.royal-gallery .royal-overline { color: #86603c; }
.royal-gallery h2 { margin: 0 0 40px; color: #51283a; font-size: clamp(42px, 6vw, 72px); }
.royal-gallery > div { display: grid; width: min(100%, 1300px); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; margin: auto; }
.royal-gallery img { width: 100%; height: 320px; object-fit: cover; }

.royal-cover.is-compact { min-height: 100%; aspect-ratio: 9 / 16; }
.royal-cover.is-compact .royal-cover-copy { width: 68%; margin-right: 4%; }
.royal-cover.is-compact .royal-cover-copy h1 { font-size: clamp(32px, 9vw, 56px); }
.royal-cover.is-compact .royal-cover-message { font-size: 12px; }
.royal-page.is-compact .royal-cover > .royal-art img { object-position: 43% center; }

@media (max-width: 700px) {
  .royal-journey { height: 280svh; }
  .royal-journey-stage { height: 100svh; }
  .royal-journey-poster img { object-position: center 46%; }
  .royal-journey-shade { background: linear-gradient(180deg, #16111ddf 0%, #16111d78 22%, transparent 51%, #16111d4a 100%); }
  .royal-journey-copy { top: max(32px, calc(env(safe-area-inset-top) + 22px)); width: 88%; }
  .royal-journey-copy h1 { font-size: clamp(40px, 11vw, 66px); }
  .royal-journey-copy p { margin-top: 10px; font-size: 15px; }
  .royal-journey.is-compact { height: auto; min-height: 0; }
  .royal-journey.is-compact .royal-journey-stage { height: 100%; }
  .royal-cover { min-height: max(740px, 100svh); align-items: start; }
  .royal-cover > .royal-art img { object-position: center 42%; }
  .royal-cover-shade { background: linear-gradient(180deg, #131c2fc4 0%, #131c2f6b 24%, transparent 52%, #18141c35); }
  .royal-cover .invitation-hairline { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .royal-cover-copy { width: min(88%, 460px); margin: 10svh auto 0; padding: 40px 0 0; }
  .royal-overline { font-size: 9px; letter-spacing: .16em; }
  .royal-cover-copy h1 { font-size: clamp(50px, 14vw, 80px); }
  .royal-cover-message { max-width: 33ch; margin-top: 16px; font-size: 15px; }
  .royal-cover-date { margin-top: 18px; font-size: 11px; }
  .royal-scroll-cue { bottom: 21px; transform: translateX(-50%) scale(.82); }
  .royal-scene { min-height: max(700px, 92svh); align-items: start; }
  .royal-scene .royal-art img { object-position: center; }
  .royal-scene-vignette, .royal-scene[data-placement="left"] .royal-scene-vignette { background: linear-gradient(180deg, #170f19dd 0%, #170f1999 24%, transparent 58%); }
  .royal-scene[data-tone="ink"] .royal-scene-vignette { background: linear-gradient(180deg, #fff2ddf2 0%, #fff2ddbd 24%, transparent 58%); }
  .royal-scene-copy, .royal-scene[data-placement="left"] .royal-scene-copy { width: auto; margin: 0; padding: 8svh 26px 20px; text-align: center; }
  .royal-scene-copy h2 { font-size: clamp(54px, 15vw, 82px); }
  .royal-event-date { margin-top: 14px; font-size: 23px; }
  .royal-event-time, .royal-event-venue { font-size: 14px; }
  .royal-date { min-height: 560px; padding: 80px 28px; }
  .royal-date::before { inset: 13px; }
  .royal-date::after { inset: 21px; }
  .royal-date .royal-overline { max-width: 30ch; margin-inline: auto; }
  .royal-date h2 { font-size: 42px; }
  .royal-date-lockup { gap: 14px; }
  .royal-date-lockup > span { font-size: clamp(92px, 24vw, 136px); }
  .royal-date-lockup strong { font-size: clamp(18px, 5vw, 27px); }
  .royal-date-lockup small { font-size: 10px; }
  .royal-date-names { margin-top: 25px; font-size: 26px; }
  .royal-venue { min-height: 720px; }
  .royal-venue-copy { width: min(94%, 540px); padding: 30px 18px; }
  .royal-venue-copy h2 { font-size: clamp(54px, 14vw, 82px); }
  .royal-venue-name { font-size: 30px; }
  .royal-families { padding: 60px 24px; }
  .royal-families > div { flex-direction: column; gap: 28px; }
  .royal-story { padding: 72px 24px; }
  .royal-story h2 { font-size: 48px; }
  .royal-story > p:last-child { font-size: 17px; }
  .royal-rsvp { min-height: 520px; }
  .royal-closing { min-height: 620px; }
  .royal-closing > div:last-child > p:not(.royal-overline) { font-size: 17px; }
  .royal-gallery { padding: 68px 18px 76px; }
  .royal-gallery img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .royal-scroll-cue span { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .royal-journey { height: 100svh; }
  .royal-journey-stage { position: relative; }
  .royal-journey-canvas { transition: none; }
  .royal-journey-copy { opacity: 1; transform: translateX(-50%); transition: none; }
}
