/* Main invitation copy is 16px on desktop and 14px on mobile. */
/* Keep the animated circle attached to the phrase as the instruction wraps. */
#cover .open-hint .seal-highlight {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
#cover .open-hint .seal-highlight .drawn-circle {
  width: calc(100% + 1.2em);
  max-width: none;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10deg);
}

#cover,
#invitation,
.skip-link[href="#invitation"],
body > noscript p,
#cover .open-hint,
#invitation .navigation,
#invitation .story-copy,
#invitation .dress-intro,
#invitation .dress-group,
#invitation .entourage-copy,
#invitation .faq-intro,
#invitation .faq-list,
#invitation .reminder-copy,
#invitation .rsvp-copy,
#invitation .rsvp-button,
#invitation .event-caption {
  font-size: 16px;
}

#invitation :is(.story-copy, .dress-intro, .dress-group, .entourage-copy, .faq-intro, .faq-list, .reminder-copy, .rsvp-copy) :is(p, h3, h4),
#invitation .navigation a,
#invitation .event-caption :is(strong, span) {
  font-size: 16px;
}

/* Original rich-text runs keep their font, weight and color without scaling copy. */
#cover .open-hint span[style*="font-size"],
#invitation :is(.story-copy, .dress-intro, .dress-group, .entourage-copy, .faq-intro, .faq-list, .reminder-copy, .rsvp-copy) span[style*="font-size"] {
  font-size: inherit !important;
}

/* RSVP introduction uses the same thin face as Our Story. */
#invitation .rsvp-copy,
#invitation .rsvp-copy span[style*="font-weight"] {
  font-family: Agrandir, Arial, sans-serif !important;
  font-weight: 100 !important;
}

/* Preserve venue, section title, names, dates, and countdown display sizes. */
#invitation .venue .venue-time {
  margin: 16px 0 18px;
  font-family: Velour, Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .045em;
  color: #9d5362;
}
#invitation .details { font-size: 18.6667px; }
@media (max-width: 700px) {
  #invitation .venue .venue-time { font-size: 32px; }
  #invitation .details { font-size: 15px; }
  #cover,
  #invitation,
  .skip-link[href="#invitation"],
  body > noscript p,
  #cover .open-hint,
  #invitation :is(.navigation, .story-copy, .dress-intro, .dress-group, .entourage-copy, .faq-intro, .faq-list, .reminder-copy, .rsvp-copy, .rsvp-button, .event-caption),
  #invitation :is(.story-copy, .dress-intro, .dress-group, .entourage-copy, .faq-intro, .faq-list, .reminder-copy, .rsvp-copy) :is(p, h3, h4),
  #invitation .navigation a,
  #invitation .event-caption :is(strong, span) {
    font-size: 14px;
  }
}

/* Scale the reference composition together instead of rearranging it on phones. */
#cover { padding: clamp(12px, 2.4vw, 32px) 3.5vw 24px; }
#cover .cover-composition {
  width: min(1043px, 100%);
  margin: 0 auto;
  container-type: inline-size;
}
#cover .cover-paper {
  width: 65.3883%;
  aspect-ratio: 1599 / 1071;
  margin: 0 auto 1.15cqw;
}
#cover .cover-paper > img { object-fit: contain; }
#cover .cover-heading .script { font-size: 6.3cqw; }
#cover .cover-heading .serif { font-size: 3.74cqw; }
#cover .cover-collage {
  width: 100%;
  aspect-ratio: 1043 / 550;
  margin: 0 auto 2.11cqw;
}
#cover .cover-photo {
  top: 25%;
  height: 63.8%;
  border-radius: 0;
}
#cover .cover-card { padding: 8% 4% 9.5%; }
#cover .cover-card .couple-line { font-size: 1.6cqw; }
#cover .cover-card .date-line { font-size: 6.7cqw; }
#cover .cover-card .event-caption { font-size: 1.38cqw; }
#cover .cover-badge {
  clip-path: none;
  -webkit-mask: url('/assets/monogram-frame.svg') center / 100% 100% no-repeat;
  mask: url('/assets/monogram-frame.svg') center / 100% 100% no-repeat;
}
#cover .envelope { width: 62.2244%; }
#cover .open-hint { margin-top: 3.45cqw; }

/* Compact, keyboard-accessible FAQ questions with one answer open at a time. */
#invitation .faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid #f5e9e5;
}
#invitation .faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  color: var(--body-rose);
  text-align: left;
  cursor: pointer;
  list-style: none;
}
#invitation .faq-item summary::-webkit-details-marker { display: none; }
#invitation .faq-item summary > span { flex: 1; }
#invitation .faq-item summary > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform .2s;
}
#invitation .faq-item[open] summary > svg { transform: rotate(180deg); }
#invitation .faq-item summary:focus-visible {
  outline: 2px solid #d6aba5;
  outline-offset: 4px;
}
#invitation .faq-answer { padding: 0 0 16px; text-align: left; }
#invitation .faq-item[open] .faq-answer {
  animation: faq-answer-in .24s ease-out;
}
@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (interpolate-size: allow-keywords) {
  #invitation .faq-item { interpolate-size: allow-keywords; }
  #invitation .faq-item::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size .26s ease, opacity .2s ease, content-visibility .26s allow-discrete;
  }
  #invitation .faq-item[open]::details-content { block-size: auto; opacity: 1; }
  #invitation .faq-item[open] .faq-answer { animation: none; }
}
/* Mobile browsers can flash while animating native details content visibility. */
@media (max-width: 700px) {
  #invitation .faq-list { overflow-anchor: none; }
  #invitation .faq-item::details-content { transition: none; }
  #invitation .faq-item[open] .faq-answer { animation: faq-mobile-answer-in .18s ease-out; }
}
@keyframes faq-mobile-answer-in {
  from { opacity: .65; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #invitation .faq-item::details-content,
  #invitation .faq-item summary > svg { transition: none; }
  #invitation .faq-item[open] .faq-answer { animation: none; }
}
