/* Invitation refinements — content hierarchy and mobile readability */
.invite-shell::after {
  display: none;
}

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

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

.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: 4px 0 0;
  letter-spacing: .08em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

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

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

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

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

.hero-content h1 {
  max-width: 100%;
  font-size: clamp(30px, 8.2vw, 46px);
  line-height: 1.16;
}

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

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

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

.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;
}

.date-section {
  display: none;
}

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

.lead-copy {
  white-space: pre-line;
}

.schedule-place a {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgb(111 47 56 / 32%);
  padding-bottom: 2px;
  transition: border-color .2s ease, opacity .2s ease;
}

.schedule-place a span {
  position: relative;
  top: -.08em;
  font-family: Georgia, serif;
  font-size: .72em;
  opacity: .58;
}

.schedule-place a:active {
  opacity: .62;
}

.nearby-trigger {
  display: inline-flex;
  align-items: baseline;
  gap: .7em;
  color: inherit;
  background: transparent;
  border-bottom: 1px solid rgb(111 47 56 / 32%);
  padding: 0 0 2px;
  text-align: left;
  transition: border-color .2s ease, opacity .2s ease;
}

.nearby-collection-link {
  text-decoration: none;
}

.nearby-trigger span {
  font-size: .78em;
  font-weight: 400;
  opacity: .62;
}

.nearby-trigger:active {
  opacity: .62;
}

.nearby-dialog {
  width: min(92vw, 520px);
  max-height: min(82svh, 720px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper-light);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgb(35 20 18 / 32%);
}

.nearby-dialog::backdrop {
  background: rgb(30 22 20 / 58%);
  backdrop-filter: blur(3px);
}

.nearby-sheet {
  max-height: min(82svh, 720px);
  padding: 25px 22px 24px;
  overflow-y: auto;
}

.nearby-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.nearby-sheet header span {
  color: var(--wine);
  letter-spacing: .12em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 9px;
}

.nearby-sheet h2 {
  margin: 7px 0 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.nearby-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #746761;
  background: #eee9e3;
  border-radius: 50%;
  font: 300 23px/1 Arial, sans-serif;
}

.nearby-intro {
  color: var(--muted);
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.nearby-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.nearby-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: 112px;
  color: inherit;
  background: #fff;
  border: 1px solid rgb(61 55 51 / 10%);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 7px 22px rgb(66 42 32 / 7%);
}

.nearby-card img {
  width: 104px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.nearby-card > div {
  padding: 14px 14px 13px;
}

.nearby-card span {
  color: var(--wine);
  letter-spacing: .04em;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 9px;
}

.nearby-card h3 {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.nearby-card p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

@media (hover: hover) {
  .schedule-place a:hover {
    border-color: currentColor;
  }

  .nearby-trigger:hover {
    border-color: currentColor;
  }

  .nearby-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgb(66 42 32 / 12%);
  }
}

.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: .12em;
}

.dress-code-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  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;
}

.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;
  }

  .nearby-sheet {
    padding: 22px 16px 18px;
  }

  .nearby-card {
    grid-template-columns: 88px 1fr;
  }

  .nearby-card img {
    width: 88px;
  }

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

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

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

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

/* Venue is a single destination, not chapter four: remove the orphan number and its empty rail. */
.venue-copy {
  grid-template-columns: 1fr;
  gap: 0;
}

.venue-number {
  display: none;
}

.venue-copy > div {
  border-left: 0;
  padding-left: 0;
}

/* Keep the ivory swatch subtly warmer than the paper, while remaining an ivory. */
.dress-code-swatch:first-child i {
  background-color: #ECE0CC !important;
}

@media (max-width: 390px) {
  .opening-place {
    margin-top: 3px;
  }

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