/* One responsive layer for phones and tablets; the invitation keeps its desktop design. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 0; }
main, section, .invite, .venue, .schedule-copy { min-width: 0; }
img { max-width: 100%; }
.invite { align-items: center; }
.name:first-child { transform: none; padding-right: 92px; }
.second { transform: none; padding-left: 84px; }
.body-copy, .dress-intro, .wishes-copy, .contacts-intro, .venue-details {
  overflow-wrap: break-word;
}
.music-toggle.is-loading .speaker-off { opacity: .65; }
.music-toggle[hidden], .wedding-music [hidden] { display: none; }
.music-status {
  max-width: 540px;
  margin: 12px auto 0;
  font: 12px/1.6 var(--sans);
  color: var(--olive);
}
.music-player-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--olive);
  min-width: 44px;
  min-height: 44px;
  font: 24px/1 var(--sans);
  cursor: pointer;
}
.wedding-music.is-open {
  position: fixed;
  z-index: 35;
  inset: auto max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) auto;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  margin: 0;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 36px #3c423033;
}
.wedding-music.is-open > p { margin: 10px 22px 16px; font-size: 21px; }
.wedding-music.is-open .music-player-close {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.wedding-music audio { width: 100%; max-width: 620px; }
.toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.footer-title { white-space: normal; }
.venue-map-street { white-space: normal; }
.schedule-copy h3.schedule-ending { width: auto; max-width: 100%; }

@media (max-width: 1000px) and (min-width: 701px) {
  .hero { margin-inline: 22px; padding-top: 65px; }
  .hero h1 { font-size: 98px; }
  .branch { width: 150px; }
  .contacts-list { flex-direction: column; max-width: 390px; }
  .contact-person { padding-bottom: 25px; }
  .contact-person:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  body { background: var(--paper); font-size: 22px; }
  /* A full-screen noise/filter layer is costly during mobile scrolling. */
  body::after { display: none; }
  .site-head {
    min-height: 76px;
    padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .monogram { font-size: 34px; }
  .monogram span { font-size: 22px; margin-inline: 3px; }
  .nav { gap: 16px; font-size: 11px; letter-spacing: 0; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .head-date { display: none; }
  .hero {
    margin: 10px 10px 0;
    padding: 38px 28px 220px;
    min-height: 0;
  }
  .hero::before { inset: 7px; }
  .hero::after { inset: 13px; }
  .hero-arch { inset: 0; }
  .hero-inner { max-width: 400px; }
  .couple-seal { width: 78px; height: 78px; margin-bottom: 16px; }
  .eyebrow, .overline { font-size: 10px; line-height: 1.7; letter-spacing: .07em; }
  .hero .eyebrow {
    max-width: 250px;
    margin: 0 auto 22px;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .03em;
  }
  .hero h1 {
    position: relative;
    z-index: 2;
    max-width: 380px;
    font-size: clamp(58px, 17vw, 94px);
    line-height: 1.06;
    letter-spacing: -.025em;
  }
  .name:first-child { padding-right: 0; }
  .second { padding-left: 0; margin-top: 3px; }
  .amp { margin-right: 5px; }
  .hero-description {
    font-size: clamp(23px, 6.5vw, 29px);
    line-height: 1.2;
    max-width: 290px;
    margin: 22px auto 18px;
    text-wrap: balance;
  }
  .hero-date { font-size: 19px; letter-spacing: .05em; }
  .hero-place { font-size: 21px; margin: 8px 0 20px; }
  .button, .hero .button, .calendar-button { min-height: 48px; font-size: 12px; gap: 14px; padding: 12px 20px; }
  .branch { width: clamp(64px, 18vw, 96px); top: -12px; opacity: .9; }
  .branch-left { left: 0; }
  .branch-right { right: 0; }
  .hero-landscape {
    left: 3%;
    bottom: 35px;
    width: 94%;
    height: 180px;
    object-fit: contain;
    object-position: center bottom;
  }
  .hero-note { bottom: 24px; font-size: 14px; }
  .section { padding: 58px 24px; }
  .invite { max-width: 500px; gap: 48px; }
  .invite > div:first-child { max-width: 460px; }
  .invite h2 { font-size: clamp(45px, 12.8vw, 64px); line-height: 1.08; margin: 22px 0 25px; }
  .body-copy, .dress-intro, .wishes-copy, .contacts-intro, .venue-details { font-size: 23px; line-height: 1.45; }
  .body-copy { margin: 16px auto; }
  .signature { font-size: clamp(28px, 8vw, 36px); line-height: 1.35; margin-top: 24px; }
  .calendar { max-width: 360px; padding: 30px 18px 32px; margin: 0 auto; }
  .calendar::before, .calendar::after { width: 86px; top: 20px; bottom: 0; opacity: .8; }
  .calendar::before { left: -63px; }
  .calendar::after { right: -63px; }
  .calendar-overline { font-size: 10px; margin-bottom: 20px; letter-spacing: .04em; }
  .calendar-title { font-size: 54px; }
  .calendar-sub { font-size: 10px; letter-spacing: .04em; margin-bottom: 23px; }
  .calendar-grid { font-size: 24px; gap: 9px 3px; }
  .calendar-grid span { min-height: 32px; }
  .calendar-grid .day { font-size: 14px; }
  .calendar-caption { font-size: 21px; margin-top: 24px; padding-top: 16px; }
  .childhood { padding: 48px 24px 58px; }
  .childhood h2 { font-size: clamp(44px, 12vw, 58px); margin: 20px 0 30px; }
  .childhood-photos { gap: 24px; max-width: 440px; }
  .childhood-photos::after { font-size: 29px; }
  .childhood-frame { padding: 6px; }
  .childhood-frame::after { inset: 3px; }
  .childhood-slot { gap: 10px; }
  .childhood-slot p { font-size: 15px; margin: 0 5px; overflow-wrap: normal; }
  .childhood-slot svg { width: 28px; height: 28px; }
  .childhood-photo figcaption { font-size: 32px; padding-top: 20px; }
  .quote-strip { margin: 0 24px; padding: 24px 0; gap: 10px; }
  .quote-strip span { font-size: clamp(30px, 8.5vw, 39px); }
  .quote-strip small { flex-basis: 100%; font-size: 10px; letter-spacing: .04em; }
  .venue-section { margin-top: 48px; padding: 35px 18px 44px; }
  .venue { max-width: 480px; gap: 36px; }
  .venue::before { top: 90px; height: 450px; width: 96%; left: 2%; transform: rotate(-4deg); }
  .venue::after { top: 0; width: 96%; left: 2%; height: 230px; }
  .venue > div { max-width: 450px; padding: 70px 32px; }
  .venue > div::after { display: none; }
  .venue .overline { font-size: 10px; letter-spacing: .04em; }
  .venue h2 { font-size: clamp(46px, 13vw, 60px); margin: 20px 0 24px; }
  .venue .venue-address { font-size: 23px; margin: 22px 0; }
  .venue-links { gap: 8px; flex-direction: column; }
  .map-link { min-height: 44px; font-size: 21px; gap: 6px; text-align: center; }
  .venue-photo { width: calc(100% - 20px); max-width: 360px; margin-inline: 10px; padding: 8px 8px 0; }
  .venue-photo img { max-height: 320px; }
  .venue-photo figcaption { font-size: 21px; padding: 12px 3px 15px; }
  .venue-details { max-width: 450px; margin: 30px auto 0; padding: 0 8px; }
  .venue-details .venue-meta { font-size: 11px; letter-spacing: .03em; }
  .venue-map { margin-top: 30px; padding: 6px; }
  .venue-map iframe { height: 260px; filter: none; }
  .venue-map-caption { font-size: 17px; gap: 8px; padding: 12px 5px 4px; }
  .venue-map-street { font-size: 17px; white-space: normal; }
  .venue-map-caption a { display: inline-flex; align-items: center; min-height: 44px; }
  .day-plan { padding: 58px 24px 45px; }
  .day-plan h2 { font-size: clamp(49px, 13vw, 64px); margin: 20px 0 32px; }
  /* The timeline reads down the screen: time, vine, and a wide event column. */
  .schedule { max-width: 450px; padding-block: 10px; }
  .schedule-event, .schedule-event:nth-child(even) {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    column-gap: 28px;
    width: 100%;
    min-height: 185px;
    margin: 0;
    padding: 14px 0 24px;
    text-align: left;
  }
  .schedule-time { font-size: 44px; white-space: nowrap; margin-top: 4px; }
  .schedule-copy { align-items: flex-start; }
  .schedule-copy h3 { font-size: 26px; line-height: 1.15; margin: 4px 0 8px; overflow-wrap: normal; }
  .schedule-copy h3.schedule-ending { font-size: 26px; line-height: 1.15; text-align: left; }
  .schedule-copy p { font-size: 11px; line-height: 1.7; letter-spacing: 0; max-width: 100%; overflow-wrap: normal; }
  .schedule-bilingual span { white-space: normal; }
  .event-icon { width: 38px; height: 38px; margin: 13px 0 0; }
  .schedule-vine { left: 90px; width: 28px; opacity: .8; }
  .schedule-note { font-size: 32px; line-height: 1.25; max-width: 340px; margin-top: 20px; }
  .dresscode { max-width: none; margin: 0; padding: 55px 24px 40px; }
  .dresscode::before, .dresscode::after { width: 70px; height: 170px; top: 0; opacity: .6; }
  .dresscode::before { left: -12px; }
  .dresscode::after { right: -12px; }
  .dresscode h2 { font-size: clamp(50px, 14vw, 65px); margin: 22px 0 25px; }
  .dress-intro { max-width: 470px; }
  .dress-intro p { margin-bottom: 20px; }
  .inline-swatch { width: 15px; height: 15px; margin-right: 5px; }
  .wishes-section { padding: 45px 24px 55px; }
  .wishes { max-width: 470px; }
  .wishes h2 { font-size: clamp(49px, 14vw, 64px); margin: 20px 0 17px; }
  .wishes-icon { width: 60px; height: 52px; margin: 8px auto 25px; }
  .contacts-section { padding: 52px 24px; }
  .contacts-section h2 { font-size: 59px; margin: 20px 0 24px; }
  .contacts-intro { max-width: 430px; }
  .contacts-intro br { display: none; }
  .contacts-list { flex-direction: column; max-width: 320px; margin-top: 30px; gap: 24px; }
  .contact-person { padding: 0 0 24px; }
  .contact-person:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-person:last-child { padding-bottom: 0; }
  .contact-role { font-size: 11px; margin-bottom: 13px; }
  .contact-person h3 { font-size: 43px; margin-bottom: 9px; }
  .contact-phone { min-height: 44px; font-size: 17px; gap: 8px; }
  .countdown-section { padding: 52px 20px 55px; }
  .countdown-section h2 { font-size: clamp(41px, 11vw, 54px); line-height: 1.1; margin: 20px auto 30px; }
  .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 370px; margin-bottom: 30px; }
  .time { min-width: 0; }
  .time strong { font-size: clamp(42px, 12vw, 58px); letter-spacing: -.02em; }
  .time span { font-size: 10px; letter-spacing: 0; margin-top: 10px; }
  .time:not(:last-child)::after { right: -9px; top: 0; font-size: 32px; }
  .footer { padding: 38px 24px calc(100px + env(safe-area-inset-bottom)); }
  .footer-title { font-size: clamp(32px, 10vw, 44px); white-space: normal; }
  .footer-names, .footer-line { font-size: 10px; letter-spacing: .04em; }
  .footer-line { justify-content: center; gap: 9px 18px; margin-top: 24px; }
  .copy-link { font-size: 12px; min-height: 44px; }
  .wedding-music { padding: 28px 20px 35px; }
  .wedding-music > p { font-size: 22px; }
  .music-toggle {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 10px 13px;
    font-size: 11px;
    backdrop-filter: none;
    background: #faf9f1;
  }
  .toast { font-size: 13px; padding: 12px 18px; }
}

