/* Desktop is a portrait invitation on an olive-paper desk, not a landscape crop.
   Both the fixed opening cover and every scrolling section share this exact canvas. */
@media (min-width: 900px) {
  :root {
    --invitation-width: min(600px, 56.25svh);
  }
  body {
    background: #e8e8dd;
  }
  main {
    width: var(--invitation-width);
    margin-inline: auto;
    background: var(--paper);
    box-shadow:
      0 0 0 1px #585b2f18,
      0 12px 70px #40492e16;
  }
  .envelope {
    left: calc((100% - var(--invitation-width)) / 2);
    right: auto;
    width: var(--invitation-width);
  }
  .hero {
    height: 100svh;
    min-height: 0;
  }
  .hero-copy {
    top: 27%;
    bottom: auto;
    width: min(320px, 82%);
  }
  .hero .venue {
    font-size: 17px;
    line-height: 1.5;
  }
  .hero h1 {
    font-size: 37px;
  }
  html[lang="th"] .hero h1 {
    font-size: 31px;
  }
  html[lang="th"] .hero .venue {
    font-size: 17px;
  }
  .language-switch {
    right: calc((100% - var(--invitation-width)) / 2 + 16px);
  }
  .countdown {
    padding-top: 85px;
  }
  .countdown-frame {
    width: min(390px, 100%);
  }
  .clock strong {
    font-size: 30px;
  }
  .clock div:first-child strong {
    font-size: 55px;
  }
  .clock span {
    font-size: 16px;
  }
  .clouds {
    height: 285px;
  }
  .clouds img {
    height: 270px;
    width: 120%;
  }
  .story {
    padding-bottom: 70px;
  }
  .story-copy {
    max-width: 350px;
  }
  .celebration-copy {
    background-image: url("assets/olive-base.webp");
    padding: 152px 36px 70px;
  }
  .fountain {
    margin-bottom: -75px;
  }
  .celebration h3 {
    font-size: 42px;
    margin-top: 0;
  }
  .celebration-copy .venue-full {
    max-width: 340px !important;
    font-size: 22px !important;
  }
  .celebration-copy p[lang="th"] {
    font-size: 16px !important;
  }
  .celebration-copy > p:not(.caps) {
    font-size: 21px;
  }
  .celebration .time {
    display: block;
    font-size: 22px;
    margin-top: 12px;
  }
  .villa {
    width: 100%;
  }
  .floral-divider {
    height: 110px;
  }
  .dress {
    padding-inline: 32px;
    padding-bottom: 65px;
  }
  .welcome {
    padding-inline: 24px;
  }
  .welcome-card {
    height: 700px;
  }
  .welcome-copy {
    padding: 140px 65px 0;
  }
  .welcome-copy h2 {
    font-size: 42px;
  }
  .welcome-copy h3 {
    font-size: 36px;
  }
  .welcome-copy > p:not(.caps) {
    font-size: 19px;
  }
  .welcome-copy .welcome-hashtag {
    font-size: 13px !important;
  }
  .gifts,
  .rsvp,
  .location {
    padding-inline: 38px;
  }
  .location .location-address {
    font-size: 15px;
  }
  .gift-wreath {
    max-width: 100%;
  }
  .rsvp form {
    max-width: 390px;
  }
  footer {
    width: var(--invitation-width);
  }
}
/* A short laptop still needs a readable portrait, rather than compressing its type. */
@media (min-width: 900px) and (max-height: 760px) {
  :root {
    --invitation-width: 427.5px;
  }
  .hero {
    height: 760px;
  }
  .envelope {
    height: 760px;
    bottom: auto;
  }
  .envelope .open-hint {
    bottom: calc(760px - 100svh + 34px);
  }
  .envelope .skip {
    bottom: calc(760px - 100svh + 24px);
  }
  .envelope video,
  .envelope-poster {
    object-fit: cover;
    object-position: center top;
  }
  .hero-copy {
    top: 20%;
  }
  .hero h1 {
    font-size: 33px;
  }
  html[lang="th"] .hero h1 {
    font-size: 29px;
  }
  .hero .venue,
  html[lang="th"] .hero .venue {
    font-size: 15px;
  }
}
