@font-face {
  font-family: "Wedding Kai";
  src: url("../src/楷体.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Wedding Handwritten";
  src: url("../src/手写.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #2f2420;
  --wine: #6e2027;
  --paper: #f3eee7;
  --gold: #b68b4b;
  --green: #50675b;
  --font-song: "Songti SC", "STSong", "SimSun", "NSimSun", serif;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #100d0b;
}

body {
  font-family: var(--font-song);
  color: white;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.experience {
  position: relative;
  width: min(100%, 540px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: #17100c;
  box-shadow: 0 0 70px rgb(0 0 0 / 70%);
}

.scene,
.invitation {
  position: absolute;
  inset: 0;
}

.scene {
  overflow: hidden;
  background: #1e130d;
  transition: opacity 1s var(--ease-lux), transform 1.3s var(--ease-lux), filter 1s ease;
}

.scene__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.035);
  animation: camera-breathe 12s ease-in-out infinite alternate;
  user-select: none;
  pointer-events: none;
}

.scene__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(7 4 3 / 25%) 0%, transparent 24%, transparent 66%, rgb(4 3 2 / 32%) 100%),
    radial-gradient(circle at 65% 72%, transparent 0 17%, rgb(2 1 1 / 12%) 58%, rgb(0 0 0 / 26%) 100%);
  pointer-events: none;
}

.scene__shade::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9%;
  background: linear-gradient(transparent, rgb(2 2 2 / 94%) 76%);
}

.light-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  pointer-events: none;
}

.light-field__ray {
  position: absolute;
  display: block;
  transform-origin: 0 50%;
  filter: blur(12px);
  opacity: 0.24;
  background: linear-gradient(90deg, rgb(255 217 151 / 0%), rgb(255 204 119 / 65%) 14%, rgb(255 185 89 / 18%) 78%, transparent);
  animation: ray-drift 7s ease-in-out infinite alternate;
}

.light-field__ray--wide {
  width: 118%;
  height: 17%;
  left: -20%;
  top: 55%;
  transform: rotate(14deg);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%);
}

.light-field__ray--narrow {
  width: 90%;
  height: 8%;
  left: -10%;
  top: 61%;
  transform: rotate(11deg);
  opacity: 0.32;
  animation-delay: -3.2s;
}

