/* Design layer of the guest page (D017): backgrounds, ornaments, openings and music.
   Colors come from the layout palette: --inv-accent, --inv-bg, --inv-text; --inv-dim is set
   per page from the "dim" design field. */

:root { --inv-gold: #c29a5b; --inv-gold-dark: #a9814a; --inv-ornament: #b08d57; }

/* Background: picture, GIF, muted video loop or ornament, filling a positioned parent. */
.inv-backdrop { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.inv-backdrop-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inv-backdrop-dim { position: absolute; inset: 0; background: rgb(0 0 0 / var(--inv-dim, 0)); }
.inv-backdrop-ornament, .cover-ornament {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--inv-ornament); opacity: 0.32; pointer-events: none;
}
.cover-ornament { z-index: 0; opacity: 0.22; color: var(--inv-accent); }
.invite-cover .cover-content { position: relative; z-index: 1; }

/* Classic layout: the cover becomes a hero card over the background. */
.inv-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 56px 20px 40px; margin-top: 8px; }
.inv-hero > :not(.inv-backdrop) { position: relative; z-index: 1; }

/* Text over a photo or video stays readable. */
.cover-on-media, .cover-on-media .cover-content, .cover-on-media h1, .cover-on-media p { color: #fff !important; }
.cover-on-media h1, .cover-on-media .cover-names { text-shadow: 0 2px 18px rgb(0 0 0 / 0.35); }

/* Openings: invitation-openings.css (D019). */

/* Music: a floating play/pause button. */
.inv-music {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; place-items: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--inv-accent); color: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / 0.22);
}
.inv-music[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--inv-accent); animation: inv-pulse 1.8s ease-out infinite;
}
.inv-music:focus-visible { outline: 3px solid var(--inv-gold); outline-offset: 3px; }
/* After the opening, invite.js focuses the page heading for screen readers; it is not a control, so no ring. */
main h1[tabindex="-1"]:focus { outline: none; }
@keyframes inv-pulse { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.35); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .inv-music[aria-pressed="true"]::after { animation: none; }
}
/* Customer-provided headings and control labels may be longer than the preset copy. */
h2,button,.cv-btn,.lv-button,#rsvp label span{overflow-wrap:anywhere}
/* Keep form text on the invitation surface, including dark palettes. */
#rsvp input:not([type=radio],[type=checkbox],[type=hidden]),#rsvp textarea,#rsvp select{background:var(--inv-surface,#fff);color:var(--inv-text,#24221e)}
#rsvp button[type=submit],#rsvp input:checked+span{color:var(--inv-on-accent,#fff)!important}

/* Wall of warm words (2026-10-29): a short form and the wishes guests left, in the page's own palette. */
.ww { max-width: 560px; margin: 0 auto; padding: 44px 20px 12px; text-align: center; color: var(--inv-text); }
.ww-title { margin: 6px 0 4px; font-family: var(--si-display, inherit); font-size: clamp(26px, 7.4vw, 36px); font-weight: 500; line-height: 1.15; }
.ww-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; text-align: left; }
.ww-card { position: relative; padding: 18px 20px 14px 24px; border: 1px solid color-mix(in srgb, var(--inv-accent) 24%, transparent); border-radius: 16px; background: var(--inv-surface, #fff); box-shadow: 0 8px 22px rgb(0 0 0 / 0.06); }
.ww-card::before { content: '“'; position: absolute; left: 8px; top: 2px; font-size: 38px; line-height: 1; color: color-mix(in srgb, var(--inv-accent) 55%, transparent); font-family: Georgia, serif; }
.ww-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.ww-by { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.08em; color: var(--inv-accent); overflow-wrap: anywhere; }
.ww:lang(ky) .ww-title, :lang(ky) .ww-title { font-family: var(--si-display, inherit); }

