:root {
  color-scheme: light;
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  background: #f5efe6;
  color: #675746;
  --gold: #b99564;
  --gold-dark: #80643f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), transparent 48%),
    linear-gradient(145deg, #faf7f1, #eee5d8);
}

button,
img {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page {
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
}

.invitation {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100svh;
  height: 100dvh;
  aspect-ratio: auto;
  overflow: hidden;
  isolation: isolate;
  perspective: 1800px;
  perspective-origin: center;
  background: #fffaf4;
  box-shadow: 0 18px 48px rgba(89, 70, 48, 0.17);
  cursor: pointer;
  touch-action: none;
}

.invitation__background,
.doors,
.door {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.invitation__background,
.door {
  display: block;
  object-fit: cover;
  user-select: none;
}

.invitation__background {
  z-index: 0;
}

.content {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.message {
  position: absolute;
  top: 49%;
  left: 15%;
  right: 15%;
  visibility: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.message.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.message.is-entering {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.message.is-leaving {
  visibility: visible;
  opacity: 1;
}

.message > * {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(9px) scale(0.94);
}

.message.is-active > * {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.message.is-entering > * {
  animation: focus-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.message.is-entering.is-from-top > * {
  animation-name: focus-in-from-top;
}

.message.is-entering > :nth-child(1) {
  animation-delay: 0ms;
}

.message.is-entering > :nth-child(2) {
  animation-delay: 170ms;
}

.message.is-entering > :nth-child(3) {
  animation-delay: 360ms;
}

.message.is-entering > :nth-child(4) {
  animation-delay: 520ms;
}

.message.is-entering > :nth-child(5) {
  animation-delay: 650ms;
}

.message.is-entering > :nth-child(6) {
  animation-delay: 760ms;
}

.message.is-entering > .vertical-couple,
.message.is-entering > .names-row {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.vertical-couple > *,
.names-row > * {
  opacity: 0;
  filter: blur(13px);
}

.message.is-active .vertical-couple > *,
.message.is-active .names-row > *,
.message.is-leaving .vertical-couple > *,
.message.is-leaving .names-row > * {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.message.is-entering .vertical-couple > :first-child,
.message.is-entering .names-row > :first-child {
  animation: name-from-left 1.25s cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}

.message.is-entering .vertical-couple > :last-child,
.message.is-entering .names-row > :last-child {
  animation: name-from-right 1.25s cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}

.message.is-entering .vertical-couple > i {
  animation: focus-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 430ms both;
}

.message.is-entering .names-row > i {
  animation: focus-in 850ms cubic-bezier(0.16, 1, 0.3, 1) 410ms both;
}

.message.is-leaving > * {
  animation: focus-out 620ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.message.is-leaving > :nth-child(2) {
  animation-delay: 45ms;
}

.message.is-leaving > :nth-child(3) {
  animation-delay: 90ms;
}

.message.is-leaving > :nth-child(4),
.message.is-leaving > :nth-child(5) {
  animation-delay: 135ms;
}

@keyframes focus-in {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(30px) scale(0.96);
  }
  58% {
    opacity: 0.76;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes focus-in-from-top {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(-30px) scale(0.96);
  }
  58% {
    opacity: 0.76;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes focus-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(13px);
    transform: translateY(-26px) scale(0.98);
  }
}

@keyframes name-from-left {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: translateX(-50px) scale(0.95);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

@keyframes name-from-right {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: translateX(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

.doors {
  z-index: 3;
  transform-style: preserve-3d;
  pointer-events: none;
}

.door {
  opacity: 1;
  backface-visibility: visible;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
}

.door--left {
  transform-origin: left center;
  transform: rotateY(0deg);
}

.door--right {
  transform-origin: right center;
  transform: rotateY(0deg);
}

.invitation.is-opening .door--left {
  animation: open-left 4s ease-in-out 0.2s forwards;
}

.invitation.is-opening .door--right {
  animation: open-right 4s ease-in-out 0.2s forwards;
}

.invitation.is-open .doors {
  display: none;
}

@keyframes open-left {
  0% {
    transform: rotateY(0);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 1;
  }
  42% {
    filter: drop-shadow(14px 2px 14px rgba(69, 50, 31, 0.25));
  }
  92% {
    transform: rotateY(-105deg);
    filter: drop-shadow(7px 1px 6px rgba(69, 50, 31, 0.13));
    opacity: 1;
  }
  100% {
    transform: rotateY(-105deg);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 0;
  }
}

@keyframes open-right {
  0% {
    transform: rotateY(0);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 1;
  }
  42% {
    filter: drop-shadow(-14px 2px 14px rgba(69, 50, 31, 0.25));
  }
  92% {
    transform: rotateY(105deg);
    filter: drop-shadow(-7px 1px 6px rgba(69, 50, 31, 0.13));
    opacity: 1;
  }
  100% {
    transform: rotateY(105deg);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 0;
  }
}

.eyebrow {
  margin: 0 0 clamp(8px, 1.5vh, 14px);
  color: var(--gold-dark);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.54rem, 1.9vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #766044;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-shadow: 0 1px 0 #fff;
}

h1 {
  font-size: clamp(2.55rem, 10vw, 4.25rem);
}

.vertical-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.92;
}

.vertical-couple span {
  display: block;
}

.vertical-couple i {
  display: block;
  margin: 0.12em 0 0.08em;
  color: var(--gold);
  font-family: "Segoe Script", "Snell Roundhand", cursive;
  font-size: 0.42em;
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 7.8vw, 3.45rem);
  line-height: 1.03;
}

.names-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(18px, 5vw, 28px);
  width: min(230px, 76%);
  margin-inline: auto;
  font-size: clamp(1.8rem, 6.8vw, 2.8rem);
  white-space: nowrap;
}

.names-row i {
  color: var(--gold);
  font-family: "Segoe Script", "Snell Roundhand", cursive;
  font-size: 0.48em;
  font-style: italic;
  font-weight: 400;
}

.date-line {
  margin: clamp(18px, 3.3vh, 28px) 0 0;
  color: var(--gold-dark);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.62rem, 2.1vw, 0.78rem);
  letter-spacing: 0.28em;
}

.message[data-message="2"] {
  top: 49%;
  left: 9%;
  right: 9%;
}

.message[data-message="2"] .eyebrow {
  margin-bottom: clamp(4px, 0.8vh, 8px);
}

.message[data-message="2"].is-entering > .date-stage {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.message[data-message="2"] .date-frame > img,
.message[data-message="2"] .date-frame__text > *,
.message[data-message="2"] .date-mini {
  opacity: 0;
  filter: blur(15px);
}

.message[data-message="2"].is-active .date-frame > img,
.message[data-message="2"].is-active .date-frame__text > *,
.message[data-message="2"].is-active .date-mini,
.message[data-message="2"].is-leaving .date-frame > img,
.message[data-message="2"].is-leaving .date-frame__text > *,
.message[data-message="2"].is-leaving .date-mini {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.message[data-message="2"].is-entering .date-frame > img {
  animation: date-focus-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.message[data-message="2"].is-entering .date-frame__text strong {
  animation: date-text-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 430ms both;
}

.message[data-message="2"].is-entering .date-frame__text span {
  animation: date-text-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 620ms both;
}

.message[data-message="2"].is-entering .date-frame__text small {
  animation: date-text-in 850ms cubic-bezier(0.16, 1, 0.3, 1) 790ms both;
}

.message[data-message="2"].is-entering .date-mini:first-child {
  animation: date-focus-in 920ms cubic-bezier(0.16, 1, 0.3, 1) 990ms both;
}

.message[data-message="2"].is-entering .date-mini:last-child {
  animation: date-focus-in 920ms cubic-bezier(0.16, 1, 0.3, 1) 1160ms both;
}

.message[data-message="2"].is-entering.is-from-top .date-frame > img,
.message[data-message="2"].is-entering.is-from-top .date-mini {
  animation-name: date-focus-in-from-top;
}

.message[data-message="2"].is-entering.is-from-top .date-frame__text > * {
  animation-name: date-text-in-from-top;
}

@keyframes date-focus-in {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(12px) scale(0.9);
  }
  55% {
    opacity: 0.78;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes date-text-in {
  0% {
    opacity: 0;
    filter: blur(13px);
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes date-focus-in-from-top {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(-12px) scale(0.9);
  }
  55% {
    opacity: 0.78;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes date-text-in-from-top {
  0% {
    opacity: 0;
    filter: blur(13px);
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.date-stage {
  width: min(315px, 100%);
  margin: 0 auto;
}

.date-frame {
  position: relative;
  width: min(53%, 170px);
  aspect-ratio: 0.58;
  margin: 0 auto;
  overflow: hidden;
}

.date-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.date-frame__text {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  width: 66%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #75614a;
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.date-frame__text strong {
  display: block;
  font-size: clamp(3.05rem, 12.5vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.date-frame__text span {
  display: block;
  width: 100%;
  margin-top: clamp(13px, 2.3vh, 18px);
  font-size: clamp(0.68rem, 2.35vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
  text-indent: 0.3em;
}

.date-frame__text small {
  display: block;
  width: 100%;
  margin-top: clamp(22px, 3.5vh, 28px);
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(0.54rem, 1.85vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.38em;
  line-height: 1;
  text-indent: 0.38em;
}

.date-miniatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(9px, 2.8vw, 16px);
  width: min(76%, 245px);
  margin: clamp(-7px, -1vh, -3px) auto 0;
}

.date-mini {
  position: relative;
  aspect-ratio: 1.46;
  overflow: hidden;
}

.date-mini > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.date-mini > span,
.date-mini > strong {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 70%;
  color: #75614a;
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.message--countdown {
  left: 14%;
  right: 14%;
}

.message--countdown > .eyebrow {
  opacity: 0.48;
}

.message--countdown .fine-divider {
  margin-block: clamp(12px, 2.2vh, 18px);
}

.countdown-days {
  display: grid;
  justify-items: center;
}

.countdown-days strong {
  color: #71604c;
  font-size: clamp(4rem, 17vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.countdown-days span {
  margin-top: 8px;
  color: #a08461;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.52rem, 1.8vw, 0.66rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}

.countdown-clock {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: clamp(6px, 2vw, 12px);
  width: min(275px, 94%);
  margin: clamp(22px, 4vh, 32px) auto 0;
}

.countdown-clock div {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.countdown-clock strong {
  color: #665643;
  font-size: clamp(1.15rem, 4.3vw, 1.65rem);
  font-weight: 400;
  line-height: 1;
}

.countdown-clock span {
  color: #a58d6e;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.45rem, 1.5vw, 0.56rem);
  letter-spacing: 0.19em;
  text-indent: 0.19em;
  text-transform: uppercase;
}

.countdown-clock i {
  color: #b79a77;
  font-size: 1rem;
  font-style: normal;
  line-height: 1;
}

.countdown-quote {
  margin: clamp(28px, 5vh, 40px) 0 0;
  color: #766655;
  font-size: clamp(0.86rem, 2.9vw, 1.05rem);
  font-style: italic;
  line-height: 1.9;
}

.date-mini > span {
  font-size: clamp(0.58rem, 1.95vw, 0.74rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.date-mini > strong {
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  letter-spacing: -0.025em;
}

.fine-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(150px, 68%);
  margin: clamp(15px, 2.8vh, 24px) auto;
  color: var(--gold);
}

.fine-divider--top {
  margin-bottom: clamp(17px, 3vh, 26px);
}

.fine-divider--top span {
  font-size: 0.42rem;
}

.fine-divider::before,
.fine-divider::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, rgba(167, 126, 77, 0.65));
  content: "";
}

.fine-divider::after {
  background: linear-gradient(to left, transparent, rgba(167, 126, 77, 0.65));
}

.lead {
  max-width: 290px;
  margin: 0 auto;
  color: #756957;
  font-size: clamp(0.76rem, 2.65vw, 0.96rem);
  line-height: 1.7;
}

.message[data-message="1"] .lead {
  max-width: 265px;
  font-size: clamp(0.78rem, 2.55vw, 0.94rem);
  line-height: 1.75;
}

.family-label {
  margin: clamp(20px, 3.5vh, 30px) 0 12px;
  color: #9b7d58;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.5rem, 1.75vw, 0.65rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.family-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 9vw, 60px);
  width: min(250px, 86%);
  margin: 0 auto;
  color: #71614f;
  font-size: clamp(0.78rem, 2.7vw, 0.98rem);
  line-height: 1.5;
}

.family-sides small {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62em;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.message--memories {
  top: 46.5%;
  left: 11%;
  right: 11%;
}

.memories-heading {
  position: relative;
  display: flex;
  width: min(192px, 71%);
  aspect-ratio: 2.54;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 7px auto 0;
  padding: 5px 17px;
  overflow: hidden;
}

.heading-plate {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.memories-heading h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(0.86rem, 3.15vw, 1.18rem);
  letter-spacing: -0.015em;
  white-space: nowrap;
  transform: translateY(6px);
}

.memories-heading > span {
  position: relative;
  z-index: 1;
  color: #bb986b;
  font-size: 0.3rem;
  transform: translateY(6px);
}

.memories-intro {
  max-width: 270px;
  margin: clamp(15px, 2.5vh, 20px) auto 0;
  color: #7d6e5c;
  font-size: clamp(0.65rem, 2.1vw, 0.78rem);
  line-height: 1.6;
}

.memory-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: min(218px, 76%);
  margin: clamp(14px, 2.5vh, 20px) auto 0;
}

.memory-photo {
  display: grid;
  aspect-ratio: 1;
  align-items: center;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 254, 250, 0.94);
  border-radius: 8px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 1.05rem;
  box-shadow:
    0 8px 18px rgba(66, 45, 27, 0.14),
    inset 0 0 25px rgba(255, 247, 233, 0.18);
}

.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-photo--one {
  background: radial-gradient(circle at 68% 30%, #be9679 0 10%, transparent 11%),
    linear-gradient(145deg, #402f29, #9e755e 52%, #d9bda2);
}

.memory-photo--two {
  background: radial-gradient(circle at 36% 32%, #e7d5c0 0 9%, transparent 10%),
    linear-gradient(35deg, #312927, #74615b 47%, #bda58f);
}

.memory-photo--three {
  background: radial-gradient(circle at 64% 33%, #e9d3ba 0 10%, transparent 11%),
    linear-gradient(135deg, #6f4937, #b98565 52%, #e8d5c1);
}

.memory-photo--four {
  background: radial-gradient(circle at 42% 35%, #c5a48a 0 10%, transparent 11%),
    linear-gradient(40deg, #2f2726, #7a5f53 45%, #c2a083);
}

.more-memories,
.memory-action-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(172, 133, 84, 0.34);
  border-radius: 999px;
  color: #8b6e4c;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.51rem, 1.72vw, 0.63rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.more-memories {
  width: min(245px, 84%);
  min-height: 30px;
  margin: 10px auto 0;
  background: rgba(248, 239, 226, 0.38);
}

.memory-actions {
  display: grid;
  gap: 8px;
  width: min(270px, 90%);
  margin: 11px auto 0;
}

.memory-action-button {
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 6px 16px rgba(91, 68, 40, 0.08);
  cursor: pointer;
}

.memory-action-button--guestbook {
  background: linear-gradient(135deg, rgba(245, 232, 214, 0.82), rgba(255, 253, 248, 0.9));
}

.memory-feedback {
  min-height: 14px;
  margin: 7px auto 0;
  color: #8b6e4c;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.52rem, 1.8vw, 0.65rem);
}

.memory-note {
  max-width: 260px;
  margin: 11px auto 0;
  color: #9b8a75;
  font-size: clamp(0.54rem, 1.8vw, 0.66rem);
  line-height: 1.55;
}

.message--rsvp {
  top: 45.5%;
  left: 12%;
  right: 12%;
}

.rsvp-heading {
  position: relative;
  display: flex;
  width: min(202px, 74%);
  aspect-ratio: 2.54;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-inline: auto;
  padding: 5px 17px;
  overflow: hidden;
}

.rsvp-heading h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(0.94rem, 3.35vw, 1.25rem);
  letter-spacing: 0.02em;
  transform: translateY(6px);
}

.rsvp-heading > span {
  position: relative;
  z-index: 1;
  color: #b99466;
  font-size: 0.31rem;
  transform: translateY(6px);
}

.message--rsvp > h3 {
  margin: clamp(15px, 2.5vh, 20px) 0 0;
  color: #715e47;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-intro {
  max-width: 260px;
  margin: 7px auto 0;
  color: #91816e;
  font-size: clamp(0.6rem, 2vw, 0.73rem);
  line-height: 1.55;
}

.rsvp-form {
  display: grid;
  gap: 8px;
  width: min(285px, 96%);
  margin: clamp(14px, 2.5vh, 19px) auto 0;
}

.rsvp-name {
  display: grid;
  gap: 5px;
}

.rsvp-name > span,
.guest-count > span {
  color: #8b6c48;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.48rem, 1.6vw, 0.6rem);
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.rsvp-name input {
  width: 100%;
  height: 35px;
  border: 0;
  border-bottom: 1px solid rgba(167, 128, 80, 0.35);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #715e47;
  font: inherit;
  font-size: clamp(0.7rem, 2.3vw, 0.85rem);
  text-align: center;
}

.rsvp-name input::placeholder {
  color: #aa9d8e;
}

.rsvp-choice {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(171, 134, 87, 0.24);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.36);
  color: #806f5a;
  font-size: clamp(0.67rem, 2.25vw, 0.82rem);
}

.rsvp-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #aa814e;
}

.guest-count {
  display: grid;
  gap: 7px;
  justify-items: center;
  margin-top: 2px;
}

.guest-count > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guest-count button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(169, 129, 80, 0.3);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.55);
  color: #9b784e;
  cursor: pointer;
}

.guest-count strong {
  min-width: 18px;
  color: #765e42;
  font-size: 1.25rem;
  font-weight: 400;
}

.rsvp-submit {
  display: inline-flex;
  min-width: 150px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2px auto 0;
  padding: 8px 22px;
  border: 1px solid rgba(169, 126, 73, 0.55);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.85);
  box-shadow: 0 7px 16px rgba(91, 68, 40, 0.09);
  color: #7d6241;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.56rem, 1.9vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rsvp-success {
  min-height: 14px;
  margin: 0;
  color: #7f6a50;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.58rem;
}

.message--closing {
  left: 14%;
  right: 14%;
}

.closing-kicker {
  margin: 0 0 clamp(12px, 2.2vh, 18px);
  color: #9a7b55;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.62rem, 2.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}

.closing-names {
  width: min(285px, 100%);
  font-size: clamp(1.85rem, 7vw, 3rem);
}

.closing-message {
  margin: 0;
  color: #756652;
  font-size: clamp(0.88rem, 3vw, 1.1rem);
  font-style: italic;
  line-height: 1.85;
}

.pearl-divider {
  position: relative;
  width: min(170px, 68%);
  height: 18px;
  margin: clamp(20px, 3.5vh, 28px) auto 0;
}

.pearl-divider::before,
.pearl-divider::after {
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(164, 125, 77, 0.58));
  content: "";
}

.pearl-divider::before {
  left: 0;
}

.pearl-divider::after {
  right: 0;
  background: linear-gradient(to left, transparent, rgba(164, 125, 77, 0.58));
}

.pearl-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(169, 129, 80, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ead9bf 58%, #c9a575);
  box-shadow: 0 2px 5px rgba(91, 68, 40, 0.14);
  transform: translate(-50%, -50%);
}

.closing-date {
  margin: 8px 0 0;
  color: #937349;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.56rem, 1.9vw, 0.7rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
}

.detail,
address,
.families {
  color: #806e57;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.75;
}

.message[data-message="3"] {
  top: 47%;
  left: 8%;
  right: 8%;
}

.location-title {
  position: relative;
  top: 28px;
  font-size: clamp(1.42rem, 5.35vw, 2.15rem);
  white-space: nowrap;
}

.message[data-message="3"] .eyebrow {
  margin-bottom: 7px;
  font-size: clamp(0.48rem, 1.6vw, 0.61rem);
}

.message[data-message="3"] address {
  position: relative;
  top: -12px;
  margin: clamp(5px, 1vh, 9px) 0 0;
  font-size: clamp(0.5rem, 1.6vw, 0.61rem);
  line-height: 1.55;
}

.map-card {
  position: relative;
  width: min(294px, 94%);
  aspect-ratio: 2 / 3;
  margin: clamp(5px, 1vh, 9px) auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.map-card iframe {
  position: absolute;
  z-index: 0;
  top: 18.5%;
  left: 13%;
  width: 74%;
  height: 57.5%;
  border: 0;
  border-radius: 12% 12% 8% 8%;
  filter: sepia(0.2) saturate(0.78) contrast(0.96);
}

.map-venue-label {
  position: absolute;
  z-index: 2;
  top: 82%;
  left: 50%;
  width: 68%;
  color: #7a6040;
  font-size: clamp(0.72rem, 2.65vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.map-card,
.map-card iframe,
.route-button,
.memory-dialog,
.memory-dialog *,
.rsvp-form,
.rsvp-form * {
  touch-action: auto;
}

.memory-dialog {
  width: min(310px, calc(100% - 34px));
  padding: 0;
  border: 1px solid rgba(169, 126, 73, 0.42);
  border-radius: 20px;
  background: #fffaf3;
  box-shadow: 0 20px 60px rgba(73, 50, 29, 0.28);
  color: #715e47;
}

.memory-dialog::backdrop {
  background: rgba(71, 55, 40, 0.28);
  backdrop-filter: blur(3px);
}

.memory-dialog form {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 28px 22px 22px;
}

.memory-dialog h2 {
  font-size: 1.35rem;
  text-align: center;
}

.memory-dialog textarea {
  width: 100%;
  resize: none;
  padding: 12px;
  border: 1px solid rgba(169, 126, 73, 0.3);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  color: #715e47;
  font: 0.84rem/1.5 ui-sans-serif, system-ui, sans-serif;
}

.memory-dialog__close {
  position: absolute;
  top: 7px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #9a8163;
  font-size: 1.4rem;
}

.memory-dialog__save {
  min-height: 38px;
  border: 1px solid rgba(169, 126, 73, 0.5);
  border-radius: 999px;
  background: #fffdfa;
  color: #7d6241;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-button {
  position: relative;
  top: -12px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(8px, 1.5vh, 12px);
  padding: 7px 17px;
  border: 1px solid rgba(167, 128, 80, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 232, 214, 0.92));
  box-shadow: 0 7px 18px rgba(91, 68, 40, 0.11);
  color: #765d3e;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.detail {
  font-size: clamp(0.68rem, 2.25vw, 0.82rem);
}

.detail strong {
  color: #9a7447;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 5.2vw, 2rem);
  font-weight: 400;
}

address,
.families {
  font-size: clamp(0.64rem, 2.15vw, 0.8rem);
}

.families i {
  margin: 0 7px;
  color: var(--gold);
}

.open-button {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(22px, 5vh, 46px);
  display: inline-flex;
  align-items: center;
  min-width: min(76%, 300px);
  min-height: 58px;
  padding: 10px 22px 10px 13px;
  border: 1px solid rgba(172, 136, 89, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 237, 221, 0.96));
  box-shadow:
    0 10px 26px rgba(73, 55, 34, 0.2),
    inset 0 1px 0 #fff;
  color: #6e573b;
  cursor: pointer;
  transform: translateX(-50%);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.open-button__ornament {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 13px;
  place-items: center;
  border: 1px solid rgba(181, 142, 92, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 16%, #eadac3 19%, #fff9f0 48%, #d8b98f 100%);
  color: #a57d4b;
  font-size: 0.75rem;
}

.open-button strong,
.open-button small {
  display: block;
  text-align: left;
}

.open-button strong {
  font-size: 1rem;
  font-weight: 600;
}

.open-button small {
  margin-top: 2px;
  color: #9b8469;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.invitation.is-opening .open-button,
.invitation.is-open .open-button {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.navigation-hint {
  position: absolute;
  z-index: 2;
  bottom: clamp(39px, 6.3vh, 59px);
  left: 50%;
  width: 80%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.invitation.is-open .navigation-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.navigation-hint p {
  margin: 9px 0 0;
  color: #9a8163;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.58rem, 2.1vw, 0.7rem);
  letter-spacing: 0.08em;
}

.scroll-cue {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px 15px;
  border: 1px solid rgba(139, 113, 82, 0.2);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 7px 20px rgba(77, 58, 38, 0.13);
  color: #5f5143;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.64rem, 2.1vw, 0.76rem);
  font-weight: 400;
  line-height: 1;
}

.scroll-cue i {
  color: #4f4439;
  font-size: 0.95rem;
  font-style: normal;
}

.invitation.is-final .navigation-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .message.is-entering > *,
  .message.is-leaving > * {
    animation-duration: 200ms;
    animation-delay: 0ms;
  }

  .message[data-message="2"].is-entering .date-frame > img,
  .message[data-message="2"].is-entering .date-frame__text > *,
  .message[data-message="2"].is-entering .date-mini {
    animation-duration: 200ms;
    animation-delay: 0ms;
  }
}