.light-field__flare {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  left: 30%;
  top: 47%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 183 71 / 16%), rgb(255 171 55 / 5%) 42%, transparent 70%);
  filter: blur(18px);
  animation: flare-breathe 5.5s ease-in-out infinite;
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.scene__monogram {
  position: absolute;
  top: max(32px, calc(env(safe-area-inset-top) + 20px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 10px;
  color: rgb(255 244 222 / 72%);
  text-shadow: 0 2px 14px rgb(0 0 0 / 80%);
}

.scene__monogram i {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.invitation-trigger {
  position: absolute;
  z-index: 3;
  left: 61%;
  top: 68.5%;
  width: 60px;
  height: 60px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.invitation-trigger__halo,
.invitation-trigger__core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.invitation-trigger__halo {
  width: 30px;
  height: 30px;
  border: 1px solid rgb(255 242 187 / 78%);
  background: rgb(255 214 127 / 10%);
  box-shadow: 0 0 26px 9px rgb(255 182 72 / 34%);
  animation: touch-halo 2.2s var(--ease-lux) infinite;
}

.invitation-trigger__core {
  width: 8px;
  height: 8px;
  background: #fff8d7;
  box-shadow: 0 0 7px 2px #ffd887, 0 0 20px 7px rgb(255 173 60 / 72%);
  animation: touch-core 2.2s ease-in-out infinite;
}

.invitation-trigger:focus-visible {
  outline: 2px solid #fff3be;
  outline-offset: 3px;
}

.invitation {
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 7%, rgb(255 255 255 / 85%), transparent 30%),
    linear-gradient(130deg, transparent 0 48%, rgb(142 114 77 / 5%) 49%, transparent 50%),
    var(--paper);
  clip-path: circle(0 at 61% 72%);
  visibility: hidden;
  transition: clip-path 1.2s var(--ease-lux), visibility 0s linear 1.2s;
}

.invitation::before,
.invitation::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invitation::before {
  inset: 12px;
  border: 1px solid rgb(120 80 55 / 24%);
}

.invitation::after {
  inset: 19px;
  border: 1px solid rgb(182 139 75 / 27%);
}

.invitation__glow {
  position: absolute;
  top: -160px;
  left: -100px;
  width: 460px;
  height: 420px;
  background: radial-gradient(ellipse, rgb(211 164 91 / 20%), transparent 67%);
  transform: rotate(-20deg);
}

.experience.is-open .scene {
  opacity: 0;
  transform: scale(1.07);
  filter: blur(7px);
  pointer-events: none;
}

.experience.is-open .invitation {
  clip-path: circle(145% at 61% 72%);
  visibility: visible;
  transition: clip-path 1.25s var(--ease-lux), visibility 0s;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button:focus-visible,
.rsvp:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.invitation__close {
  position: absolute;
  z-index: 3;
  top: max(15px, env(safe-area-inset-top));
  right: 15px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 200;
  opacity: 0.66;
}

.invitation__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  padding: max(58px, calc(env(safe-area-inset-top) + 48px)) 34px max(34px, calc(env(safe-area-inset-bottom) + 24px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.68s var(--ease-lux);
}

.experience.is-open .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.experience.is-open .reveal-item:nth-child(1) { transition-delay: 0.16s; }
.experience.is-open .reveal-item:nth-child(2) { transition-delay: 0.2s; }
.experience.is-open .reveal-item:nth-child(3) { transition-delay: 0.24s; }
.experience.is-open .reveal-item:nth-child(4) { transition-delay: 0.28s; }
.experience.is-open .reveal-item:nth-child(5) { transition-delay: 0.32s; }
.experience.is-open .reveal-item:nth-child(6) { transition-delay: 0.36s; }

/* Element-specific entrances triggered as the invitation is scrolled. */
.motion-item {
  --motion-delay: 0ms;
  transition:
    opacity 0.72s ease var(--motion-delay),
    translate 0.9s var(--ease-lux) var(--motion-delay),
    scale 0.9s var(--ease-lux) var(--motion-delay),
    transform 0.9s var(--ease-lux) var(--motion-delay),
    filter 0.8s ease var(--motion-delay),
    clip-path 1.05s var(--ease-lux) var(--motion-delay);
}

.motion-item:not(.is-visible) {
  pointer-events: none;
}

.motion-fade {
  opacity: 0;
  translate: 0 10px;
}

.motion-rise {
  opacity: 0;
  translate: 0 24px;
  filter: blur(3px);
}

.motion-slide-left {
  opacity: 0;
  translate: -38px 15px;
  scale: 0.96;
  filter: blur(2px);
}

.motion-slide-right {
  opacity: 0;
  translate: 38px 15px;
  scale: 0.96;
  filter: blur(2px);
}

.motion-soft {
  opacity: 0;
  translate: 0 18px;
  scale: 0.96;
  filter: blur(6px);
}

.motion-zoom {
  opacity: 0.35;
  scale: 1.08;
  filter: saturate(0.72) brightness(1.08) blur(2px);
}

.motion-pop {
  opacity: 0;
  scale: 0.78;
  filter: blur(3px);
  transition-timing-function: cubic-bezier(0.2, 1.45, 0.42, 1);
}

.motion-ink {
  opacity: 0;
  scale: 0.08 1;
  transform-origin: 0 50%;
  filter: blur(2px);
}

.motion-sweep {
  opacity: 0;
  translate: -42px 0;
  scale: 0.18 1;
  transform-origin: 0 50%;
  filter: blur(2px);
}

.motion-line {
  opacity: 0;
  scale: 1 0;
}

.motion-flip {
  opacity: 0;
  transform: perspective(360px) rotateX(-72deg);
  transform-origin: 50% 100%;
}

.motion-frost {
  opacity: 0;
  translate: 0 28px;
  scale: 0.94;
  filter: blur(9px) saturate(0.7);
}

.motion-item.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  filter: none;
  clip-path: inset(0);
}

.motion-flip.is-visible {
  transform: none;
}

.invitation__header {
  width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 9px;
  color: var(--green);
}

.seal {
  width: 35px;
  height: 35px;
  margin: 0 auto 15px;
  border: 1px solid currentColor;
  color: var(--wine);
  font-size: 21px;
  line-height: 32px;
  transform: rotate(3deg);
}

.invitation h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  color: #332420;
}

.invitation h1 span {
  display: inline-block;
  margin: 0 5px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.invitation__lead {
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.9;
  color: #665752;
}

.date-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 318px);
  margin: 25px 0 19px;
  color: var(--wine);
}

.date-block::before,
.date-block::after {
  content: "";
  position: absolute;
}

.date-block span {
  padding: 9px 8px;
  border-top: 1px solid rgb(110 32 39 / 45%);
  border-bottom: 1px solid rgb(110 32 39 / 45%);
  font-family: Georgia, serif;
  font-size: 9px;
}

.date-block strong {
  min-width: 68px;
  font-family: Georgia, serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 1;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 320px;
  margin: 0 0 20px;
}

.details > div {
  padding: 0 12px;
}

.details > div + div {
  border-left: 1px solid rgb(47 36 32 / 18%);
}

.details__label {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, serif;
  font-size: 8px;
  color: var(--green);
}

.details strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.details p {
  margin: 4px 0 0;
  font-size: 10px;
  color: #776965;
}

.venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.venue__pin {
  position: relative;
  width: 12px;
  height: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--wine);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.venue__pin::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--wine);
}

.venue p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #4c3a35;
}

.venue > span:last-child {
  font-size: 9px;
  color: #8b7d78;
}

.rsvp {
  position: relative;
  width: min(100%, 230px);
  min-height: 44px;
  padding: 0 38px;
  overflow: hidden;
  border: 1px solid var(--wine);
  border-radius: 2px;
  color: #fffaf1;
  background: var(--wine);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.35s ease, background 0.35s ease;
}

.rsvp__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  transform: translate(-50%, 16px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-lux);
}

.rsvp__text {
  display: block;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-lux);
}

