/* Complete invitation sequence: ceremony, reception, venue, dress and agenda. */
:root { --couple-font: "Cormorant Garamond", "Times New Roman", serif; }
.letter-sheet h2 { margin: 0 0 27px; }
.wedding-families { position: relative; z-index: 2; margin-bottom: 26px; gap: 15px; }
.wedding-families .family-side { display: block; margin-bottom: 9px; font: 500 12px/1.5 "Lora", serif; text-transform: uppercase; letter-spacing: .08em; }
.wedding-families p { font: 400 13px/1.8 var(--serif); }
.wedding-families p span { font-size: 12px; }
.wedding-families strong { font-weight: 400; }
.wedding-families .family-address { margin-top: 7px; font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.wedding-families .family-parent { display: block; }
.hero h1 { flex-direction: column; align-items: center; gap: 2px; font: italic 500 clamp(43px, 11.5vw, 52px)/1.2 var(--couple-font); letter-spacing: -.015em; color: var(--ink); }
.hero h1 i { font: italic 400 29px/1.15 var(--couple-font); }
.letter-salutation { margin: 26px 0 10px; }
.formal-couple { position: relative; z-index: 2; margin: 25px 0 30px; font: italic 500 clamp(38px, 10.5vw, 45px)/1.3 var(--couple-font); }
.formal-couple > span { max-width: 100%; overflow-wrap: anywhere; }
.formal-couple small { margin-top: 9px; }
.formal-couple i { margin: 15px 0; font: italic 400 31px/1.1 var(--couple-font); }
/* Soft italic serif keeps the names in the same visual family as the stationery. */
.book-cover-names { font: italic 500 38px/1.18 var(--couple-font); }
.book-cover-names i { font: italic 400 23px/1.15 var(--couple-font); }
.intro-letter { top: 91px; }
.intro-bottom { top: 248px; }
.book-intro-hint { margin-top: 4px; }
.footer-names { font: italic 500 29px/1.5 var(--couple-font); }
.closing-signature, .letter-signature, .wishes-signature { font-family: var(--couple-font); font-style: italic; }
.footer-names i, .closing-signature i, .letter-signature i { font-family: var(--couple-font); font-style: italic; }
@media (max-height: 560px) {
  .intro-letter { top: 65px; }
  .intro-bottom { top: 148px; }
  .book-cover-names { font-size: clamp(22px, 7vw, 27px); }
  .book-intro-hint { margin-top: 94px; }
}
.ceremony-details { position: relative; z-index: 2; }
.ceremony-location { margin: 0; font: 400 15px/1.75 var(--serif); text-transform: uppercase; }
.ceremony-location strong { font-weight: 400; }
.ceremony-address { margin: 7px auto 23px; max-width: 280px; font: 13px/1.7 var(--serif); color: var(--muted); }
.ceremony-details .label { margin: 0 0 12px; font: 14px/1.5 var(--serif); }
.ceremony-hour { font: 400 28px/1.4 "Lora", serif; }
.ceremony-details .event-date-strip { margin-top: 23px; }
.ceremony-leaf, .reception-leaf { position: absolute; pointer-events: none; width: 85px; height: 200px; color: #9e9675; opacity: .65; filter: drop-shadow(1px 2px 1px #786b4022); }
.ceremony-leaf { left: -34px; top: 210px; transform: rotate(10deg); }
.reception-leaf { right: -36px; top: 115px; transform: scaleX(-1) rotate(8deg); }
.lunar-date { margin: 20px auto 0; max-width: 300px; font: 12px/1.8 var(--serif); text-transform: uppercase; letter-spacing: .13em; color: #948173; }
.lunar-date:empty { display: none; }
.sample-note { margin: 12px auto 0; font: 10px/1.6 var(--sans); color: #9a8069; }
.celebration { padding-top: 34px; padding-bottom: 28px; }
.celebration h3 { position: relative; z-index: 2; margin-bottom: 28px; font: 600 20px/1.5 var(--serif); text-transform: uppercase; }
.celebration-time { position: relative; z-index: 2; }
.celebration-time .label { font: 400 16px/1.65 var(--serif); text-transform: uppercase; margin: 0 auto 18px; max-width: 280px; }
.celebration-time > strong { font: 400 29px/1.4 "Lora", serif; }
.event-date-strip { margin-top: 23px; gap: 12px; }
.event-date-strip strong { font-size: 38px; padding-inline: 16px; }
.event-date-strip small { margin-top: 4px; }
.reception-timing { display: flex; justify-content: center; gap: 25px; margin: 26px auto 0; }
.reception-timing > div { display: grid; gap: 5px; min-width: 70px; }
.reception-timing span { font: 11px/1.5 var(--serif); text-transform: uppercase; }
.reception-timing strong { font: 400 19px/1.5 "Lora", serif; }
.reception-timing + .sample-note { margin-top: 7px; }
.shared-calendar { margin-top: 25px; }
.celebration .calendar-link { margin-top: 25px; }
.rsvp-open, .celebration #rsvpLink { display: block; margin: 18px auto 0; width: fit-content; max-width: 100%; font: 500 13px/1.6 "Lora", serif; text-transform: uppercase; }
.venue-section { padding-top: 20px; padding-bottom: 20px; }
.venue-sheet { text-align: center; }
.venue-sheet h2 { margin: 0 0 17px; font: 500 18px/1.6 var(--serif); }
.venue-sheet h3 { margin: 0 0 7px; font: 500 20px/1.5 "Lora", serif; }
.venue-sheet [data-venue-side] > p { margin: 0 auto; max-width: 350px; font: 16px/1.7 var(--serif); overflow-wrap: anywhere; }
.venue-map { min-height: 260px; margin-top: 22px; border: 1px solid #dbcfbf; border-radius: 9px; overflow: hidden; background: #efe6d9; }
.venue-map iframe { display: block; width: 100%; height: 280px; border: 0; }
.venue-map > p { margin: 0; padding: 100px 25px; font: 14px/1.7 var(--serif); }
.directions-link { display: inline-flex; justify-content: center; gap: 7px; margin-top: 8px; min-height: 44px; }
.directions-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.dress-code { padding-block: 32px 40px; text-align: center; }
.dress-code h2 { margin: 0; }
.dress-subtitle { margin: 3px 0 20px; font: 15px/1.7 var(--serif); }
.dress-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 0; padding: 0; list-style: none; }
.dress-swatches li { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 0 1 59px; font: 10px/1.5 var(--serif); }
.dress-swatch { display: block; width: 42px; height: 42px; border: 1px solid #6e574c19; border-radius: 50%; box-shadow: 0 3px 6px #6e574c16; }
.dress-note { margin: 20px auto 0; max-width: 295px; font: italic 13px/1.8 "Lora", serif; color: var(--muted); }
.agenda-section { padding-top: 15px; padding-bottom: 15px; }
.agenda-paper { position: relative; padding: 30px 20px; border-radius: 12px; background: var(--paper-card); background-image: var(--paper-grain); box-shadow: 3px 4px 10px #69574b1c; }
.agenda-paper h2 { position: relative; z-index: 2; max-width: calc(100% - 20px); margin: 0 auto; text-align: center; font-size: 18px; }
.agenda-date { margin: 7px 0 0; text-align: center; font: 15px/1.6 var(--formal); letter-spacing: .08em; }
.agenda-paper .sample-note { margin-top: 3px; text-align: center; font: italic 12px/1.6 var(--serif); }
.bouquet-agenda { width: 84px; aspect-ratio: 5 / 12; right: -32px; top: -40px; --bouquet-tilt: 5deg; --bouquet-duration: 8.4s; --bouquet-delay: -2s; }
.wedding-agenda { position: relative; margin: 28px 0 0; padding: 0; list-style: none; }
.wedding-agenda li { position: relative; display: grid; grid-template-columns: 27px 46px 12px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 69px; padding-bottom: 22px; }
.wedding-agenda li:last-child { min-height: 40px; padding-bottom: 0; }
.wedding-agenda time { padding-top: 2px; font: 400 14px/1.7 "Lora", serif; }
.wedding-agenda li > span:last-child { padding-top: 3px; font: 14px/1.7 var(--serif); overflow-wrap: anywhere; }
.agenda-dot { width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: #8c7869; box-shadow: 0 0 0 3px #c3b19b33; }
.wedding-agenda li:not(:last-child)::after { position: absolute; content: ""; top: 19px; bottom: -8px; left: 101px; width: 1px; background: #b8a58e80; }
.agenda-icon { color: #ab9478; }
.agenda-icon svg { width: 27px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.agenda-ceremony { margin: 18px 0 0; padding: 17px 0 0; border-top: 1px solid #b8a58e65; text-align: center; }
.agenda-ceremony > span { font: 500 11px/1.6 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.agenda-ceremony p { margin: 5px 0 0; font: 15px/1.6 var(--formal); }
.agenda-ceremony strong { font-weight: 500; }
.agenda-ceremony #agendaCeremonyVenue { margin-top: 2px; font: italic 13px/1.6 var(--serif); color: var(--muted); }
#agendaEmpty { text-align: center; font: 15px/1.8 var(--serif); }
#countdownSlot .countdown { margin-top: 35px; }
.wishes { padding-top: 38px; }
.rsvp-dialog { max-width: 440px; }
.rsvp-dialog[open] { animation: rsvp-enter 300ms cubic-bezier(.22,.68,.25,1) both; }
.rsvp-dialog.is-closing { animation: rsvp-exit 180ms ease-in both; }
.rsvp-dialog::backdrop { background: #30261f99; backdrop-filter: blur(5px); }
.rsvp-dialog h2 { font: 500 25px/1.4 "Lora", serif; text-transform: none; }
.rsvp-dialog #rsvpDescription { font: 14px/1.7 var(--serif); margin: 14px 0; }
.rsvp-event { padding: 12px; border-radius: 7px; background: #efe3d5; font: 12px/1.8 var(--serif); }
#rsvpForm { text-align: left; }
#rsvpForm > label, #rsvpGuestsWrap > label, #rsvpForm legend { display: block; margin: 18px 0 7px; font: 500 14px/1.6 var(--serif); }
#rsvpForm input[type="text"], #rsvpForm select { display: block; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbb6a1; border-radius: 7px; background: #fffaf3; color: #69574b; font: 16px/1.5 var(--serif); }
#rsvpForm fieldset { margin: 0; padding: 0; border: 0; }
.rsvp-choice { display: flex; align-items: center; gap: 9px; min-height: 46px; margin: 7px 0; padding: 9px 11px; border: 1px solid #d8c7b6; border-radius: 7px; font: 14px/1.5 var(--serif); cursor: pointer; }
.rsvp-choice:has(:checked) { border-color: #8c7663; background: #eee1d1; }
.rsvp-choice input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: #806d60; }
.rsvp-privacy { margin: 17px 0; font: 11px/1.7 var(--sans); color: #8b7664; }
#sendRsvp { width: 100%; }
#sendRsvp:disabled { opacity: .65; cursor: wait; }
#rsvpStatus { text-align: center; }
@keyframes rsvp-enter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rsvp-exit { to { opacity: 0; transform: translateY(12px) scale(.99); } }
@media (min-width: 480px) {
  .letter-sheet { padding-block: 40px 48px; }
  .ceremony-leaf { width: 120px; height: 280px; left: -55px; top: 220px; }
  .reception-leaf { width: 110px; height: 260px; right: -48px; top: 110px; }
  .agenda-paper { padding-inline: 35px; }
  .wedding-agenda { max-width: 300px; margin-inline: auto; }
  .bouquet-agenda { width: 92px; right: -38px; }
}
@media (max-width: 350px) {
  .wedding-families { gap: 8px; }
  .wedding-families p { font-size: 12px; }
  .ceremony-leaf { width: 60px; left: -26px; opacity: .45; }
  .reception-leaf { width: 61px; right: -28px; opacity: .45; }
  .celebration-time .label { font-size: 14px; }
  .lunar-date { font-size: 10px; }
  .dress-swatches { gap: 10px; }
  .dress-swatches li { flex-basis: 50px; }
  .dress-swatch { width: 36px; height: 36px; }
  .agenda-paper { padding-inline: 15px; }
  .wedding-agenda li { grid-template-columns: 23px 41px 9px minmax(0, 1fr); gap: 9px; }
  .wedding-agenda li:not(:last-child)::after { left: 86px; }
  .agenda-icon svg { width: 23px; }
  .wedding-agenda time { font-size: 13px; }
  .wedding-agenda li > span:last-child { font-size: 13px; }
  .bouquet-agenda { width: 55px; right: -21px; }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-dialog[open], .rsvp-dialog.is-closing { animation: none; }
}
