/* RSVP-only extension of the existing secondary-page invitation language. */
.rsvp-page { color: var(--warm-bone); font-family: var(--serif); }
.rsvp-page .page-frame { max-width: 60rem; }
.rsvp-page .page-header { margin-bottom: 2.5rem; }
.rsvp-content { max-width: 38rem; margin-inline: auto; }
.rsvp-content:focus { outline: none; }
.rsvp-card { padding: clamp(1.2rem, 4vw, 2.5rem); border: 1px solid var(--gold-line); background: linear-gradient(140deg, #21111ff2, #130c16f5); box-shadow: 0 1.5rem 5rem #0003; }
.rsvp-card h2 { font-size: 1.9rem; line-height: 1.2; font-weight: 400; margin: 0 0 .8rem; }
.rsvp-card h3 { font-size: 1.65rem; font-weight: 400; margin: 0; }
.rsvp-card p { font-size: 1.2rem; line-height: 1.5; margin-block: .7rem 1.25rem; }
.rsvp-card .rsvp-kicker { color: var(--antique-gold); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.rsvp-label { display: block; font-size: 1.25rem; line-height: 1.4; margin: 1rem 0 .5rem; }
.rsvp-label-hint { font-size: 1.05rem; }
.rsvp-input { display: block; width: 100%; min-width: 0; min-height: 3.1rem; border: 1px solid #8e7959; border-radius: 2px; padding: .65rem .8rem; color: var(--warm-bone); background: #100b13; font: inherit; font-size: 1.2rem; line-height: 1.35; }
.rsvp-input option { color: var(--warm-bone); background: #100b13; }
.rsvp-button { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 100%; min-height: 3.2rem; padding: .85rem 1rem; margin-top: 1.4rem; border: 1px solid var(--antique-gold); border-radius: 2px; background: var(--antique-gold); color: var(--black-plum); text-align: center; text-decoration: none; font: inherit; font-size: 1.2rem; line-height: 1.4; cursor: pointer; }
.rsvp-button:hover { background: #d0b577; }
.rsvp-card .rsvp-note { font-size: 1.05rem; line-height: 1.5; color: #d1c2b5; margin: .8rem 0 0; }
.rsvp-reset { text-align: center; margin: 1.2rem 0 0; }
.rsvp-text-button { background: transparent; color: var(--antique-gold); border: 0; padding: .7rem .3rem; min-height: 44px; font: inherit; font-size: 1.1rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.rsvp-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #f0d393; outline-offset: 4px; }
.rsvp-guest { min-width: 0; margin: 1.75rem 0 0; padding: 1.1rem 0 1.6rem; border: 0; border-bottom: 1px solid var(--gold-line); }
.rsvp-guest > legend { font-size: 1.55rem; padding: 0; }
.rsvp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.rsvp-choice { display: flex; align-items: center; gap: .65rem; padding: .75rem; min-height: 3.2rem; border: 1px solid #8e7959; border-radius: 2px; cursor: pointer; font-size: 1.1rem; line-height: 1.35; background: #100b1366; }
.rsvp-choice:has(input:checked) { border-color: var(--antique-gold); background: #39243b; }
.rsvp-choice input { flex-shrink: 0; margin: 0; width: 1.15rem; height: 1.15rem; accent-color: var(--antique-gold); }
.rsvp-plus-one { min-width: 0; margin: 1.5rem 0 0; padding: 1rem; border: 1px solid var(--gold-line); }
.rsvp-plus-one legend { font-size: 1.25rem; padding-inline: .35rem; }
.rsvp-plus-one .rsvp-note { margin: 0 0 1rem; }
.rsvp-plus-one .rsvp-input + .rsvp-note { margin: .7rem 0 0; }
.rsvp-questions { padding-top: 1.6rem; }
.rsvp-field { margin-top: 1.4rem; }
.rsvp-submit { margin-top: 1.75rem; }
.rsvp-alert { padding: 1rem 1.3rem; border: 1px solid #d8a18e; background: #301a24; margin-bottom: 1.25rem; }
.rsvp-alert h2 { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 400; }
.rsvp-alert p, .rsvp-message { margin: 0; font-size: 1.2rem; line-height: 1.5; }
.rsvp-message { padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--gold-line); }
.rsvp-confirmation { text-align: center; }
.rsvp-seal { color: var(--antique-gold); font-size: 2.5rem; }
.rsvp-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2; transform: translateY(-200%); padding: .7rem 1rem; color: var(--black-plum); background: var(--warm-bone); font-size: 1.1rem; }
.rsvp-skip:focus { transform: none; }
.rsvp-page :is(.rsvp-card, .rsvp-alert, legend, label, h2, p) { overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .rsvp-choices { grid-template-columns: minmax(0, 1fr); }
  .rsvp-plus-one { padding: .8rem; }
  .rsvp-page .page-intro { font-size: 1.25rem; }
}
@media (forced-colors: active) {
  .rsvp-choice:has(input:checked) { outline: 2px solid Highlight; }
  .rsvp-input, .rsvp-choice, .rsvp-button { border-color: ButtonText; }
}
/* Bound decorative spacing in physical pixels on narrow viewports. Rem-based
   inset stacks otherwise consume the reading column when text is enlarged. */
@media (max-width: 540px) {
  .rsvp-page.content-page { padding-inline: clamp(10px, 3.5vw, 18px); }
  .rsvp-page .page-frame { padding-inline: 0; }
  .rsvp-card { padding-inline: clamp(12px, 4vw, 20px); }
  .rsvp-plus-one { padding-inline: 8px; }
  .rsvp-plus-one legend { padding-inline: 4px; }
  .rsvp-choice { padding-inline: 8px; gap: 10px; }
  .rsvp-choice input { width: clamp(18px, 1.15rem, 28px); height: clamp(18px, 1.15rem, 28px); }
  .rsvp-input { padding-inline: 10px; }
  .rsvp-button { padding-inline: 12px; gap: 10px; }
  .rsvp-alert { padding-inline: 12px; }
}
.rsvp-code { letter-spacing: .12em; text-transform: uppercase; }
.rsvp-guest-questions { margin-top: 1.25rem; }

.rsvp-field > .rsvp-note { margin: 0 0 .7rem; }
.rsvp-song { min-width: 0; padding: 0; border: 0; }
.rsvp-song > legend { padding: 0; font-size: 1.25rem; }
.rsvp-message-input { resize: vertical; min-height: 7rem; }

/* Native disclosures keep the full menu available without repeating a long
   expanded menu for every person. They work with keyboard and without scripts. */
.rsvp-menu { margin-top: .6rem; border-bottom: 1px solid var(--gold-line); }
.rsvp-menu summary { min-height: 44px; padding: .65rem .2rem; color: #d0b577; font-size: 1.1rem; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.rsvp-menu dl { margin: .5rem 0 1rem; }
.rsvp-menu dt { margin-top: 1rem; color: var(--warm-bone); font-size: 1.2rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rsvp-menu dd { margin: .4rem 0 0; color: #d1c2b5; font-size: 1.1rem; line-height: 1.55; overflow-wrap: anywhere; }

/* Hidden sections stay out of layout even when their normal display is flex. */
.rsvp-page [hidden] { display: none !important; }
.rsvp-inline-error { display: block; color: #f0b8a7; font-size: 1.05rem; line-height: 1.5; margin-block: .5rem; }
.rsvp-input[aria-invalid="true"] { border-color: #f0b8a7; }
.rsvp-alert a { color: var(--warm-bone); text-underline-offset: .2em; }
.rsvp-live-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