.rsvp.is-confirmed {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.rsvp.is-confirmed .rsvp__text {
  opacity: 0;
  transform: translateY(-16px);
}

.rsvp.is-confirmed .rsvp__mark {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.invitation__footer {
  margin: 16px 0 0;
  font-family: Georgia, serif;
  font-size: 8px;
  color: #8e7a6d;
}

/* Long-form invitation, based on the supplied editorial reference. */
.invitation {
  color: #513d37;
  background-color: #f6f0e5;
  background-image:
    linear-gradient(rgb(255 253 248 / 16%), rgb(255 253 248 / 16%)),
    url("../src/paper-background-optimized.jpg");
  background-position: center top, center top;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat, repeat-y;
  background-attachment: local, local;
  scrollbar-width: none;
}

.invitation::-webkit-scrollbar {
  display: none;
}

.invitation::before,
.invitation::after,
.invitation__glow {
  display: none;
}

.invitation__chrome {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.invitation-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 82px;
  height: 112px;
  border-radius: 0 0 48px 0;
  background: #f7f2eb;
  pointer-events: none;
}

.invitation__chrome .icon-button {
  position: absolute;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  border: 1px solid rgb(125 30 40 / 34%);
  border-radius: 50%;
  color: var(--wine);
  background: rgb(250 246 239 / 80%);
  box-shadow: 0 5px 20px rgb(64 25 24 / 10%);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.vintage-frame {
  position: absolute;
  z-index: 14;
  inset: 0;
  color: #bd9142;
  pointer-events: none;
}

.vintage-frame__line {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1px solid transparent;
  border-image: linear-gradient(115deg, #8b642d, #ead9a2 18%, #fff3c8 35%, #ae823e 56%, #f0dca5 76%, #7f5925) 1;
  box-shadow:
    inset 0 0 0 2px rgb(255 248 214 / 22%),
    inset 0 0 0 3px rgb(170 126 58 / 36%),
    0 0 7px rgb(91 54 18 / 7%);
}

.vintage-frame__line::before,
.vintage-frame__line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 52px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #9a2534 16%, #e3c67f 40%, #fff0b1 50%, #e3c67f 60%, #9a2534 84%, transparent);
  clip-path: polygon(0 50%, 12% 0, 38% 38%, 50% 0, 62% 38%, 88% 0, 100% 50%, 88% 100%, 62% 62%, 50% 100%, 38% 62%, 12% 100%);
  filter: drop-shadow(0 1px 1px rgb(74 39 8 / 26%));
}

.vintage-frame__line::before {
  top: -2px;
}

.vintage-frame__line::after {
  bottom: -2px;
}

.vintage-frame__corner {
  position: absolute;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 1px 1px rgb(72 40 9 / 28%));
}

.vintage-frame__corner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 24px 0 0;
  box-shadow: inset 3px 3px 0 -2px rgb(255 238 170 / 68%);
  clip-path: polygon(0 0, 100% 0, 100% 12%, 34% 12%, 34% 20%, 22% 20%, 22% 34%, 12% 34%, 12% 100%, 0 100%);
}

.vintage-frame__corner::after {
  content: "❧";
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(120deg, #734414 0%, #dab65e 24%, #fff1b5 44%, #a66f25 62%, #efd17d 82%, #754717 100%);
  background-clip: text;
  color: transparent;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 1px 0 rgb(255 246 202 / 24%);
}

.vintage-frame__corner--tl {
  top: 10px;
  left: 10px;
}

.vintage-frame__corner--tr {
  top: 10px;
  right: 10px;
  transform: scaleX(-1);
}

.vintage-frame__corner--bl {
  bottom: 10px;
  left: 10px;
  transform: scaleY(-1);
}

.vintage-frame__corner--br {
  right: 10px;
  bottom: 10px;
  transform: scale(-1);
}

.vintage-frame__corner--tr::after,
.vintage-frame__corner--bl::after {
  content: "";
  top: 17px;
  left: 17px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #d4ae59;
  border-left: 1px solid #d4ae59;
  border-radius: 12px 0 0;
}

.vintage-frame__corner--tl::after {
  transform: rotate(-18deg);
}

.vintage-frame__corner--br::after {
  transform: rotate(15deg);
}

.music-toggle {
  left: 16px;
  font-family: Georgia, serif;
  font-size: 21px;
}

.music-toggle.is-playing {
  color: #fff;
  background: var(--wine);
  animation: music-pulse 2s ease-in-out infinite;
}

.invitation__close {
  right: 16px;
  opacity: 1;
  font-size: 28px;
  font-weight: 300;
}

.invitation__content {
  display: block;
  min-height: 100%;
  padding: 0;
  overflow-x: clip;
  text-align: center;
}

.invitation__content > :not(.vintage-frame) {
  clip-path: inset(0 10px);
}

.invitation-hero {
  position: relative;
  height: 440px;
  min-height: 440px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 253 248 / 84%), rgb(243 233 225 / 54%)),
    url("../src/paper-background-optimized.jpg") center top / cover;
}

.invitation-hero__photo {
  position: absolute;
  z-index: 1;
  top: 56px;
  left: 0;
  width: 60%;
  height: 355px;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-start;
}

.invitation-hero__photo::before {
  display: none;
}

.invitation-hero__photo::after {
  display: none;
}

.invitation-hero__photo img {
  position: relative;
  padding-left: 10%;
  z-index: 1;
  width: 130%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
  -webkit-mask-image: radial-gradient(
    ellipse 72% 69% at 35% 34%,
    #000 0 58%,
    rgb(0 0 0 / 88%) 70%,
    rgb(0 0 0 / 42%) 85%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 72% 69% at 35% 34%,
    #000 0 58%,
    rgb(0 0 0 / 88%) 70%,
    rgb(0 0 0 / 42%) 85%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 12px 18px rgb(62 34 30 / 12%));
  transform: translate(-4%, 12px);
  user-select: none;
}

