/* Phone invitation: readable paper, generous touch targets, complete original art. */
@media (max-width: 720px) {
  :root {
    --mobile-nav-height: 60px;
    --mobile-nav-safe: env(safe-area-inset-bottom, 0px);
    --mobile-gutter: clamp(20px, 6vw, 28px);
  }

  html {
    scroll-padding-top: 18px;
    scroll-padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-safe) + 20px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-safe) + 12px);
    font-size: 14px;
    line-height: 1.9;
  }

  .site-header {
    height: 70px;
    padding: 0 var(--mobile-gutter);
    gap: 16px;
  }

  .site-header nav {
    display: none;
  }

  .site-header .monogram {
    width: auto;
    flex: 0 0 auto;
    font-size: 20px;
    letter-spacing: 2px;
  }

  .site-header .monogram span {
    font-size: 26px;
    margin: 0 7px;
  }

  .site-header .header-date {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-height: 44px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0.7px;
    white-space: nowrap;
  }

  .site-header .header-date span {
    margin-left: 0;
    font-size: 17px;
  }

  .hero {
    padding: 32px var(--mobile-gutter) 0;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.55;
    letter-spacing: 1px;
  }

  .hero .hero-intro,
  .hero .hero-event-info {
    font-size: 13.5px;
    line-height: 1.95;
    color: #d5d7df;
    letter-spacing: 0.25px;
    margin: 20px 0 24px;
  }

  .couple-names {
    font-size: 28px;
    line-height: 1.6;
    gap: 14px;
    letter-spacing: 2px;
  }

  .couple-names em {
    font-size: 34px;
  }

  .couple-roman {
    font-size: 8px;
    letter-spacing: 1.2px;
    margin: 9px 0 24px;
  }

  .button {
    min-height: 48px;
    font-size: 13px;
    line-height: 1.5;
    padding: 13px 21px;
    letter-spacing: 0.7px;
  }

  .hero-copy > .button.primary {
    width: min(100%, 280px);
    min-height: 52px;
    padding: 15px 24px;
    font-size: 13.5px;
  }

  .hero-copy .magic-controls.hero-magic-controls {
    position: static;
    inset: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 280px);
    max-width: 300px;
    margin: 13px auto 0;
    border: 1px solid #d4bc8d77;
    border-radius: 5px;
    background: #faf6ea0d;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-copy .hero-magic-controls button {
    min-width: 0;
    min-height: 46px;
    padding: 11px 8px;
    color: #e8d7b5;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.35px;
    white-space: nowrap;
  }

  .hero-copy .hero-magic-controls button + button {
    border-left-color: #d4bc8d55;
  }

  .hero-copy .hero-magic-controls button:hover {
    background: #f6db9f14;
  }

  .hero-copy .hero-magic-controls button:disabled {
    opacity: 0.45;
    background: transparent;
  }

  .hero-art.official-castle-scene {
    margin: 32px auto 0;
    max-width: 440px;
  }

  .hero-bottom {
    margin-top: 25px;
    padding: 14px 0 18px;
  }

  .hero-bottom > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .section {
    padding: 52px var(--mobile-gutter);
  }

  .section-head {
    margin-bottom: 28px;
  }

  h2,
  .invitation-message h2,
  .story-heading h2,
  .venue-copy h2,
  .stay-heading h2,
  .friends-section h2,
  .closing-copy h2 {
    font-size: 27px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    margin-bottom: 22px;
  }

  .invitation-message > p:not(.handwritten),
  .story-heading > p,
  .story-prose,
  .venue-description,
  .stay-heading > p:last-child,
  .stay-details > p,
  .friends-intro,
  .closing-copy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.1px;
  }

  .invitation.section {
    padding-top: 44px;
  }

  .invitation-layout {
    gap: 32px;
  }

  .signature {
    line-height: 1.9;
  }

  .event-card {
    padding: 28px 25px 24px;
  }

  .event-card dl > div {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }

  .event-card dt {
    font-size: 11px;
    line-height: 1.8;
  }

  .event-card dd strong {
    font-size: 15px;
    line-height: 1.7;
  }

  .event-card dd span {
    font-size: 11.5px;
    line-height: 1.8;
  }

  .text-link {
    min-height: 44px;
    padding: 10px 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .event-note,
  .venue-note,
  .story-pending {
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: 0.1px;
  }

  .countdown-wrap {
    margin-top: 32px;
    padding-top: 26px;
    gap: 22px;
  }

  .countdown-wrap > p {
    font-size: 14px;
  }

  .countdown span {
    font-size: 9px;
  }

  .storybook-nav {
    padding: 40px var(--mobile-gutter) 8px;
  }

  .storybook-nav h2 {
    font-size: 26px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    margin-bottom: 23px;
  }

  .world-links {
    gap: 0;
    padding: 0 0 14px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .world-links > a {
    flex: 0 0 114px;
    min-width: 114px;
    min-height: 100px;
    padding: 11px 10px 12px;
    scroll-snap-align: start;
  }

  .world-links b {
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.5px;
  }

  .world-links small {
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    margin-top: 3px;
  }

  .world-links a > span {
    min-height: 37px;
    font-size: 26px;
  }

  .worlds-scroll-note {
    display: block;
    color: #9a8b70;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.4px;
    margin: -6px 0 17px;
  }

  .story-heading > p {
    margin-top: 18px;
  }

  .story-book-right {
    padding: 30px 25px;
  }

  .story-book h3,
  .stay-details h3 {
    font-size: 24px;
    line-height: 1.75;
    letter-spacing: 0.3px;
  }

  .chapter-date span {
    font-size: 10px;
    line-height: 1.7;
  }

  .venue.section {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 30px;
  }

  .venue-copy h3 {
    font-size: 18px;
    line-height: 1.75;
  }

  .venue-copy .venue-address,
  .event-card dd .event-street-address {
    display: block;
    max-width: 100%;
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
    letter-spacing: 0.1px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .venue-copy .venue-address {
    color: #6f7886;
    margin: 12px 0 20px;
  }

  .event-card dd .event-street-address {
    margin-top: 7px;
  }

  .venue-links {
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .venue-links .secondary {
    min-height: 48px;
    min-width: 142px;
    font-size: 13px;
  }

  .stay-heading {
    margin-bottom: 30px;
  }

  .stay-details {
    padding: 28px 25px;
  }

  .stay-details .status {
    font-size: 11px;
    margin-bottom: 18px;
  }

  .stay-details dl,
  .stay-details dl div {
    font-size: 13px;
    line-height: 1.9;
  }

  .stay-details dl div {
    gap: 12px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .guest-notes {
    margin-top: 30px;
  }

  .guest-notes > p {
    font-size: 15px;
  }

  .guest-notes summary {
    min-height: 52px;
    padding: 14px 0;
    font-size: 13.5px;
    line-height: 1.8;
    gap: 16px;
  }

  .guest-notes details p {
    font-size: 13.5px;
    line-height: 1.9;
    margin-bottom: 18px;
  }

  .friends-section.section {
    padding-top: 14px;
    padding-bottom: 44px;
  }

  .official-friends {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 8px;
    margin-top: 28px;
  }

  .official-friends figure {
    flex: 0 0 calc(25% - 6px);
    max-width: 120px;
  }

  .official-friends figcaption {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    margin-top: 9px;
  }

  .frozen-finale {
    padding: 44px var(--mobile-gutter) 42px;
    gap: 29px;
  }

  .closing-copy .closing-names {
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 2px;
  }

  .closing-copy .back-top {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 22px;
    font-size: 12px;
  }

  footer {
    padding: 24px var(--mobile-gutter) 15px;
    gap: 12px;
  }

  footer p {
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.5px;
  }

  .official-art-credit {
    padding: 0 var(--mobile-gutter) 22px;
    font-size: 8px;
    line-height: 1.9;
    letter-spacing: 0.1px;
  }

  nav.mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(var(--mobile-nav-height) + var(--mobile-nav-safe));
    padding: 5px 9px calc(5px + var(--mobile-nav-safe));
    border-top: 1px solid #c9b88e66;
    background: #fbf7efed;
    box-shadow: 0 -5px 24px #4438200a;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 5px;
    color: #566177;
    text-align: center;
    touch-action: manipulation;
  }

  .mobile-bottom-nav b {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .mobile-bottom-nav small {
    color: #a28a65;
    font-size: 8.5px;
    line-height: 1.4;
    letter-spacing: 0.7px;
    white-space: nowrap;
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav a[aria-current="location"] {
    color: #2c3d56;
    background: #ded2b733;
  }

  .mobile-bottom-nav a:focus-visible {
    outline-offset: -3px;
  }

  .intro-content {
    padding: calc(34px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .intro-content h2 {
    font-size: 28px;
    line-height: 1.7;
    letter-spacing: 1px;
  }

  .intro-content #intro-description {
    font-size: 13.5px;
    line-height: 1.9;
    letter-spacing: 0.6px;
  }

  .intro-content .intro-button {
    width: min(100%, 280px);
    min-height: 50px;
    font-size: 13.5px;
    padding: 14px 24px;
  }

  .intro-content #skip-intro {
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 5px;
    font-size: 12px;
    line-height: 1.7;
  }

  .toast {
    bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-safe) + 16px);
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 33px;
  }

  .site-header {
    gap: 12px;
  }

  .site-header .header-date {
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  .event-card,
  .story-book-right,
  .stay-details {
    padding-left: 21px;
    padding-right: 21px;
  }
}
