/* The invitation is read one quiet, generous composition at a time. */
@media (max-width: 650px) {
  html { scroll-padding-top: 112px; }
  .section {
    margin-inline: 32px;
    padding: 80px 0;
    max-width: none;
    scroll-margin-top: 0;
    text-align: center;
  }
  .section .eyebrow { font-size: 9px; line-height: 1.7; letter-spacing: .19em; margin-bottom: 22px; }
  .section h2 {
    font-size: clamp(43px, 12.5vw, 62px);
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 26px;
    text-wrap: balance;
  }
  .welcome { padding-block: 90px 76px; }
  .welcome > p:not(.eyebrow) { max-width: 295px; margin-inline: auto; font-size: 13px; line-height: 1.95; text-wrap: pretty; }
  .tiny-flower { font-size: 19px; margin-top: 28px; opacity: .65; }
  .event { gap: 46px; padding-top: 10px; padding-bottom: 82px; }
  .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 10px;
    border-top: 1px solid var(--line);
  }
  .event-date > .eyebrow { margin: 0 0 18px; font-size: 8px; }
  .date-day { font-size: 104px; line-height: .85; margin: 12px 0; }
  .date-month { font-size: 30px; line-height: 1.05; }
  .date-year { font-size: 8px; letter-spacing: .12em; margin-top: 9px; }
  .date-rule { display: none; }
  .event-date > .text-link { grid-column: 1 / -1; justify-self: center; margin-top: 24px; }
  .event-copy { text-align: center; }
  .arrival { font-size: 23px; margin-bottom: 12px; }
  address { font-size: 13px; line-height: 1.85; }
  .text-link { min-height: 44px; align-items: center; font-size: 9px; letter-spacing: .15em; margin-top: 20px; padding-bottom: 1px; }
  .notes { gap: 16px; }
  .notes h2 { margin-bottom: 22px; }
  .notes-list summary { font-size: 22px; line-height: 1.25; padding: 22px 25px; text-align: center; }
  .notes-list summary span { top: 35px; }
  .notes-list p { font-size: 12px; line-height: 1.9; margin: -3px 14px 23px; text-align: center; }
  .rsvp { gap: 30px; padding-bottom: 75px; }
  .rsvp-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; }
  .rsvp-intro h2 { margin-bottom: 24px; }
  .attendance-options { gap: 10px; }
  .attendance-options span { min-height: 55px; display: grid; place-items: center; font-size: 18px; line-height: 1.1; padding: 12px 8px; }
  legend, .form-row label { font-size: 11px; text-align: center; }
  legend { width: 100%; }
  fieldset { margin-bottom: 30px; }
  .form-row { margin-bottom: 26px; }
  .form-row input, .form-row textarea { min-height: 48px; padding-block: 13px; text-align: center; }
  .form-row textarea { min-height: 92px; }
  .form-row input::placeholder, .form-row textarea::placeholder { font-size: 12px; }
  .acknowledge { align-items: flex-start; font-size: 11px; line-height: 1.7; padding-block: 6px; gap: 12px; margin-bottom: 35px; }
  .acknowledge input { width: 18px; height: 18px; margin-top: 1px; }
  .acknowledge { justify-content: center; }
  .acknowledge span { max-width: 235px; text-align: center; }
  .submit.button.primary { width: 210px; margin-inline: auto; margin-block: 30px 37px; min-height: 52px; font-size: 10px; }
  .form-privacy { font-size: 10px; line-height: 1.8; max-width: 245px; margin-inline: auto; }
  footer { margin-inline: 32px; padding: 48px 0 95px; }
  footer p { font-size: 23px; margin-block: 14px 18px; }
  footer > .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .header nav a { min-height: 44px; display: grid; place-items: center; }
  .header nav .monogram { display: block; }
  .header nav a:first-child, .header nav .nav-notes { display: none; }
  .frame-rsvp { min-height: 44px; }
  .hero-foot > a { min-height: 44px; justify-content: center; }
  .hero-foot { bottom: 30px; }
  .rsvp-in-view .frame-rsvp { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .frame-rsvp { transition: opacity .3s ease, visibility .3s ease; }
  .reveal { transform: translateY(16px); transition-duration: .85s, 1.05s; }
  .notes-list summary span::after { transition: transform .35s var(--ease-out); }
  .notes-list details[open] summary span::after { display: block; transform: rotate(90deg); }
  .form-row input, .form-row textarea { transition: border-color .3s ease; }
  .attendance-options span { transition: background .3s ease, border-color .3s ease; }
  @supports (interpolate-size: allow-keywords) {
    .notes-list { interpolate-size: allow-keywords; }
    .notes-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
    .notes-list details[open]::details-content { height: auto; }
  }
}

/* Interface glyphs use the official Phosphor Light artwork, served locally. */
.ph-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--ph-icon) center / contain no-repeat;
  vertical-align: middle;
}
.ph-external { --ph-icon: url('/assets/phosphor/arrow-square-out-light.svg'); }
.ph-flower { --ph-icon: url('/assets/phosphor/flower-light.svg'); width: 24px; height: 24px; }
.notes-list summary .ph-toggle {
  --ph-icon: url('/assets/phosphor/plus-light.svg');
  width: 14px;
  height: 14px;
  top: calc(50% - 7px);
  background: currentColor;
  color: var(--accent);
}
.notes-list details[open] summary .ph-toggle { --ph-icon: url('/assets/phosphor/minus-light.svg'); }
.notes-list summary .ph-toggle::after { display: none !important; }