.invitation-hero__veil {
  z-index: 2;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 48%, rgb(255 253 248 / 78%) 0 9%, transparent 42%),
    linear-gradient(180deg, transparent 0 55%, rgb(247 242 235 / 20%) 65%, rgb(247 242 235 / 76%) 100%);
  pointer-events: none;
}

.invitation-hero__copy {
  position: absolute;
  z-index: 5;
  top: 90px;
  right: 20px;
  width: 68%;
  padding: 16px 0 12px 22px;
  color: #5f3333;
  background: transparent;
  text-align: right;
}

.invitation-hero .eyebrow {
  margin: 0 0 9px;
  color: #99525a;
  font-size: 8px;
}

.invitation-hero h1 {
  margin: 0;
  color: #9f1f2e;
  font-family: "FZKai-Z03", "KaiTi", "STKaiti", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.3;
}

.invitation-hero__title img {
  display: block;
  width: min(60%, 220px);
  height: auto;
  margin-left: auto;
}

@media (max-width: 374px) {
  .invitation-hero__copy {
    right: 16px;
    width: 72%;
    padding-left: 18px;
  }

  .invitation-hero h1 {
    font-size: 28px;
    white-space: nowrap;
  }
}

.couple-names {
  margin: 25px 0 15px;
  color: #8a3741;
  font-size: 14px;
}

.couple-names span {
  margin: 0 6px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-style: italic;
}

.invitation-hero .invitation__lead {
  margin: 10px 0 14px;
  color: #745d58;
  font-size: 11px;
  line-height: 1.9;
}

.invitation-hero time {
  color: #7c343d;
  font-family: Georgia, serif;
  font-size: 16px;
}

.hero-decoration {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: -80px;
  left: 0;
  width: 100%;
  height: 270px;
  pointer-events: none;
}

.hero-decoration img {
  position: absolute;
  top: 10px;
  left: -10%;
  display: block;
  width: 120%;
  height: auto;
  filter: drop-shadow(0 9px 13px rgb(89 28 23 / 15%));
  transform: rotate(5deg);
  transform-origin: center;
  user-select: none;
}

.calla {
  position: absolute;
  bottom: 6px;
  left: 42px;
  width: 52px;
  height: 192px;
  transform-origin: 50% 100%;
}

.calla--one {
  transform: rotate(-18deg) scale(0.92);
}

.calla--two {
  left: 83px;
  bottom: -1px;
  transform: rotate(8deg) scale(1.04);
}

.calla--three {
  left: 121px;
  bottom: 0;
  transform: rotate(22deg) scale(0.8);
}

