/* Clear ruby and antique-gold ink on Sargam's existing paper surfaces. */
#invitation-page :is(#invitation,#events,#story,#gallery,#travel,#rsvp,#closing) {
  --ink: #3e2e23;
  --ruby: #7c1738;
  --gold: #805821;
  --muted: #685038;
}

#invitation-page :is(.invitation-card .blessing,.families p,.invite-request,.date-block,
  .celebrations-heading > p:last-child,.event-chapter-venue,.event-chapter-description,
  .story-copy > p:first-child,.guest-heading > p:last-child,.venue-copy p:not(.eyebrow),
  .guest-note p,.rsvp .section-heading > p:not(.eyebrow),.closing > p:not(.eyebrow)) {
  font-weight: 500;
}

#invitation-page :is(#invitation,#story,#gallery,#travel,#rsvp,#closing) .section-heading h2,
#invitation-page .invitation-card h2,
#invitation-page .celebrations-heading h2,
#invitation-page .closing h2 {
  color: #7c1738;
}

#invitation-page :is(#invitation,#events,#story,#gallery,#travel,#rsvp,#closing) .eyebrow {
  color: #805821;
  font-weight: 500;
}

#invitation-page .event-chapter-number,
#invitation-page .guest-note-number {
  color: #805821;
}

#invitation-page .event-attire-label {
  color: #685038;
  font-weight: 500;
}

#invitation-page .hero-bottom .scroll-cue {
  text-shadow: 0 1px 5px #fff4e4, 0 0 14px #fff4e4cc;
}

/* Each floating control has its own quiet backing, so copy remains readable. */
#invitation-page .controls { left: 12px; right: 12px; bottom: max(10px,env(safe-area-inset-bottom)); justify-content: space-between; }
#invitation-page .controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #ab865e33;
  border-radius: 24px;
  background: #fff5e7eb;
  box-shadow: 0 2px 12px #49321a0d;
  color: #7c1738;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .025em;
  text-shadow: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#invitation-page[data-controls-tone="dark"] .controls button {
  color: #fff8e9;
  background: #4d263deb;
  border-color: #e3c99944;
  text-shadow: none;
}

body.menu-open #invitation-page[data-controls-tone] .controls button {
  color: #7c1738;
  background: #fff5e7eb;
  border-color: #ab865e33;
  text-shadow: none;
}

@media (max-width:759px) {
  #invitation-page .invitation-card > .eyebrow,
  #invitation-page .families .label,
  #invitation-page .event-attire-label,
  #invitation-page .photo-button > .label,
  #invitation-page .countdown-grid span {
    font-size: 9px;
    letter-spacing: .1em;
    line-height: 1.5;
  }

  #invitation-page :is(.memory-tags span,.gallery-controls p,.rsvp-note,
    .invitation-card .text-button,.closing footer) {
    font-size: 10px;
  }

  #invitation-page .calendar-actions {
    font-size: 11px;
  }

  #invitation-page .event-chapter-date,
  #invitation-page .event-chapter-map {
    font-size: 11px;
  }
}
