@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600&family=Great+Vibes&display=swap');

:root {
  --ink: #382e24;
  --brown: #75532f;
  --gold: #aa8042;
  --ivory: #f7f1e5;
  --paper: #f7f1e5;
  --forest: #35402d;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #211e18;
}

/* The desktop invitation follows the reference's persistent portrait + reading column. */
.side-photo {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 0;
  display: block;
  width: calc(100vw - min(45vw, 640px));
  background-color: #4d4539;
  background-image: url('assets/left-panel-photo.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.side-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 17, 13, .77), transparent 49%, rgba(20, 17, 13, .1));
}
.side-photo::after {
  display: none;
}
.side-photo-copy {
  position: absolute;
  z-index: 1;
  top: 25%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff7e8;
  text-shadow: 0 2px 3px rgba(20, 16, 10, .94), 0 4px 12px rgba(20, 16, 10, .72);
}
.side-photo-copy .eyebrow {
  margin: 0 0 12px;
  color: #fff2d8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.side-photo-copy h2 {
  margin: 0;
  white-space: nowrap;
  font: 400 clamp(64px, 4vw, 72px) / 1 var(--script);
  -webkit-text-stroke: .3px rgba(31, 23, 13, .58);
}
.side-photo-copy h2 em { font-size: .6em; font-style: normal; }
.side-photo-copy .side-photo-date {
  margin: 12px 0 0;
  color: #fff2d8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.side-photo-copy .side-photo-hashtag {
  margin: 7px 0 0;
  color: rgba(255, 242, 216, .9);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .12em;
}

.invitation {
  position: relative;
  z-index: 1;
  width: min(45vw, 640px);
  min-height: 100vh;
  margin-left: auto;
  overflow: clip;
  background: var(--ivory);
  box-shadow: 0 0 45px rgba(0, 0, 0, .14);
}
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  color: var(--ink);
  background: #f4ecdd;
}
.cover-photo, .cover .veil { display: none; }
.cover-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url('assets/cover-floral-artwork.webp') center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}
.cover-content { display: contents; }
.cover-copy, .guest-card, .scroll-note { z-index: 2; }
.cover-copy {
  position: absolute;
  top: 19%;
  left: 0;
  right: 0;
  width: min(100%, 430px);
  align-self: auto;
  margin: 0 auto;
  padding: 0 18px;
  transform: none;
  text-align: center;
}
.cover-copy .eyebrow { color: #79572c; font-size: .62rem; letter-spacing: .19em; }
.cover h1 {
  margin: 3px 0 0;
  color: #815d16;
  font: 400 clamp(2.8rem, 7vw, 5rem) / .79 var(--serif);
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: none;
}
.cover h1 span { display: block; }
.cover h1 { text-align: center; }
.cover h1 em { display: block; margin: 3px 0; color: #a17a31; font-size: .43em; font-style: normal; line-height: 1; }
.cover .date-line { display: none; }
.guest-card {
  position: absolute;
  top: 53%;
  left: 50%;
  width: min(92%, 380px);
  margin: 0;
  padding: 0 10px;
  transform: translateX(-50%);
  color: #463626;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.guest-card p { margin: 0; color: #57442f; font-size: .76rem; letter-spacing: .04em; text-transform: none; }
.guest-card small { color: #57442f; font-size: .78rem; }
.guest-card h2 { overflow-wrap: anywhere; font: 400 clamp(1.4rem, 3.2vw, 1.85rem) / 1.08 var(--sans); color: #936b1b; margin: 12px 0 14px; }
.guest-card .primary { padding: 9px 18px; color: #76551e; background: rgba(255, 251, 242, .2); border: 1px solid rgba(126, 91, 36, .6); border-radius: 4px; font-size: .6rem; box-shadow: none; }
.scroll-note { bottom: 22px; color: var(--brown); font-size: .58rem; letter-spacing: .12em; }
.opened .scroll-note { opacity: .8; }
body:not(.opened) .bottom-nav { visibility: hidden; pointer-events: none; }

.section {
  padding: clamp(40px, 5vh, 56px) clamp(24px, 3vw, 36px);
  isolation: isolate;
}
.section-paper {
  background:
    radial-gradient(ellipse at 10% 16%, rgba(172, 136, 76, .08), transparent 45%),
    linear-gradient(135deg, #fbf7ec, #f3ecdc);
}
.ornamental-section { isolation: isolate; }
.ornamental-section::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 9px;
  background: url('assets/botanical-frame.svg') center / 100% 100% no-repeat;
  opacity: .39;
  pointer-events: none;
}
.ornamental-section > :not(.countdown-background):not(.cover-photo):not(.veil):not(.cover-frame):not(.cover-content):not(.scroll-note):not(.cover-copy):not(.guest-card) { position: relative; z-index: 2; }
.countdown-background { z-index: 0; }
.intro.section { padding-top: 42px; }
.intro .bismillah { font-size: 1.2rem; }
.intro blockquote { max-width: 400px; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.invite-copy { max-width: 390px; font-family: var(--serif); font-size: 1.06rem; }
.people { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.portrait { padding: 5px; border-radius: 110px 110px 5px 5px; }
.person h2 { font-size: clamp(1.3rem, 2.8vw, 1.95rem); }
.person p:not(.role) { font-size: .62rem; }
.ampersand { font-size: clamp(2.6rem, 5vw, 4rem); }

.countdown-section { background: var(--forest); }
.countdown-background {
  background: linear-gradient(rgba(32, 41, 27, .8), rgba(32, 41, 27, .87)), url('assets/gallery-6.jpg') center / cover;
}
.countdown-section::before, .gift-section::before, footer::before { opacity: .28; }
.display-title { font-size: clamp(2.7rem, 5.8vw, 4.7rem); line-height: .86; }
.countdown { gap: 5px; margin: 0 auto 34px; }
.countdown div { width: clamp(49px, 5.5vw, 69px); padding: 10px 2px; border-radius: 2px; }
.countdown strong { font-size: 1.7rem; }
.countdown span { font-size: .48rem; }
.event-card {
  position: relative;
  max-width: 100%;
  padding: 27px 17px;
  border: 1px solid rgba(166, 132, 77, .44);
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .15);
}
.event-card h2 { font-size: 1.7rem; }
.event-card h3 { font-size: 1.55rem; }

.story { background-color: #f3eddf; }
.story .display-title { margin-bottom: 34px; }
.timeline { max-width: 100%; }
.timeline li { grid-template-columns: 45px minmax(0, 1fr); gap: 21px; margin-bottom: 26px; }
.timeline:before { left: 54px; background: linear-gradient(#b08a51, rgba(176, 138, 81, .2)); }
.timeline li:after { left: 49px; width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(170, 128, 66, .13); }
.timeline time { font-size: .98rem; }
.timeline h3 { font-size: 1.45rem; }
.timeline p { font-family: var(--serif); font-size: .94rem; line-height: 1.35; }

.gallery-section { background: #e9e1d0; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gallery button { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; padding: 5px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 17px; background: rgba(248, 242, 230, .9); box-shadow: 0 8px 19px rgba(77, 57, 34, .14), inset 0 1px 0 #fff; transform: none; }
.gallery button:nth-child(3n + 2) { transform: none; margin: 0; }
.gallery img { display: block; width: 100%; height: 100%; border-radius: 11px; filter: saturate(.88); }
.video-card { border-radius: 2px; background: #f7f1e5; }

.rsvp-section { background-color: #f8f3e8; }
.rsvp-section .display-title { font-size: clamp(2.35rem, 4.7vw, 3.5rem); }
.limit-note, .whatsapp-note { font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.rsvp-form input, .rsvp-form select, .wish-form input, .wish-form textarea { border-radius: 2px; border-color: #bda980; }
.rsvp-form fieldset label { font-size: .69rem; }
.gift-section { background: linear-gradient(145deg, #39422f, #5a5036); }
.gift-section > p:not(.eyebrow) { font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; }
.gift-section .display-title { color: #fff7e6; }
.gift-details article { border: 1px solid rgba(174, 137, 74, .45); border-radius: 2px; }
.wishes-section { background-color: #f4ecdc; }
.wish { border-left-color: var(--gold); border-radius: 0; }
footer { position: relative; overflow: hidden; background: #30281e; padding-top: 72px; }
footer h2 { font: 400 clamp(3.7rem, 8vw, 6rem) / .85 var(--script); }
footer h2 em { font-style: normal; }

.bottom-nav {
  left: auto;
  right: 11px;
  bottom: 12px;
  transform: none;
  width: min(calc(min(45vw, 640px) - 22px), 520px);
  padding: 10px 11px;
  background: rgba(60, 46, 30, .95);
  border-color: rgba(240, 222, 188, .34);
}
.bottom-nav a { font-size: .88rem; }
.bottom-nav span { font-size: .46rem; }
.show-on-scroll { transform: translateY(15px); }

@media (max-width: 680px) {
  body { display: block; }
  .side-photo { display: none; }
  .invitation { width: 100%; margin: 0; box-shadow: none; overflow: hidden; }
  .cover {
    min-height: 100svh;
    height: 100svh;
    gap: 0;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: #f4ecdd;
  }
  .cover-photo, .cover .veil { display: none; }
  .cover-frame { inset: 0; background-size: cover; background-position: center; }
  .cover-content {
    position: absolute;
    z-index: 2;
    inset: 22% 15% 24%;
    transform: translateY(-16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2.4svh, 20px);
    text-align: center;
  }
  .cover .cover-copy,
  .cover .guest-card {
    position: static;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    text-align: center;
  }
  .cover-copy .eyebrow { margin: 0 0 8px; font-size: 11px; line-height: 1.4; letter-spacing: .15em; }
  .cover h1 { margin: 0; font-size: clamp(54px, 15.5vw, 64px); line-height: .93; }
  .cover h1 em { margin: 4px 0; line-height: 1.1; }
  .guest-card {
    color: #463626;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .cover .guest-card p,
  .cover .guest-card small { display: block; font-size: 12px; line-height: 1.5; }
  .cover .guest-card h2 { margin: 10px 0 12px; font-size: 20px; line-height: 1.2; }
  .cover .guest-card .primary { width: fit-content; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 22px; font-size: 11px; }
  .scroll-note { bottom: 11px; color: #765a37; }
  .section { padding: 48px 28px; }
  .people { gap: 9px; }
  .person h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
  .timeline { padding-left: 0; }
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); gap: 21px; }
  .timeline:before { left: 53px; }
  .timeline li:after { left: 49px; }
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92%, 580px);
    padding: 9px 16px;
  }
}

@media (max-width: 380px) {
  .cover { padding-inline: 17px; }
  .section { padding: 44px 24px; }
  .people { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; }
  .person h2 { font-size: 1.3rem; }
  .person p:not(.role) { font-size: .56rem; }
  .ampersand { font-size: 2.55rem; }
  .rsvp-form fieldset label { margin-right: 7px; }
}

@media (max-width: 680px) and (max-height: 650px) {
  .cover-content { gap: 12px; }
  .cover h1 { font-size: clamp(48px, 13.5vw, 56px); line-height: .9; }
  .cover-copy .eyebrow { margin-bottom: 8px; }
  .cover h1 em { margin-block: 3px; }
  .cover .guest-card h2 { margin-block: 8px 10px; font-size: 18px; }
}
@media (max-width: 680px) and (max-height: 700px) {
  .cover-content { transform: translateY(24px); }
}

@keyframes coverDrift { to { transform: scale(1.1) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .show-on-scroll { opacity: 1; transform: none; }
}

/* One continuous Javanese illustration sits behind the invitation content. */
body {
  background-color: #f4ecdd;
  background-image: none;
}
body::before { content: ''; position: fixed; z-index: 0; inset: 0 0 0 auto; width: 45vw; background: url('assets/page-jawa-background.webp') center / cover no-repeat; pointer-events: none; }
.invitation { background: transparent; }
.section,
.section-paper,
.countdown-section,
.story,
.gallery-section,
.rsvp-section,
.gift-section,
.wishes-section,
footer { background: transparent !important; color: var(--ink); }
.ornamental-section::before { display: none; }
.countdown-background { display: none !important; }
.countdown-section .countdown div { border-color: rgba(117, 83, 47, .42); }
.countdown-section .countdown strong,
.countdown-section .countdown span,
.gift-section .display-title { color: var(--brown); }
.event-card,
.video-card,
.gift-details article,
.wish {
  background: rgba(255, 251, 241, .68);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(75, 55, 31, .12), inset 0 1px 0 rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(7px) saturate(1.08);
  backdrop-filter: blur(7px) saturate(1.08);
}
.gallery button { background: rgba(255, 251, 241, .68); }
.rsvp-form input,
.rsvp-form select,
.wish-form input,
.wish-form textarea { background: rgba(255, 251, 241, .82); }

.cover h1 span { color: transparent; background: linear-gradient(145deg, #fffdf4 2%, #e4cf9e 18%, #a77c32 34%, #fffdf7 49%, #c39c54 64%, #fff9e9 82%, #8c6c38 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .65px rgba(113, 80, 32, .44); text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 3px 7px rgba(74, 52, 21, .38); filter: drop-shadow(0 3px 5px rgba(89, 64, 26, .18)); }
.opened .cover-copy,
.opened .guest-card { animation: none; }
.bottom-nav { transition: opacity .4s ease; }
body.opening .bottom-nav { opacity: 0; pointer-events: none; }
body:not(.opened) .audio-button { opacity: 0; pointer-events: none; }
.audio-button { right: 22px; bottom: 82px; z-index: 5; transition: opacity .35s ease, transform .2s ease; }
.audio-button:hover { transform: scale(1.06); }
.audio-button:focus-visible { outline: 2px solid #f5e7c6; outline-offset: 3px; }
.audio-button:not(.playing) { animation: none; }
@media (max-width: 680px) {
  body::before { inset: 0; width: 100vw; }
}

/* Keep the opening cover still until the guest chooses to enter. */
html:has(body:not(.opened)) { height: 100%; overflow: hidden; overscroll-behavior: none; }
body:not(.opened) { height: 100vh; overflow: hidden; overscroll-behavior: none; }

/* Keep the Yasin verse and couple profiles on their own readable overlays. */
.quran-section::before,
.intro::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 34px 34px 46px 46px;
  background: rgba(255, 250, 239, .84);
  opacity: 1;
  box-shadow: 0 12px 32px rgba(75, 55, 31, .11), inset 0 1px 0 rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(7px) saturate(1.06);
  backdrop-filter: blur(7px) saturate(1.06);
  pointer-events: none;
}
.quran-photo {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(166, 132, 77, .68);
  border-radius: 50% 50% 18px 18px;
  background: #eee5d1;
  box-shadow: 0 10px 26px rgba(75, 55, 31, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.quran-section::before {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at center, rgba(255, 250, 239, .68) 0%, rgba(248, 240, 222, .54) 68%, rgba(248, 240, 222, .18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, .92) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, .92) 78%, transparent 100%);
}
.quran-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.quran-photo.show-on-scroll { transition-delay: 0ms; }
.quran-section .bismillah.show-on-scroll { transition-delay: 100ms; }
.quran-section blockquote.show-on-scroll { transition-delay: 180ms; }
.quran-section .verse.show-on-scroll { transition-delay: 260ms; }
.quran-section .bismillah { margin-top: 0; }

/* Stack the two portraits in the same vertical reading order as the reference. */
.intro::before {
  background: linear-gradient(145deg, rgba(255, 252, 244, .82), rgba(251, 245, 230, .70) 48%, rgba(255, 250, 239, .80));
  border-color: rgba(255, 253, 246, .72);
  box-shadow: 0 10px 28px rgba(75, 55, 31, .08), inset 0 1px 0 rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  backdrop-filter: blur(12px) saturate(1.06);
}
.intro .salutation { margin: 0 auto 18px; max-width: 340px; font: 500 1rem/1.5 var(--sans); color: #6d5a44; }
.intro .invite-copy { margin-bottom: 32px; line-height: 1.72; }
.intro .people { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 100%; }
.intro .person { width: 100%; max-width: 360px; text-align: center; }
.intro .portrait { width: min(280px, 78vw); height: auto; aspect-ratio: 3 / 4; margin: 0 auto; padding: 5px; border-radius: 50%; border: 1px solid rgba(166, 132, 77, .66); background: rgba(255, 251, 241, .76); }
.intro .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; border-radius: 0; transform: scale(1.33); transform-origin: center 70%; }
.intro .role { display: none; }
.intro .person-copy { width: min(100%, 360px); margin: 0 auto; padding: 13px 16px 15px; border: 1px solid rgba(255, 255, 255, .78); border-radius: 20px; background: rgba(255, 250, 239, .72); box-shadow: 0 8px 22px rgba(75, 55, 31, .1), inset 0 1px 0 rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.intro .person h2 { margin: 0 0 7px; color: #704915; font: 500 clamp(18px, 4.8vw, 20px)/1.25 var(--serif); white-space: normal; text-wrap: balance; }
.intro .person p:not(.role) { margin: 0 auto; color: #55483a; font-size: clamp(13px, 3.5vw, 14px); line-height: 1.6; }
.intro .ampersand { align-self: center; margin: 0; padding: 0; color: #a66b18; font: 400 3.5rem/1 var(--serif); }

/* A warm glass panel keeps the timeline readable while the shared Javanese art remains visible. */
.story::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 26px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .28) 0%, rgba(255, 250, 236, .04) 42%, rgba(166, 132, 77, .06) 100%),
    linear-gradient(140deg, rgba(247, 238, 216, .19), rgba(220, 207, 182, .12)),
    radial-gradient(circle at 4% 4%, rgba(170, 128, 66, .1), transparent 24%);
  opacity: 1;
  box-shadow: 0 18px 44px rgba(45, 35, 23, .2), inset 0 1px 0 rgba(255, 255, 255, .96), inset 0 0 0 1px rgba(173, 137, 78, .2);
  -webkit-backdrop-filter: blur(10px) saturate(1.24);
  backdrop-filter: blur(10px) saturate(1.24);
  pointer-events: none;
}
.story .eyebrow { color: #867348; letter-spacing: .22em; }
.story .display-title { margin-bottom: 34px; color: #76562e; font: 500 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--serif); letter-spacing: .13em; text-transform: uppercase; }
.story .display-title::after { content: ''; display: block; width: 78px; height: 9px; margin: 10px auto 0; background: linear-gradient(45deg, transparent 42%, rgba(157, 123, 66, .8) 43% 57%, transparent 58%) center / 9px 9px no-repeat, linear-gradient(90deg, transparent, rgba(157, 123, 66, .52), transparent) center / 100% 1px no-repeat; }
.story .timeline:before { background: linear-gradient(#9b7945, rgba(129, 139, 91, .25)); }
.story .timeline time { color: #8b642b; }
.story .timeline li:after { background: #8f885c; box-shadow: 0 0 0 4px rgba(143, 136, 92, .16); }
.story .timeline h3 { color: #594735; }
.story .timeline p { color: #5e574b; }

/* A looping photo carousel fills its column like the reference save-date panel. */
.save-date-section { padding: 28px 16px; background: transparent; }
.save-date-card { position: relative; isolation: isolate; width: 100%; height: auto; aspect-ratio: 4 / 6; margin: auto; overflow: hidden; border: 1px solid rgba(255, 255, 255, .72); border-radius: 0 44% 0 0 / 0 48% 0 0; clip-path: url(#save-date-photo-shape); box-shadow: 0 16px 38px rgba(65, 45, 24, .22); background: #40372c; }
.save-date-clip-def { position: absolute; width: 0; height: 0; overflow: hidden; }
.save-date-gallery { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.save-date-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: saveDateBlink 9.6s linear infinite; }
.save-date-gallery img:nth-child(1) { animation-delay: 0s; }
.save-date-gallery img:nth-child(2) { animation-delay: .8s; }
.save-date-gallery img:nth-child(3) { animation-delay: 1.6s; }
.save-date-gallery img:nth-child(4) { animation-delay: 2.4s; }
.save-date-gallery img:nth-child(5) { animation-delay: 3.2s; }
.save-date-gallery img:nth-child(6) { animation-delay: 4s; }
.save-date-gallery img:nth-child(7) { animation-delay: 4.8s; }
.save-date-gallery img:nth-child(8) { animation-delay: 5.6s; }
.save-date-gallery img:nth-child(9) { animation-delay: 6.4s; }
.save-date-gallery img:nth-child(10) { animation-delay: 7.2s; }
.save-date-gallery img:nth-child(11) { animation-delay: 8s; }
.save-date-gallery img:nth-child(12) { animation-delay: 8.8s; }
@keyframes saveDateBlink { 0%, 8.32% { opacity: 1; } 8.33%, 100% { opacity: 0; } }
.save-date-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 20, .06) 0%, rgba(18, 18, 18, .02) 45%, rgba(12, 11, 10, .68) 100%); pointer-events: none; }
.save-date-label { position: absolute; z-index: 2; inset: 0 0 auto; width: 100%; height: 62%; overflow: visible; pointer-events: none; }
.save-date-label text { fill: #fff9eb; font: 400 43px var(--script); letter-spacing: .01em; paint-order: stroke; stroke: rgba(47, 38, 32, .24); stroke-width: 1px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .58)); }
.save-date-sparkles { fill: none; stroke: rgba(255, 251, 238, .94); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .48)); }
.save-date-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5%; padding: 0 8px; color: #fff; text-align: center; }
.countdown-caption { margin: 0 0 10px; color: #fff; font: 600 .72rem/1.2 var(--sans); text-shadow: 0 2px 6px rgba(0, 0, 0, .62); }
.save-date-section .countdown { display: flex; justify-content: center; gap: 4px; margin: 0; }
.save-date-section .countdown div { display: grid; flex: 0 0 clamp(46px, 13vw, 58px); justify-items: center; padding: 8px 3px 7px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 16px; background: rgba(255, 255, 255, .17); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.save-date-section .countdown strong { color: #fff; font: 600 1rem/1 var(--sans); text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.save-date-section .countdown span { margin-top: 4px; color: #fff; font: 400 .52rem/1 var(--sans); text-transform: none; }
.event-details-section { background: transparent; }
@media (max-width: 380px) {
  .intro .portrait { width: min(260px, 78vw); }
  .save-date-label text { font-size: 39px; }
}

/* Tighten the story card while keeping the timeline comfortable to read. */
.story.section { padding: 32px clamp(18px, 2.4vw, 28px) 38px; }
.story .eyebrow { margin-bottom: 7px; }
.story .display-title { margin-bottom: 16px; }
.story .timeline li { margin-bottom: 14px; }

/* RSVP follows the reception details and gathers attendance plus a public wish in one place. */
.rsvp-section::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 28px;
  background: rgba(248, 241, 224, .76);
  box-shadow: 0 14px 32px rgba(75, 55, 31, .12), inset 0 1px 0 rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  backdrop-filter: blur(9px) saturate(1.08);
  pointer-events: none;
}
.rsvp-form { max-width: 480px; }
.rsvp-form label { color: #625d47; font: 500 1rem/1.3 var(--serif); }
.rsvp-form .guest-name-label input {
  min-height: 50px;
  margin-top: 10px;
  padding: 12px 19px;
  border: 1px solid rgba(185, 143, 76, .48);
  border-radius: 12px;
  background: rgba(255, 251, 244, .68);
  color: #766f58;
  font: 400 1rem/1.2 var(--serif);
}
.rsvp-form .guest-name-label input:read-only { cursor: default; }
.rsvp-personal-note { margin: -7px 0 27px; color: #6c6c54; font: italic 500 .98rem/1.35 var(--serif); }
.attendance-fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.attendance-fieldset legend { margin-bottom: 12px; color: #625d47; font: 500 1.12rem/1.3 var(--serif); }
.attendance-options { display: flex; justify-content: center; gap: 12px; }
.rsvp-form .attendance-options label { position: relative; display: flex; flex: 1 1 0; justify-content: center; margin: 0; cursor: pointer; }
.attendance-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.attendance-options span { display: block; width: 100%; padding: 12px 9px; border: 1px solid transparent; border-radius: 22px; color: #fffdf4; text-align: center; font: 600 .9rem/1.15 var(--serif); transition: transform .18s, box-shadow .18s; }
.attend-yes span { background: #999c68; }
.attend-no span { background: #d3b37b; }
.attendance-options label:has(input:checked) span { border-color: rgba(255, 255, 255, .92); box-shadow: 0 0 0 2px rgba(113, 99, 59, .34), 0 5px 12px rgba(75, 55, 31, .14); transform: translateY(-1px); }
.attendance-options input:focus-visible + span { outline: 2px solid #675a35; outline-offset: 3px; }
.guest-count-field { margin: -4px 0 18px !important; }
.guest-count-field select { margin-top: 9px; }
.guest-count-field small { display: block; margin-top: 6px; color: #736b54; font: italic .85rem/1.3 var(--serif); }
.rsvp-form .wish-message-label textarea { display: block; width: 100%; min-height: 116px; margin-top: 10px; padding: 14px 18px; box-sizing: border-box; border-radius: 12px; background: rgba(255, 251, 244, .68); font: 400 .95rem/1.4 var(--serif); resize: vertical; }
.rsvp-form > .primary { display: flex; width: fit-content; min-width: 190px; margin: 26px auto 0; background: #999c68; font: 600 .95rem var(--serif); letter-spacing: 0; text-transform: none; }
.rsvp-form > .primary:hover { background: #858956; }
.rsvp-section .whatsapp-note { margin: 18px auto 0; text-align: center; }
.rsvp-form .wish-message-label { display: block; width: 100%; margin: 20px 0 24px; text-align: left; }
.wish-message-label > span { display: block; }
.wish-message-label small { color: #817a64; font: italic 400 .86rem/1.2 var(--serif); }
.rsvp-form [hidden] { display: none !important; }
.response-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.response-heading h3 { min-width: 0; }
.response-attendance { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font: 600 .72rem/1.2 var(--sans); }
.response-attendance.is-attending { background: rgba(145, 151, 97, .17); color: #58603b; }
.response-attendance.is-not-attending { background: rgba(190, 150, 100, .16); color: #805d38; }
.response-attendance.is-unconfirmed { background: rgba(114, 103, 81, .12); color: #6b604e; }
.response-message { margin-top: 9px !important; }
.response-card time { display: block; margin-top: 9px; }
.story .timeline li.show-on-scroll { transition-delay: var(--story-delay, 0ms); }
.prewedding-video { width: 100%; max-width: 520px; margin: 36px auto 0; }
.prewedding-video figcaption { margin-bottom: 12px; color: #685238; font: 500 1.45rem/1.1 var(--serif); }
.prewedding-video-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255, 255, 255, .76); border-radius: 18px; background: #25221d; box-shadow: 0 14px 30px rgba(75, 55, 31, .2); }
.prewedding-video-player { display: block; width: 100%; height: 100%; border: 0; background: #25221d; object-fit: contain; }
.prewedding-video-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 150px; min-height: 44px; margin-top: 14px; padding: 10px 20px; border: 1px solid rgba(131, 94, 38, .42); border-radius: 999px; background: rgba(251, 247, 235, .9); color: #76511e; font: 600 .8rem var(--sans); cursor: pointer; box-shadow: 0 5px 14px rgba(75, 55, 31, .12); }
.prewedding-video-toggle:focus-visible { outline: 3px solid rgba(166, 119, 39, .55); outline-offset: 3px; }
.prewedding-video-toggle-icon { min-width: 1em; font-size: .92rem; line-height: 1; }
.prewedding-video-toggle:disabled { opacity: .65; cursor: not-allowed; }
.gift-section {
  isolation: isolate;
  padding: 38px clamp(18px, 2.4vw, 28px) 42px;
  color: #5f604b;
}
.gift-section::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  inset: 12px;
  border: 1px solid rgba(255, 255, 239, .82);
  border-radius: 34px;
  background-color: #d9e0b3;
  background-image: url('assets/gift-pattern.svg'), linear-gradient(135deg, rgba(255, 255, 231, .22), rgba(177, 190, 128, .1));
  background-repeat: repeat, no-repeat;
  box-shadow: 0 15px 34px rgba(67, 70, 42, .16), inset 0 1px 0 rgba(255, 255, 244, .9);
  pointer-events: none;
}
.gift-section > * { position: relative; z-index: 1; }
.gift-section .eyebrow { margin-bottom: 12px; color: #875a12; font-size: .72rem; letter-spacing: .18em; }
.gift-section > p:not(.eyebrow) { max-width: 500px; margin: 0 auto 18px; color: #5d604d; font: 400 clamp(.96rem, 2.1vw, 1.12rem)/1.5 var(--sans); }
.gift-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 270px);
  margin: 18px auto 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #91680f;
  color: #fffdf4;
  box-shadow: 0 5px 13px rgba(112, 77, 10, .16);
  font: 600 .9rem/1.2 var(--serif);
  letter-spacing: 0;
}
.gift-toggle:hover { background: #7c580b; }
.gift-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gift-details { grid-template-columns: 1fr; gap: 14px; max-width: 520px; margin: 26px auto 0; text-align: left; }
.gift-details[hidden] { display: none !important; }
.gift-details article { padding: 20px 24px; border: 1px solid rgba(161, 134, 66, .38); border-radius: 23px; background: rgba(177, 166, 105, .38); box-shadow: 0 8px 19px rgba(83, 72, 39, .1), inset 0 1px 0 rgba(255, 250, 220, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gift-details article > p { margin: 0 0 5px; color: #78632e; font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; }
.gift-details strong { color: #625b4b; font: 700 clamp(1.25rem, 4vw, 1.55rem)/1.25 var(--sans); overflow-wrap: anywhere; }
.gift-details span { margin-top: 5px; color: #625b4b; font: 400 .94rem/1.45 var(--sans); }
.gift-details .copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 0; color: #725b2a; font-size: .68rem; }
@keyframes giftReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gift-details:not([hidden]) { animation: giftReveal .3s ease-out both; }
@media (max-width: 440px) {
  .attendance-options { gap: 8px; }
  .attendance-options span { padding-inline: 6px; font-size: .82rem; }
  .response-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .save-date-gallery img { animation: none; }
  .save-date-gallery img:first-child { opacity: 1; }
}

/* A dedicated, static Javanese illustration closes the invitation. */
footer.closing-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(900px, 100svh);
  padding: 34px clamp(18px, 2.4vw, 28px) calc(120px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  text-align: left;
}
.closing-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 52% 54%, rgba(249, 246, 237, .52), rgba(249, 246, 237, .3) 53%, rgba(249, 246, 237, .06) 84%, transparent),
    linear-gradient(180deg, rgba(249, 246, 237, .14), rgba(249, 246, 237, .06) 48%, rgba(249, 246, 237, .28)),
    url('assets/closing-jawa-background.webp');
  background-position: center, center, 46% center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.closing-content {
  position: relative;
  z-index: 1;
  width: min(100%, 455px);
  margin-inline: auto;
}
.closing-portrait-wrap {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto 24px;
}
.closing-portrait {
  width: clamp(178px, 53vw, 220px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid rgba(255, 253, 246, .9);
  border-radius: 48% 48% 43% 43% / 32% 32% 24% 24%;
  background: #ede4d2;
  box-shadow: 0 10px 26px rgba(63, 48, 28, .16), 0 0 0 1px rgba(130, 105, 63, .2);
}
.closing-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.18);
}
.closing-butterfly {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.closing-butterfly-main {
  top: 5%;
  right: 1%;
  width: clamp(28px, 8vw, 36px);
  transform-origin: 50% 54%;
  animation: closingButterflyMain 7.2s ease-in-out infinite;
  animation-play-state: paused;
}
.closing-butterfly-small {
  bottom: 4%;
  left: 1%;
  width: clamp(20px, 5.5vw, 24px);
  transform-origin: 50% 54%;
  animation: closingButterflySmall 6.5s ease-in-out .45s infinite;
  animation-play-state: paused;
}
.closing-portrait-wrap.is-visible .closing-butterfly-main,
.closing-portrait-wrap.is-visible .closing-butterfly-small { animation-play-state: running; }
@keyframes closingButterflyMain {
  0%, 100% { transform: translate(0, 0) rotate(12deg) scaleX(1); }
  16% { transform: translate(3px, -3px) rotate(17deg) scaleX(.78); }
  34% { transform: translate(7px, -7px) rotate(11deg) scaleX(.96); }
  52% { transform: translate(12px, -10px) rotate(16deg) scaleX(.8); }
  72% { transform: translate(8px, -8px) rotate(10deg) scaleX(.96); }
  88% { transform: translate(3px, -4px) rotate(14deg) scaleX(.8); }
}
@keyframes closingButterflySmall {
  0%, 100% { transform: translate(0, 0) rotate(-14deg) scaleX(-1); }
  18% { transform: translate(-2px, -2px) rotate(-19deg) scaleX(-.78); }
  39% { transform: translate(-4px, -5px) rotate(-11deg) scaleX(-.96); }
  59% { transform: translate(-8px, -7px) rotate(-17deg) scaleX(-.8); }
  79% { transform: translate(-5px, -5px) rotate(-12deg) scaleX(-.96); }
}
.closing-note,
.closing-farewell {
  color: #5e5b52;
  font: 400 clamp(.98rem, 2.35vw, 1.12rem)/1.58 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.closing-note { margin: 0 0 27px; }
.closing-farewell { margin: 0 0 15px; }
.closing-signature {
  margin: 0;
  color: #93670d;
  font: 400 clamp(3.2rem, 12vw, 5.4rem)/.86 var(--script);
  letter-spacing: -.045em;
}
.closing-signature em { font-style: normal; }
.closing-hashtag {
  margin: 11px 0 0;
  color: #765b2d;
  font: 600 .84rem/1.4 var(--sans);
  letter-spacing: .1em;
  text-transform: none;
}
.closing-date {
  margin: 15px 0 0;
  color: #685b40;
  font: 600 .76rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (min-width: 761px) {
  footer.closing-section { min-height: 860px; }
}
@media (max-width: 380px) {
  footer.closing-section { padding-inline: 22px; }
  .closing-portrait { margin-bottom: 19px; }
  .closing-note { margin-bottom: 21px; }
  .closing-farewell { margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .closing-butterfly-main,
  .closing-butterfly-small { animation: none; }
}

/* Give the cover names a darker, sturdier ink color against the pale artwork. */
.cover h1 { font-weight: 500; }
.cover h1 span {
  color: #684a12;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #684a12;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78), 0 2px 5px rgba(58, 39, 12, .2);
  filter: none;
}
.cover h1 em { color: #765615; font-weight: 500; }
.guest-card h2 { color: #755311; }
.guest-card .primary {
  min-width: 198px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid #9a6c08;
  border-radius: 999px;
  background: #a8750d;
  color: #fff9eb;
  font-size: .66rem;
  box-shadow: 0 7px 15px rgba(91, 62, 9, .2);
}
.guest-card .primary:hover { background: #8f6208; }

/* A muted forest-sage glass overlay keeps RSVP text clear over the illustration. */
.rsvp-section { color: #f7f0df; }
.rsvp-section::before {
  opacity: 1;
  background: rgba(66, 74, 54, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-color: rgba(228, 208, 164, .55);
  box-shadow: 0 14px 32px rgba(37, 35, 26, .2), inset 0 1px 0 rgba(255, 245, 220, .13);
}
.rsvp-section .eyebrow,
.rsvp-section .display-title { color: #f1dfb5; }
.rsvp-form label,
.attendance-fieldset legend { color: #f7f0df; }
.rsvp-personal-note,
.guest-count-field small,
.wish-message-label small,
.rsvp-section .form-status,
.rsvp-section .whatsapp-note { color: rgba(250, 243, 225, .9); }
.rsvp-section .whatsapp-note a { color: #f0d18d; }
.rsvp-form .guest-name-label input,
.rsvp-form select,
.rsvp-form .wish-message-label textarea {
  border-color: rgba(189, 160, 103, .88);
  background: rgba(255, 251, 244, .96);
}

/* Keep content clear of the right edge of the narrow reading panel. */
.intro.section,
.event-details-section,
.rsvp-section,
.save-date-section,
.gallery-section { padding-right: clamp(32px, 3.2vw, 40px); }
@media (max-width: 680px) {
  .intro.section,
  .event-details-section,
  .rsvp-section,
  .save-date-section,
  .gallery-section { padding-right: 32px; }
}

/* Let the portraits and names read as one composition inside the profile panel. */
.intro .person-copy {
  padding: 8px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.intro .person h2 { margin-bottom: 6px; }
.intro .person p:not(.role) { max-width: 300px; }

/* Gallery photos reveal one at a time as each tile enters the viewport. */
.gallery button.show-on-scroll {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--gallery-delay, 0ms);
}
.gallery button.show-on-scroll.visible { opacity: 1; transform: none; }
.gallery button:nth-child(1) { --gallery-delay: 0ms; }
.gallery button:nth-child(2) { --gallery-delay: 75ms; }
.gallery button:nth-child(3) { --gallery-delay: 150ms; }
.gallery button:nth-child(4) { --gallery-delay: 225ms; }
.gallery button:nth-child(5) { --gallery-delay: 300ms; }
.gallery button:nth-child(6) { --gallery-delay: 375ms; }
.gallery button:nth-child(7) { --gallery-delay: 450ms; }
.gallery button:nth-child(8) { --gallery-delay: 525ms; }
.gallery {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.gallery button { aspect-ratio: 1; padding: 5px; border-radius: 17px; }
.gallery img { border-radius: 11px; }
.gallery button:first-child img { object-position: center 72%; }
@media (prefers-reduced-motion: reduce) {
  .gallery button.show-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* Keep the persistent navigation easy to read and tap without taking focus from content. */
.bottom-nav {
  min-height: 54px;
  padding: 9px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(42, 28, 13, .22);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 2px 1px;
  color: #fff5df;
}
.bottom-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav span { margin-top: 5px; font-size: .56rem; letter-spacing: .02em; }

/* A soft parchment wash gives the closing message a calm reading area. */
.closing-note {
  padding: 15px 16px;
  border: 1px solid rgba(255, 249, 234, .72);
  border-radius: 18px;
  background: rgba(250, 245, 229, .72);
  box-shadow: 0 8px 22px rgba(76, 61, 35, .1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.closing-signature { letter-spacing: -.01em; }
.closing-signature em { display: inline-block; margin-inline: .08em; }

/* Compact mobile RSVP with comfortable touch targets and navigation clearance. */
@media (max-width: 680px) {
  .rsvp-section { padding-top: 32px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .rsvp-section .eyebrow { margin-bottom: 8px; }
  .rsvp-section .display-title { font-size: clamp(26px, 6.7vw, 28px); line-height: 1.15; margin: 0 0 22px; }
  .rsvp-section .rsvp-form { display: grid; gap: 14px; }
  .rsvp-section .rsvp-form label { margin: 0; font-size: 15px; line-height: 1.35; }
  .rsvp-section .rsvp-form .guest-count-field { margin: 0 !important; }
  .rsvp-section .rsvp-form .guest-name-label input,
  .rsvp-section .rsvp-form select {
    height: 46px;
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.25;
  }
  .rsvp-section .rsvp-personal-note { margin: -8px 0 0; font-size: 13px; line-height: 1.4; font-style: normal; }
  .rsvp-section .rsvp-form .attendance-fieldset { min-width: 0; margin: 0; padding: 0; }
  .rsvp-section .attendance-fieldset legend { margin-bottom: 8px; font-size: 15px; line-height: 1.35; }
  .rsvp-section .attendance-options { gap: 8px; }
  .rsvp-section .attendance-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 14px;
    line-height: 1.2;
  }
  .rsvp-section .guest-count-field small,
  .rsvp-section .wish-message-label small { font-size: 12px; line-height: 1.4; }
  .rsvp-section .guest-count-field small { margin-top: 5px; }
  .rsvp-section .rsvp-form .wish-message-label textarea {
    height: 88px;
    min-height: 88px;
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
  }
  .rsvp-section .rsvp-form > .primary { min-height: 44px; margin: 2px auto 0; align-items: center; justify-content: center; }
  .rsvp-section .form-status { margin: 0; }
  .rsvp-section .form-status:empty { display: none; }
  .rsvp-section .whatsapp-note { margin-top: 14px; font-size: 12px; line-height: 1.45; }
  .rsvp-section :is(input, select, textarea, button) { scroll-margin-block: 24px calc(90px + env(safe-area-inset-bottom)); }
}