.calla b {
  position: absolute;
  bottom: 0;
  left: 25px;
  width: 3px;
  height: 145px;
  border-radius: 50%;
  background: linear-gradient(90deg, #36563c, #83955d 48%, #314c36);
  box-shadow: 1px 0 0 rgb(225 211 137 / 28%);
}

.calla i {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 5px;
  width: 42px;
  height: 60px;
  border-radius: 78% 14% 72% 38% / 73% 25% 78% 42%;
  background:
    radial-gradient(circle at 68% 22%, rgb(255 232 170 / 88%) 0 7%, transparent 8%),
    linear-gradient(135deg, #8e1e1f 0%, #db4935 34%, #ff9b51 61%, #fbd39b 82%, #a82924 100%);
  box-shadow: inset -7px -8px 12px rgb(104 24 25 / 24%), 0 5px 12px rgb(76 35 20 / 14%);
  transform: rotate(17deg);
}

.calla i::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 19px;
  width: 5px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(#ffd779, #d98a2d);
  box-shadow: 0 0 3px rgb(255 223 130 / 78%);
  transform: rotate(-11deg);
}

.calla i::after {
  content: "";
  position: absolute;
  inset: 2px 3px 12px 18px;
  border-radius: 65% 12% 68% 36%;
  border-left: 1px solid rgb(255 226 178 / 54%);
  background: linear-gradient(100deg, transparent, rgb(255 240 202 / 24%));
}

.calla-leaf {
  position: absolute;
  bottom: 0;
  left: 19px;
  width: 48px;
  height: 132px;
  border-radius: 92% 5% 84% 14%;
  background: linear-gradient(105deg, #294733, #788151 52%, #344934 100%);
  box-shadow: inset 9px 0 10px rgb(255 225 155 / 8%);
  transform: rotate(-28deg);
}

.calla-leaf--two {
  left: 137px;
  height: 112px;
  transform: scaleX(-1) rotate(-23deg);
}

.calla-bloom {
  position: absolute;
  right: 22px;
  bottom: 38px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff4d9;
  box-shadow:
    -12px -5px 0 0 #fff8e7,
    9px -13px 0 1px #fff4d9,
    17px -2px 0 0 #fff8e7,
    -6px -19px 0 1px #fff1d0,
    3px -28px 0 0 #fff7e6,
    21px -25px 0 1px #fff1d0;
}

.burgundy-ribbon {
  position: relative;
  z-index: 8;
  display: flex;
  height: 132px;
  margin-top: -175px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: rgb(255 232 219 / 44%);
  background: transparent;
  clip-path: none;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.burgundy-ribbon::before {
  display: none;
}

.burgundy-ribbon img {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -18%;
  width: 136%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 8px 10px rgb(85 12 22 / 15%));
  user-select: none;
}

.burgundy-ribbon span {
  position: relative;
  z-index: 2;
  opacity: 0.72;
  margin-top: 2px;
  text-shadow: 0 1px 5px rgb(255 228 214 / 18%);
}

.section-kicker {
  margin: 0 0 8px;
  color: #a26365;
  font-family: Georgia, serif;
  font-size: 8px;
}

.memory-section,
.event-section,
.venue-section,
.rsvp-section {
  position: relative;
  padding-right: 28px;
  padding-left: 28px;
}

.memory-section {
  padding-top: 42px;
  padding-bottom: 62px;
}

.memory-section::before,
.memory-section::after,
.venue-section::after {
  content: "";
  position: absolute;
  width: 31px;
  height: 54px;
  border: 1px solid rgb(147 70 71 / 25%);
  border-radius: 90% 5% 90% 5%;
  transform: rotate(28deg);
  pointer-events: none;
}

.memory-section::before {
  top: 105px;
  left: 5px;
}

.memory-section::after {
  right: 10px;
  bottom: 37px;
  transform: rotate(-32deg);
}

.petal-scatter,
.flower-sprig {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.petal-scatter {
  width: 80px;
  height: 110px;
}

.petal-scatter i {
  position: absolute;
  width: 18px;
  height: 29px;
  border: 1px solid rgb(155 72 74 / 10%);
  border-radius: 90% 8% 85% 22%;
  background: linear-gradient(135deg, rgb(255 240 232 / 84%), rgb(222 126 132 / 55%) 65%, rgb(163 54 65 / 18%));
  box-shadow: inset 5px 3px 8px rgb(255 255 255 / 34%);
}

.petal-scatter i:nth-child(1) {
  top: 3px;
  left: 14px;
  transform: rotate(25deg);
}

.petal-scatter i:nth-child(2) {
  top: 47px;
  left: 48px;
  width: 13px;
  height: 23px;
  transform: rotate(74deg);
}

.petal-scatter i:nth-child(3) {
  top: 78px;
  left: 4px;
  width: 11px;
  height: 19px;
  transform: rotate(-18deg);
}

.petal-scatter--memory {
  top: 180px;
  right: 1px;
}

.petal-scatter--event {
  top: 42px;
  left: 5px;
  transform: scale(0.82) rotate(-14deg);
}

.petal-scatter--venue {
  right: 4px;
  bottom: 38px;
  transform: rotate(17deg);
}

.flower-sprig {
  width: 76px;
  height: 132px;
}

.flower-sprig::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 37px;
  width: 1px;
  height: 118px;
  background: linear-gradient(#7f8d67, #52684e);
  transform: rotate(15deg);
  transform-origin: bottom;
}

.flower-sprig::after {
  content: "";
  position: absolute;
  left: 31px;
  bottom: 31px;
  width: 23px;
  height: 9px;
  border: solid #71805e;
  border-width: 1px 0 0;
  border-radius: 50%;
  transform: rotate(-31deg);
}

.flower-sprig i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d89b9f;
  box-shadow: -5px 0 #edc6c7, 5px 0 #e3adaf, 0 -5px #f0d2d0, 0 5px #cf8e94;
}

.flower-sprig i:nth-child(1) { top: 15px; left: 29px; }
.flower-sprig i:nth-child(2) { top: 48px; left: 49px; transform: scale(0.76); }
.flower-sprig i:nth-child(3) { top: 77px; left: 20px; transform: scale(0.62); }

.flower-sprig--memory {
  bottom: 19px;
  left: -10px;
  transform: rotate(-19deg);
}

.flower-sprig--event {
  right: -7px;
  bottom: 15px;
  transform: scaleX(-1) rotate(-12deg);
}

.flower-sprig--venue {
  bottom: 7px;
  left: -2px;
  transform: rotate(20deg);
}

.memory-section h2,
.event-section h2,
.venue-section h2,
.rsvp-section h2 {
  margin: 0;
  color: #921c2c;
  font-family: "FZKai-Z03", "KaiTi", "STKaiti", serif;
  font-size: 25px;
  font-weight: 400;
}

.memory-section h2 {
  position: relative;
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(95deg, #67101b 0%, #a42131 23%, #72131f 44%, #c15a60 63%, #781722 78%, #a92a37 100%);
  background-clip: text;
  font-family: "STXingkai", "FZKai-Z03", "KaiTi", "STKaiti", serif;
  font-size: 29px;
  text-shadow: 1px 0 0 rgb(90 13 23 / 8%);
  transform: rotate(-1deg);
}

.memory-section h2::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7e1723;
  box-shadow: -6px 5px 0 -1px rgb(126 23 35 / 58%);
}

.memory-section h2::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -6px;
  width: 100px;
  height: 10px;
  background: linear-gradient(90deg, #8c1b28 0%, rgb(140 27 40 / 58%) 47%, transparent 100%);
  clip-path: polygon(0 28%, 32% 38%, 66% 33%, 100% 53%, 70% 60%, 31% 72%, 0 62%);
  transform: rotate(-3deg);
}

.event-section h2,
.venue-section h2 {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.event-section h2::before,
.event-section h2::after,
.venue-section h2::before,
.venue-section h2::after {
  content: "✦";
  width: min(22%, 76px);
  color: #a7192b;
  background: linear-gradient(90deg, transparent 0%, rgb(167 25 43 / 22%) 34%, #a7192b 82%, transparent 83%) center / 100% 1px no-repeat;
  font-family: Arial, sans-serif;
  font-size: 8px;
  line-height: 12px;
  text-align: right;
}

.event-section h2::after,
.venue-section h2::after {
  background-image: linear-gradient(90deg, transparent 17%, #a7192b 18%, rgb(167 25 43 / 22%) 66%, transparent 100%);
  text-align: left;
}

.polaroids {
  position: relative;
  width: 100%;
  height: 840px;
  margin: 42px auto 26px;
}

.polaroid {
  position: absolute;
  width: 47.5%;
  margin: 0;
  padding: 9px 9px 19px;
  border: 1px solid #e4dbcf;
  background:
    linear-gradient(140deg, rgb(255 255 255 / 58%), transparent 30%),
    #fffdfa;
  box-shadow: 0 10px 26px rgb(69 41 35 / 16%), 0 1px 0 rgb(255 255 255 / 78%) inset;
}

.polaroid::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgb(171 150 125 / 12%);
  pointer-events: none;
}

.polaroid--one {
  top: 2px;
  left: 0;
  transform: rotate(-5deg);
}

.polaroid--two {
  top: 38px;
  right: 0;
  transform: rotate(4deg);
}

.polaroid--three {
  z-index: 2;
  top: 278px;
  left: 1%;
  transform: rotate(3deg);
}

.polaroid--four {
  z-index: 2;
  top: 258px;
  right: 0;
  transform: rotate(-3deg);
}

.polaroid--five {
  z-index: 3;
  top: 620px;
  left: 50%;
  width: 68%;
  padding: 10px 10px 24px;
  border: 0;
  background:
    linear-gradient(135deg, #8f2632 0 9px, transparent 10px) top left / 24px 24px no-repeat,
    linear-gradient(225deg, #8f2632 0 9px, transparent 10px) top right / 24px 24px no-repeat,
    linear-gradient(45deg, #b9904c 0 7px, transparent 8px) bottom left / 22px 22px no-repeat,
    linear-gradient(315deg, #b9904c 0 7px, transparent 8px) bottom right / 22px 22px no-repeat,
    #fffaf2;
  box-shadow:
    0 0 0 1px rgb(166 124 58 / 72%),
    0 0 0 5px #fffdf8,
    0 0 0 6px rgb(126 35 47 / 35%),
    0 16px 30px rgb(69 41 35 / 18%);
  transform: translateX(-50%) rotate(-1.5deg);
}

.polaroid--five::before {
  inset: 6px;
  border: 1px solid rgb(177 140 75 / 45%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 62%);
}

.polaroid--five::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 50px;
  height: 15px;
  background: linear-gradient(90deg, rgb(123 28 40 / 82%), #b94a54 48%, rgb(123 28 40 / 82%));
  box-shadow: 0 2px 4px rgb(72 24 29 / 16%);
  clip-path: polygon(4% 12%, 96% 0, 100% 82%, 3% 100%, 0 45%);
  transform: translateX(-50%) rotate(2deg);
}

.polaroid__photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ded6ce;
}

.polaroid--one .polaroid__photo {
  aspect-ratio: 1;
}

.polaroid--two .polaroid__photo {
  aspect-ratio: 3 / 2;
}

.polaroid--three .polaroid__photo,
.polaroid--four .polaroid__photo {
  aspect-ratio: 2 / 3;
}

.polaroid--five .polaroid__photo {
  aspect-ratio: 3 / 2;
  border: 1px solid rgb(126 35 47 / 34%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 42%);
}

.polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid--one img {
  object-position: 50% 50%;
}

.polaroid--two img {
  object-position: 50% 48%;
}

.polaroid--three img,
.polaroid--four img {
  object-position: 50% 50%;
}

.polaroid--five img {
  object-position: 50% 50%;
}

.polaroid figcaption {
  margin-top: 10px;
  color: #9c3d45;
  font-family: "FZKai-Z03", "KaiTi", "STKaiti", serif;
  font-size: 14px;
}

.photo-tape {
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 50%;
  width: 61px;
  height: 20px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 10%), rgb(169 121 84 / 10%) 50%, rgb(255 255 255 / 14%)),
    rgb(215 192 164 / 54%);
  box-shadow: 0 2px 4px rgb(77 51 32 / 7%);
  clip-path: polygon(3% 7%, 100% 0, 96% 94%, 2% 100%, 5% 76%, 0 55%);
  backdrop-filter: blur(1px);
  transform: translateX(-50%) rotate(-5deg);
}

.photo-tape--right {
  transform: translateX(-50%) rotate(7deg);
}

.paperclip {
  position: absolute;
  z-index: 5;
  top: -14px;
  right: 18px;
  width: 13px;
  height: 34px;
  border: 2px solid #b99959;
  border-radius: 9px 9px 7px 7px;
  box-shadow: inset 0 0 0 2px #fffdfa, inset 0 0 0 3px rgb(185 153 89 / 65%);
  transform: rotate(17deg);
}

.paperclip--small {
  top: -12px;
  right: 23px;
  height: 30px;
  transform: rotate(-12deg);
}

.heart-clip {
  position: absolute;
  z-index: 5;
  top: -23px;
  right: 15px;
  color: #b48a3f;
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 2px 2px rgb(77 47 15 / 14%);
  transform: rotate(10deg);
}

.heart-clip::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 18px;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(#d2b16d, #8d692f);
}

.hand-note {
  position: relative;
  display: inline-block;
  margin: 8px 0 0;
  color: transparent;
  background: linear-gradient(96deg, #5d0d17 0%, #b02a38 24%, #75131f 47%, #c45259 68%, #66101b 88%);
  background-clip: text;
  font-family: "STXingkai", "FZKai-Z03", "KaiTi", "STKaiti", serif;
  font-size: 28px;
  font-weight: 400;
  text-shadow: 1px 0 0 rgb(90 13 23 / 10%);
  transform: rotate(-2.5deg);
}

.hand-note::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b1b27;
  box-shadow: -8px 4px 0 -1px rgb(139 27 39 / 60%), 7px -2px 0 -2px rgb(139 27 39 / 52%);
}

.hand-note::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -6px;
  width: 132px;
  height: 12px;
  background: linear-gradient(90deg, #871b27 0%, rgb(135 27 39 / 64%) 42%, transparent 100%);
  clip-path: polygon(0 36%, 34% 29%, 68% 45%, 100% 52%, 70% 67%, 28% 61%, 0 76%);
  transform: rotate(-4deg);
}

.love-quote {
  position: relative;
  max-width: 292px;
  margin: 24px auto 8px;
  padding: 18px 30px;
  color: #6e5b55;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 52%) 20% 80%, transparent);
}

.love-quote::before,
.love-quote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(150 36 49 / 35%));
}

.love-quote::before {
  left: 0;
}

.love-quote::after {
  right: 0;
  transform: scaleX(-1);
}

.love-quote span {
  position: absolute;
  color: #a72a39;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.love-quote span:first-child {
  top: 10px;
  left: 20px;
}

.love-quote span:last-child {
  right: 20px;
  bottom: 4px;
}

.love-quote p {
  margin: 0;
  font-size: 11px;
  line-height: 2;
}

.event-section {
  padding-top: 52px;
  padding-bottom: 55px;
  border-top: 1px solid rgb(142 66 67 / 16%);
  border-bottom: 1px solid rgb(142 66 67 / 16%);
  background: rgb(255 253 249 / 52%);
}

.wedding-date {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  max-width: 320px;
  margin: 28px auto 22px;
}

.wedding-date > div {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
}

.wedding-date span {
  color: #9c6263;
  font-size: 10px;
}

.wedding-date strong {
  margin-top: 4px;
  color: #921c2c;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.wedding-date i {
  width: 1px;
  height: 50px;
  background: rgb(146 28 44 / 25%);
}

.countdown {
  display: grid;
  grid-template-columns: 34px auto 1fr auto;
  align-items: center;
  max-width: 330px;
  margin: 0 auto 24px;
  padding: 15px 14px;
  border: 1px solid rgb(143 68 68 / 20%);
  border-radius: 5px;
  color: #75534e;
  background: rgb(250 247 240 / 78%);
  box-shadow: inset 0 0 22px rgb(157 119 75 / 5%);
}

.countdown__pin {
  position: relative;
  width: 21px;
  height: 21px;
  border: 3px solid #9f2433;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.countdown__pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #9f2433;
}

.countdown p {
  margin: 0 10px 0 0;
  font-size: 10px;
  line-height: 1.6;
  text-align: left;
}

.countdown__digits {
  display: grid;
  grid-template-columns: repeat(3, minmax(34px, 1fr));
  gap: 6px;
}

.countdown__digits span {
  position: relative;
  display: grid;
  min-width: 34px;
  height: 48px;
  border-radius: 3px;
  place-items: center;
  color: #3f332f;
  background: linear-gradient(#fffdfa 0 49%, #e7dfd5 50%, #fffdfa 52%);
  box-shadow: 0 3px 8px rgb(73 50 41 / 15%);
  font-family: Georgia, serif;
  font-size: 28px;
}

.countdown > strong {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
}

.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 320px;
  margin: 0 auto;
  border-top: 1px solid rgb(146 28 44 / 18%);
}

.schedule > div {
  padding-top: 16px;
}

.schedule > div + div {
  border-left: 1px solid rgb(146 28 44 / 18%);
}

.schedule span {
  color: #7d2933;
  font-family: Georgia, serif;
  font-size: 15px;
}

.schedule p {
  margin: 5px 0 0;
  color: #7d6963;
  font-size: 10px;
}

.venue-section {
  z-index: 4;
  overflow: visible;
  padding-top: 56px;
  padding-bottom: 66px;
}

.venue-section::after {
  right: 10px;
  bottom: 31px;
  width: 42px;
  height: 71px;
}

.venue-name {
  margin: 24px 0 6px;
  color: #633f3b;
  font-size: 15px;
}

.venue-address {
  margin: 0 0 22px;
  color: #8b736c;
  font-size: 11px;
}

.map-illustration {
  position: relative;
  width: 100%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgb(151 31 47 / 45%);
  border-radius: 4px;
  background: rgb(251 247 240 / 88%);
  box-shadow:
    0 12px 26px rgb(74 42 37 / 13%),
    inset 0 0 0 2px rgb(190 151 78 / 22%);
}

.map-illustration::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5px;
  border: 1px solid rgb(255 255 255 / 70%);
  pointer-events: none;
}

.map-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}

.navigation-button {
  position: relative;
  z-index: 12;
  display: inline-flex;
  min-height: 46px;
  margin-top: -23px;
  padding: 0 28px;
  border: 1px solid #df7a80;
  border-radius: 24px;
  align-items: center;
  gap: 10px;
  color: white;
  background: linear-gradient(180deg, #c23d49 0%, #a7192b 52%, #8e1120 100%);
  box-shadow:
    0 7px 0 #71101c,
    0 13px 22px rgb(84 18 26 / 30%),
    inset 0 1px 0 rgb(255 220 210 / 55%);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: navigation-float 3.2s ease-in-out infinite;
}

.navigation-button::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 235 223 / 70%), transparent);
}

