/* Keeps the original template structure while refining copy hierarchy. */
.invite-shell::after {
  display: none;
}

.opening {
  transition: opacity .7s ease, transform .7s ease, visibility .7s ease;
}

.opening.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.paper-section {
  background-image: url("../images/paper-fiber-ivory.webp");
  background-size: 480px 480px;
  background-blend-mode: multiply;
}

.paper-section::before {
  opacity: .04;
}

.opening-image,
.hero-image {
  background-image: url("../images/hero-family.png?v=20260721b");
  background-position: 56% 36%;
}

.letter-section,
.schedule-section,
.venue-section,
.rsvp-section {
  background-color: var(--paper);
}

.opening-copy {
  padding: clamp(42px, 7vh, 72px) 28px 38px;
}

.opening-kicker {
  font-size: 12px;
  letter-spacing: .2em;
}

.opening-copy h1 {
  margin-top: 18px;
  font-size: clamp(38px, 10.5vw, 62px);
}

.opening-names {
  margin: 24px 0 0;
  letter-spacing: .09em;
  font-family: "Songti SC", "Noto Serif SC", STSong, serif;
  font-size: clamp(20px, 5.8vw, 28px);
  font-weight: 500;
}

.name-lockup {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: .42em;
  white-space: nowrap;
}

.opening-names.name-lockup {
  justify-content: center;
}

.name-lockup i {
  position: relative;
  top: .06em;
  color: #e6c7a4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .68em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .88;
}

.opening-date {
  margin: 18px 0 0;
  letter-spacing: .08em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.opening-place {
  margin: 9px 0 0;
  letter-spacing: .04em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 12px;
  opacity: .88;
}

.open-button {
  margin-top: auto;
}

.music-control {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgb(49 29 27 / 86%);
}

.hero-content {
  padding-bottom: 132px;
}

.hero-content > .eyebrow {
  display: none;
}

.hero-content h1 {
  max-width: 100%;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.2;
}

.hero-content .hero-names {
  gap: .36em;
}

.hero-intro {
  margin: 18px 0 24px;
  letter-spacing: .12em;
  font-size: 14px;
}

.hero-date-card {
  display: block;
  padding-top: 18px;
}

.hero-date-card > div {
  display: block;
}

.hero-date-card strong {
  letter-spacing: .04em;
  font-family: "Songti SC", "Noto Serif SC", STSong, serif;
  font-size: 18px;
  line-height: 1.7;
}

.hero-date-card > p {
  display: none;
}

.scroll-cue {
  right: auto;
  bottom: 28px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  gap: 9px;
}

.scroll-cue span {
  writing-mode: horizontal-tb;
  letter-spacing: .12em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 11px;
}

.scroll-cue i {
  width: 1px;
  height: 25px;
  animation: gentleBounce 1.8s infinite;
}

.section-inner > .eyebrow,
.menu-section .eyebrow {
  letter-spacing: .16em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 11px;
}

.schedule-section .section-inner {
  padding-bottom: 54px;
}

.schedule-list {
  margin-bottom: 0;
}

.schedule-item:last-child {
  padding-bottom: 18px;
}

.lead-copy {
  margin-top: -4px;
  white-space: pre-line;
}

.dress-code {
  width: min(100%, 440px);
  margin: 42px auto 0;
  padding: 22px 0 20px;
  border-top: 1px solid rgb(111 47 56 / 14%);
  border-bottom: 1px solid rgb(111 47 56 / 14%);
}

.dress-code-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--wine);
}

.dress-code-heading span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .18em;
}

.dress-code-heading strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}

.dress-code-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dress-code-swatch {
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.dress-code-swatch i {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 9px;
  border: 1px solid rgb(74 58 49 / 9%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.dress-code-swatch span {
  display: block;
  font-size: 9px;
  line-height: 1.4;
}

.dress-code + .countdown {
  margin-top: 28px;
}

.venue-actions button,
.submit-button,
.music-control,
.open-button {
  touch-action: manipulation;
}

.questionnaire-link {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 34px;
  text-decoration: none;
}

.venue-section .section-inner {
  padding-top: 46px;
  padding-bottom: 68px;
}

.venue-section address {
  margin-top: 22px;
  padding: 22px 20px;
  background: rgb(111 47 56 / 6%);
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
}

.venue-actions {
  margin-top: 16px;
}

footer {
  min-height: 56svh;
  padding-top: 88px;
  padding-bottom: 64px;
}

footer::before {
  content: "囍";
  color: rgb(255 255 255 / 8%);
  font-size: 132px;
  line-height: 1;
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
}

.footer-logo {
  display: none;
}

.footer-mark {
  position: relative;
  z-index: 1;
}

.footer-mark::before {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin: 0 auto 30px;
  background: rgb(210 169 119 / 48%);
}

.menu-section::before {
  content: "囍";
  right: -24px;
  color: rgb(255 255 255 / 7%);
  font-size: 230px;
}

@media (max-width: 390px) {
  .opening-copy {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .opening-names {
    margin-top: 18px;
  }

  .opening-date {
    margin-top: 14px;
  }

  .dress-code {
    margin-top: 36px;
  }

  .dress-code-palette {
    gap: 6px;
  }

  .dress-code-swatch i {
    width: 27px;
    height: 27px;
  }

  .dress-code-swatch span {
    font-size: 8px;
  }

  .venue-section .section-inner {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  footer {
    min-height: 50svh;
    padding-top: 74px;
    padding-bottom: 54px;
  }
}