@media (max-width: 360px) {
  .site-head { justify-content: center; padding-block: 8px; }
  .monogram { font-size: 30px; }
  .nav { gap: 14px; }
  .hero { margin-inline: 8px; padding: 32px 24px 195px; }
  .hero h1 { font-size: 58px; }
  .hero .eyebrow { max-width: 220px; }
  .hero-description { font-size: 23px; }
  .hero-landscape { height: 160px; }
  .hero-note { font-size: 13px; }
  .section, .day-plan { padding-inline: 20px; }
  .calendar { padding-inline: 10px; }
  .calendar-grid { font-size: 23px; }
  .calendar-grid .day { font-size: 13px; }
  .childhood { padding-inline: 20px; }
  .childhood-photos { gap: 20px; }
  .childhood-slot p { font-size: 14px; }
  .venue > div { padding-inline: 24px; }
  .map-link { font-size: 20px; }
  .schedule-event, .schedule-event:nth-child(even) { grid-template-columns: 68px minmax(0, 1fr); gap: 24px; }
  .schedule-vine { left: 80px; width: 24px; }
  .schedule-time { font-size: 40px; }
  .schedule-copy h3, .schedule-copy h3.schedule-ending { font-size: 24px; }
  .dress-intro, .wishes-copy, .contacts-intro, .body-copy, .venue-details { font-size: 22px; }
}