.navigation-button:hover {
  filter: brightness(1.06);
  transform: translateY(-6px);
  box-shadow:
    0 10px 0 #71101c,
    0 17px 27px rgb(84 18 26 / 33%),
    inset 0 1px 0 rgb(255 220 210 / 62%);
}

.navigation-button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #71101c,
    0 5px 10px rgb(84 18 26 / 24%),
    inset 0 1px 0 rgb(255 220 210 / 42%);
}

.navigation-button span {
  font-family: Arial, sans-serif;
  transform: rotate(-40deg);
}

.rsvp-section {
  padding: 52px 26px;
  background: transparent;
}

.rsvp-section .section-kicker,
.rsvp-section h2 {
  color: #8f1d2a;
}

.rsvp-card {
  position: relative;
  overflow: hidden;
  padding: 42px 24px 38px;
  border: 1px solid rgb(178 132 73 / 42%);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 62%), rgb(255 248 240 / 36%) 52%, rgb(130 31 42 / 13%)),
    rgb(255 250 244 / 28%);
  box-shadow:
    0 16px 34px rgb(76 41 30 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 78%),
    inset 0 0 30px rgb(255 255 255 / 20%);
  backdrop-filter: blur(12px) saturate(1.12);
}

.rsvp-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -24px;
  width: 200px;
  height: 130px;
  background: linear-gradient(125deg, rgb(255 255 255 / 44%), transparent 62%);
  transform: rotate(-12deg);
}

.rsvp-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgb(167 25 43 / 13%);
  border-radius: 3px;
  pointer-events: none;
}

.rsvp-card .section-kicker,
.rsvp-card h2,
.rsvp-card__message,
.rsvp-card__seal {
  position: relative;
  z-index: 2;
}

.rsvp-card h2 {
  font-size: 28px;
}

.rsvp-card__message {
  margin: 18px 0 0;
  color: #705853;
  font-size: 11px;
  line-height: 2;
}

.rsvp-card__seal {
  display: grid;
  width: 31px;
  height: 31px;
  margin: 19px auto 0;
  border: 1px solid currentColor;
  place-items: center;
  color: #9d2633;
  font-size: 18px;
  transform: rotate(4deg);
}

.invitation__footer {
  display: flex;
  margin: 0;
  padding: 36px 24px max(32px, calc(env(safe-area-inset-bottom) + 24px));
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8a6060;
  font-family: Georgia, serif;
  font-size: 9px;
}

.invitation__footer i {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.invitation__footer p {
  width: 100%;
  margin: 3px 0 0;
  font-size: 7px;
}

/* Typography hierarchy: Song for body copy, supplied Kai/handwriting faces for display text. */
body .experience * {
  font-family: var(--font-song);
}

body .experience .invitation__close,
body .experience .rsvp__mark,
body .experience .heart-clip,
body .experience .navigation-button span {
  font-family: Arial, sans-serif;
}

body .experience .memory-section h2,
body .experience .event-section h2,
body .experience .venue-section h2,
body .experience .rsvp-section h2 {
  font-weight: 700;
}

.experience.font-kai-ready .memory-section h2,
.experience.font-kai-ready .event-section h2,
.experience.font-kai-ready .venue-section h2,
.experience.font-kai-ready .rsvp-section h2 {
  font-family: "Wedding Kai", "KaiTi", "STKaiti", var(--font-song);
  font-weight: 700;
}

.experience.font-handwritten-ready .polaroid figcaption,
.experience.font-handwritten-ready .hand-note {
  font-family: "Wedding Handwritten", "STXingkai", "KaiTi", var(--font-song);
  font-weight: 400;
}

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 5px 20px rgb(64 25 24 / 10%); }
  50% { box-shadow: 0 0 0 6px rgb(167 25 43 / 13%), 0 5px 20px rgb(64 25 24 / 12%); }
}

@keyframes navigation-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

@keyframes camera-breathe {
  from { transform: scale(1.035) translate3d(-0.25%, 0, 0); }
  to { transform: scale(1.055) translate3d(0.35%, -0.2%, 0); }
}

@keyframes ray-drift {
  0% { opacity: 0.16; translate: -2% -1%; scale: 0.97 0.9; }
  55% { opacity: 0.34; }
  100% { opacity: 0.2; translate: 3% 2%; scale: 1.05 1.08; }
}

@keyframes flare-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes touch-halo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  25% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes touch-core {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.75); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
}

@media (max-height: 700px) {
  .invitation__content {
    padding: 0;
  }

  .invitation-hero {
    height: 440px;
  }

  .date-block {
    margin-top: 17px;
    margin-bottom: 14px;
  }

  .venue {
    margin-bottom: 16px;
  }
}

@media (min-width: 700px) {
  body {
    background:
      linear-gradient(rgb(10 7 5 / 68%), rgb(10 7 5 / 68%)),
      url("../src/opening-scene.jpg") center / cover fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dust,
  .light-field__ray {
    opacity: 0.22;
  }

  .motion-item {
    opacity: 1 !important;
    translate: 0 0 !important;
    scale: 1 !important;
    filter: none !important;
    clip-path: inset(0) !important;
  }

  .motion-flip {
    transform: none !important;
  }
}
