:root {
  --black: #18070d;
  --ink: #151311;
  --warm: #8a1e3d;
  --theme-primary: #74132f;
  --theme-hover: #941c41;
  --theme-accent: #8a1e3d;
  --theme-accent-deep: #76213c;
  --theme-accent-light: #b95d78;
  --theme-heart: #a51f41;
  --theme-heart-stroke: #85132f;
  --theme-heart-outline: #c25b75;
  --theme-lace-ink: #4f1428;
  --theme-soft-text: #ead6dc;
  --theme-muted-text: #e4ded8;
  --theme-counter: #e1c0c8;
  --satin-base: #310b18;
  --opening-glow: 91 18 43;
  --opening-glow-dark: 38 8 17;
  --opening-base: #10060a;
  --opening-overlay: 118 14 48;
  --opening-overlay-dark: 25 4 11;
  --satin-overlay: 105 9 38;
  --satin-overlay-dark: 20 4 10;
  --guestbook-overlay: 95 8 34;
  --guestbook-overlay-dark: 24 4 12;
  --paper: #fcfcfb;
  --shell-width: 900px;
  --st-w: min(100vw, 480px);
  color-scheme: light;
  font-family: "Times New Roman", Times, serif;
}

body[data-route="kd"] {
  --black: #082d2b;
  --warm: #0b716a;
  --theme-primary: #0b625d;
  --theme-hover: #0c7a73;
  --theme-accent: #0d6d66;
  --theme-accent-deep: #075a56;
  --theme-accent-light: #bca783;
  --theme-heart: #0d706a;
  --theme-heart-stroke: #07514d;
  --theme-heart-outline: #c6ad91;
  --theme-lace-ink: #07514d;
  --theme-soft-text: #e0d3bd;
  --theme-muted-text: #d6c8ad;
  --theme-counter: #c6ad91;
  --satin-base: #082f2d;
  --opening-glow: 13 86 80;
  --opening-glow-dark: 5 38 38;
  --opening-base: #041a1a;
  --opening-overlay: 9 94 87;
  --opening-overlay-dark: 4 27 28;
  --satin-overlay: 9 89 82;
  --satin-overlay-dark: 4 25 26;
  --guestbook-overlay: 8 78 72;
  --guestbook-overlay-dark: 3 23 24;
}

body[data-route="kd"] .names-watermark {
  filter: brightness(0) saturate(100%) invert(74%) sepia(12%) saturate(481%)
    hue-rotate(351deg) brightness(91%) contrast(86%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
}

body.locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b4a08c;
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 28px;
  perspective: 1400px;
  background:
    radial-gradient(circle at 30% 20%, rgb(var(--opening-glow)) 0, transparent 38%),
    radial-gradient(circle at 70% 80%, rgb(var(--opening-glow-dark)) 0, transparent 42%), var(--opening-base);
  transition:
    opacity 0.95s ease,
    visibility 0.95s ease;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background:
    linear-gradient(135deg, rgb(var(--opening-overlay) / 0.52), rgb(var(--opening-overlay-dark) / 0.45)),
    url("assets/satin-background.webp") center / cover;
}

.opening.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening.is-opening .flower-left {
  animation: none;
}

.opening.is-opening .flower-right {
  animation: none;
}

.opening.is-opening .opening-flower img {
  animation:
    flowerBloom 1.2s cubic-bezier(0.42, 0, 0.58, 1) both,
    flowerFade 1.2s linear both;
}

.opening.is-opening .invitation-card {
  animation: cardFlyUp 1.05s 1.2s cubic-bezier(0.45, 0, 0.8, 0.4) both;
}

.snow-burst {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.snow-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #eee8df;
  font-size: var(--particle-size, 20px);
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 12px rgb(255 255 255 / 0.35);
}

.opening.is-opening .snow-burst span {
  animation: snowBurst 1.35s var(--particle-delay, 1.55s)
    cubic-bezier(0.12, 0.65, 0.25, 1) both;
}

.opening-stars span {
  position: absolute;
  color: #8d7b69;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1;
  animation: snowFall 9.6s linear infinite;
}

.opening-stars span:nth-child(1) {
  left: 10%;
  top: -6%;
  animation-delay: -3.8s;
}
.opening-stars span:nth-child(2) {
  left: 29%;
  top: -6%;
  animation-delay: -1.2s;
}
.opening-stars span:nth-child(3) {
  left: 51%;
  top: -6%;
  animation-delay: -4.5s;
}
.opening-stars span:nth-child(4) {
  left: 77%;
  top: -6%;
  animation-delay: -2.4s;
}
.opening-stars span:nth-child(5) {
  left: 91%;
  top: -6%;
  animation-delay: -0.6s;
}

.heart-rain {
  position: fixed;
  z-index: 25;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

body.locked .heart-rain {
  opacity: 0;
}

.heart-rain span {
  position: absolute;
  top: -12vh;
  font-size: var(--heart-size, 18px);
  line-height: 1;
  opacity: var(--heart-opacity, 0.55);
  animation:
    heartFall var(--heart-duration, 11s) var(--heart-delay, 0s) linear infinite;
  will-change: transform;
}

.heart-rain .heart-solid {
  color: var(--theme-heart);
  -webkit-text-stroke: 0.3px var(--theme-heart-stroke);
  text-shadow: 0 2px 8px rgb(71 5 25 / 0.2);
}

.heart-rain .heart-outline {
  color: #fffaf8;
  -webkit-text-stroke: 1px var(--theme-heart-outline);
  text-shadow: 0 1px 3px rgb(116 19 47 / 0.12);
}

.invitation-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: min(650px, 94vw);
  min-height: min(450px, calc(100svh - 52px));
  padding: clamp(20px, 3vh, 28px) 12% clamp(24px, 3.5vh, 32px);
  overflow: visible;
  text-align: center;
  border-radius: 10px;
  translate: 0 -2px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.5);
  animation: cardEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.opening-flower {
  position: absolute;
  display: block;
  z-index: 3;
  top: 2%;
  width: clamp(90px, 17vw, 140px);
  height: 75%;
  will-change: transform;
}

.heart-seal,
.invitation-card h1,
.tiny-flourish,
.opening-date,
.opening-invite,
#openInvitation {
  position: relative;
  z-index: 2;
}

.opening-flower img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  will-change: transform, opacity;
}

.flower-left {
  left: 0;
  object-position: left center;
  transform: translateY(-30px) scaleX(-1) rotate(-14deg);
  transform-origin: center center;
}
.flower-right {
  right: 0;
  object-position: left center;
  transform: translateY(-30px) rotate(-14deg);
  transform-origin: center center;
}

.heart-seal {
  display: grid;
  place-items: center;
  width: clamp(42px, 7.5vw, 59px);
  height: clamp(42px, 7.5vw, 59px);
  flex: 0 0 auto;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.36);
}

.invitation-card h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Allura", cursive !important;
  font-size: clamp(34px, 5vw, 48px);
  font-style: normal;
  font-weight: 400;
  line-height: 0.98;
}

.invitation-card h1 i {
  margin: 4px 0;
  font-family: "The Nautigal", cursive;
  font-size: clamp(30px, 2.4vw, 34px);
  font-weight: 400;
}

.tiny-flourish,
.opening-date,
.opening-invite {
  color: #5d564f;
  font-family: "Lora", "Times New Roman", ChungDoiIndic, serif !important;
}

.tiny-flourish {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 16px);
}

.opening-date {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2vw, 21px);
}

.opening-invite {
  margin: 0;
  font-size: clamp(16px, 2vw, 21px);
}

#openInvitation {
  width: clamp(150px, 18vw, 190px);
  min-height: 50px;
  padding: 10px 22px;
  font-size: clamp(18px, 2vw, 23px);
}

.black-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 40px;
  padding: 10px 27px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 0;
  border-radius: 999px;
  background: var(--theme-primary);
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.25);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.black-button::after {
  position: absolute;
  z-index: -1;
  top: -60%;
  left: -55%;
  width: 34%;
  height: 220%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.72),
    transparent
  );
  transform: skewX(-22deg);
}

.black-button:hover {
  transform: translateY(-2px);
  background: var(--theme-hover);
}

.black-button:hover::after,
.black-button:focus-visible::after {
  animation: buttonFlash 0.75s ease-out;
}

.site-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--black);
  box-shadow: 0 0 45px rgb(0 0 0 / 0.12);
}

.satin-section {
  position: relative;
  color: #fff;
  background-color: var(--satin-base);
  background-image:
    linear-gradient(145deg, rgb(var(--satin-overlay) / 0.68), rgb(var(--satin-overlay-dark) / 0.76)),
    url("assets/satin-background.webp");
  background-position: top center;
  background-size: 100% auto;
  background-repeat: repeat-y;
}

.hero {
  min-height: calc(0.85714 * var(--st-w));
  padding: calc(0.15646 * var(--st-w)) 0 0;
  overflow: hidden;
}

.site-shell.is-entering .eyebrow {
  animation: heroTextEnter 0.9s 0.15s ease both;
}

.site-shell.is-entering .hero-photo {
  animation:
    heroFade 0.9s 0.25s ease both,
    alFloatPhoto 7.5s 1.2s ease-in-out infinite;
}

.site-shell.is-opened .hero-photo {
  animation: alFloatPhoto 7.5s -1.8s ease-in-out infinite;
}

.site-shell.is-entering .hero-flower {
  animation:
    heroFade 0.7s 0.45s ease both,
    alFloat 6s ease-in-out infinite;
}

.site-shell.is-opened .hero-flower {
  animation: alFloat 6s -3s ease-in-out infinite;
}

.site-shell.is-entering .hero-lace {
  animation: laceRise 1.05s 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.eyebrow {
  position: relative;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-composition {
  position: relative;
  width: 100%;
  aspect-ratio: 441 / 402.5;
  margin-top: calc(0.21655 * var(--st-w));
}

.envelope-background {
  position: absolute;
  z-index: 0;
  top: 7.08%;
  left: 50%;
  width: 75.737%;
  aspect-ratio: 334 / 372;
  object-fit: contain;
  transform: translateX(-50%);
}

.hero-photo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 35.95%;
  width: 50.254%;
  aspect-ratio: 221.619 / 308.899;
  background: #fff;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 0.25);
  will-change: transform, opacity;
}

.hero-photo-tilt {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 7px solid #fff;
  transform: rotate(11.99deg);
}

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

.hero-flower {
  position: absolute;
  z-index: 3;
  top: 2.107%;
  left: 15.42%;
  display: block;
  width: 28.345%;
  aspect-ratio: 125 / 291;
  will-change: transform;
}

.hero-flower img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-lace {
  position: absolute;
  z-index: 5;
  top: 44.591%;
  left: 50%;
  width: 75.964%;
  aspect-ratio: 335 / 223;
  object-fit: contain;
  transform: translateX(-50%);
}

.hero-flower img,
.hero-lace,
.envelope-background {
  pointer-events: none;
}

.names-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin-top: calc(0.17234 * var(--st-w));
  padding: 0 20px calc(0.17007 * var(--st-w));
}

.names {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Allura", cursive;
  font-size: clamp(56px, calc(0.075 * var(--st-w)), 82px);
  font-style: normal;
  line-height: 0.92;
  gap: 0.28em;
  color: #fff5f4;
}

.auto-scroll-toggle {
  display: none !important;
}

.names-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: clamp(150px, 46vw, 228px);
  height: auto;
  opacity: 0.78;
  filter: brightness(2.25) saturate(0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.names > span:not(.names-watermark) {
  position: relative;
  z-index: 1;
}

.lace-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 93.424%;
  min-height: calc(0.69429 * var(--st-w));
  margin: calc(0.05215 * var(--st-w)) auto 0;
  color: var(--theme-lace-ink);
  isolation: isolate;
}

.lace-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(0.04308 * var(--st-w)) calc(0.03628 * var(--st-w))
    calc(0.04989 * var(--st-w));
  background: #fcfdfd;
  filter: drop-shadow(4px 4px 2px rgb(0 0 0 / 0.25));
}

.lace-panel-top,
.lace-panel-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  pointer-events: none;
  aspect-ratio: 859 / 224;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.lace-panel-top {
  margin-bottom: -1px;
  background-image: url("assets/lace1.webp");
}

.lace-panel-bottom {
  aspect-ratio: 859 / 238;
  margin-top: -1px;
  background-image: url("assets/lace3.webp");
}

.lace-panel-body {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: calc(0.3645 * var(--st-w));
  padding: 8.505% 7.5% 14.1556%;
  text-align: center;
  color: #111;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.025em;
  background-image: url("assets/lace2.webp");
  background-repeat: no-repeat round;
  background-position: top center;
  background-size: 100% auto;
}

.lace-panel-body > * {
  position: relative;
  z-index: 3;
}

.lace-panel h2,
.album h2,
.location h2,
.schedule h2,
.guestbook h2,
.gift-section h2 {
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.lace-panel h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.015em;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 12px;
  align-items: stretch;
  margin: calc(0.028575 * var(--st-w)) auto 0;
  font-size: 10px;
}

.parents-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.parents-grid.single-family {
  display: flex;
  justify-content: center;
  width: min(100%, 520px);
}

.parents-grid.single-family > div {
  align-items: center;
}

.parents-grid.single-family .parents-divider {
  display: none;
}

.parents-grid p {
  margin: 3px auto 0;
  max-width: none;
  color: #776d64;
  font-size: 0.9em;
  line-height: 1.4;
  white-space: nowrap;
}

.route-event-detail {
  margin: 7px auto 0 !important;
  color: #776d64;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.parents-grid small {
  color: #776d64;
}

.parents-divider {
  display: block;
  width: 1px;
  height: 100%;
  min-height: 70px;
  align-self: center;
  background: #b6aca4;
}

.announcement {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin: calc(0.0315 * var(--st-w)) auto 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.025em;
}

.couple-full {
  display: flex;
  flex-direction: column;
  gap: 0.34em;
  margin: calc(0.036 * var(--st-w)) auto 0;
  font-family: "Allura", cursive !important;
  font-size: clamp(58px, 8vw, 78px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.08;
}

.couple-full i {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.5em;
  font-style: normal;
}

.ceremony-block {
  margin: calc(0.0405 * var(--st-w)) auto 0;
}

.ceremony-block h3,
.reception-panel h3 {
  margin-bottom: 9px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.ceremony-block p {
  margin: 0 auto 12.6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.event-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 390px);
  margin: 16.2px auto 0;
  color: var(--theme-accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.date-lockup {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: end;
  gap: 12px;
  margin: 14.4px auto 7.2px;
}

.ceremony-block .date-lockup {
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 16px;
  margin: 7.2px auto 0;
}

.date-divider {
  display: block;
  width: 1px;
  height: 72px;
  background: #aaa;
}

.ceremony-block .date-month {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: "Cormorant Garamond", serif;
  text-align: left;
}

.ceremony-block .lunar-date {
  margin: 12.6px auto 0;
  color: var(--theme-accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: center;
}

.date-lockup > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Playfair Display", Georgia, serif;
}

.date-lockup small {
  color: var(--theme-accent-deep);
  font-size: 16px;
}

.date-lockup > div:first-child {
  align-items: center;
}

.date-lockup b {
  font-family: "Cormorant Garamond", serif;
  font-size: 74px;
  font-weight: 500;
  line-height: 0.9;
}

.date-lockup strong {
  font-size: 22px;
}

.date-lockup span {
  font-size: 20px;
}

.lunar {
  color: var(--theme-accent);
}

.album {
  margin-top: calc(0.035 * var(--st-w));
  padding: calc(0.04 * var(--st-w)) 0 calc(0.11 * var(--st-w));
  text-align: center;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  width: 92%;
  margin: calc(0.05215 * var(--st-w)) auto 0;
}

.carousel-stage {
  position: relative;
  height: calc(0.62 * var(--st-w));
  perspective: 1500px;
  transform-style: preserve-3d;
  overflow: visible;
}

.carousel-card {
  position: absolute;
  display: block;
  top: 2%;
  left: 50%;
  width: 43%;
  aspect-ratio: 2 / 3;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 17px 40px rgb(0 0 0 / 0.45);
  transform-origin: center;
  transition:
    transform 0.85s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.85s ease,
    filter 0.85s ease;
  cursor: pointer;
}

.carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.carousel-arrow {
  position: relative;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: auto;
  padding: 0;
  color: #fff;
  font-size: 29px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  cursor: pointer;
}

.carousel-count {
  margin: 28px 0 0;
  color: var(--theme-counter);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.reception-panel .lace-panel-body {
  padding: 19.44px 7.5% 8.1%;
}

.reception-panel h3 {
  margin: 25.2px auto 7.2px;
}

.reception-panel .event-meta {
  margin-top: 12.6px;
}

.reception-panel .date-lockup {
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 16px;
  margin: 5.4px auto 0;
}

.reception-panel .date-month {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: "Cormorant Garamond", serif;
  text-align: left;
}

.reception-panel .lunar-date {
  margin-top: 9px;
}

.date-lockup.large b {
  font-size: 78px;
}

.reception-times {
  display: flex;
  justify-content: center;
  gap: 55px;
  margin: 22.5px 0 19.8px;
  font-family: "Playfair Display", Georgia, serif;
}

.reception-times div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reception-times span {
  color: var(--theme-accent-light);
  font-size: 13px;
}

.reception-times strong {
  font-size: 21px;
}

.countdown-wrap p {
  margin-bottom: 4px;
  color: var(--theme-accent);
  font-size: 19px;
  font-family: "Cormorant Garamond", serif;
}

.countdown {
  min-height: 26px;
  color: var(--theme-accent);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  font-family: "Cormorant Garamond", serif;
}

.calendar {
  width: min(100%, 390px);
  margin: 18px auto 12.6px;
  overflow: hidden;
  border: 1px solid #c4bbb4;
  border-radius: 8px;
  font-family: "Playfair Display", Georgia, serif;
}

.calendar-title {
  padding: 15px;
  font-family: "Clicker Script", cursive;
  font-size: 30px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-grid span,
.calendar-grid b {
  display: grid;
  place-items: center;
  aspect-ratio: 1.45;
  font-size: 13px;
}

.weekdays {
  padding: 5px 8px;
  border-top: 1px solid #9c9189;
  border-bottom: 1px solid #9c9189;
}

.days {
  padding: 8px 10px 14px;
}

.days b {
  width: 28px;
  height: 28px;
  align-self: center;
  justify-self: center;
  color: #fff;
  border-radius: 50%;
  background: #090909;
}

.calendar-link {
  display: block;
  width: max-content;
  margin: 13px auto 22px;
  color: inherit;
  text-underline-offset: 4px;
}

.rsvp-button {
  min-width: 245px;
  font-family: "Playfair Display", Georgia, serif;
}

.location {
  padding: 70px clamp(26px, 9vw, 90px) 100px;
  text-align: center;
}

.location p {
  color: var(--theme-soft-text);
  line-height: 1.55;
}

.map-wrap {
  width: min(100%, 600px);
  height: clamp(220px, 34vw, 320px);
  margin: 24px auto 18px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 15px;
  background: #ddd;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.direction-link {
  color: var(--theme-muted-text);
  font-weight: 600;
  text-decoration: none;
}

.schedule {
  padding: 25px clamp(35px, 12vw, 135px) 90px;
}

.dresscode {
  margin: 0 auto 70px;
  padding: 0;
  color: #fff;
  text-align: center;
}

.dresscode h2 {
  margin-bottom: 7px;
}

.dresscode p {
  color: #cfc7c0;
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.color-dots span {
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.68);
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.schedule > h2 {
  margin-bottom: 50px;
  text-align: center;
}

.timeline {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: #e9e5e0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: calc(50% - 30px) 60px 1fr;
  align-items: center;
  min-height: 76px;
}

.timeline li::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.timeline time {
  text-align: right;
  padding-right: 34px;
  font-size: 15px;
}

.timeline li > span {
  grid-column: 3;
  padding-left: 34px;
  line-height: 1.55;
}

.timeline li b {
  position: absolute;
  left: calc(50% - 350px);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 27px;
  font-weight: 400;
  border: 1px solid #fff;
  border-radius: 50%;
}

.guestbook {
  width: calc(100% - clamp(40px, 11vw, 120px));
  margin: 0 auto 80px;
  padding: clamp(35px, 7vw, 70px);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgb(var(--guestbook-overlay) / 0.83), rgb(var(--guestbook-overlay-dark) / 0.88)),
    url("assets/satin-background.webp") center / cover;
}

.guestbook h2 {
  text-align: center;
  color: #fff8f4;
}

.guestbook-subtitle {
  margin: 44px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgb(255 235 228 / 0.35);
  font-size: 20px !important;
}

.guestbook form {
  display: grid;
  gap: 16px;
  margin: 32px auto;
}

.guestbook input,
.guestbook textarea,
.guestbook select {
  width: 100%;
  color: #171512;
  font: inherit;
  font-size: 16px;
  border: 1px solid #7a756f;
  border-radius: 6px;
  background-color: rgb(255 253 251 / 0.96);
}

.guestbook input {
  height: 46px;
  padding: 0 15px;
}

.guestbook textarea {
  min-height: 105px;
  padding: 14px 15px;
  resize: vertical;
}

.guestbook select {
  min-height: 46px;
  padding: 0 40px 0 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--theme-primary) 50%),
    linear-gradient(135deg, var(--theme-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.rsvp-form {
  display: grid;
  gap: 17px;
  margin: 28px auto 0 !important;
}

.rsvp-field {
  display: grid;
  gap: 8px;
  color: #fff6f2;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.rsvp-status {
  min-height: 1.5em;
  margin: 0;
  color: #f4dce2;
  font-size: 14px;
  text-align: center;
}

.guestbook-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guestbook-actions > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e5e3df;
}

.guestbook-actions .black-button {
  border-radius: 5px;
}

.wishes {
  display: grid;
  gap: 13px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 8px;
}

.wish {
  padding: 18px 20px;
  border: 1px solid #d5d0ca;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.65);
}

.wish-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.wish-header time {
  color: #89817a;
  font-size: 10px;
}

.wish p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.gift-section {
  min-height: 470px;
  padding: 75px 20px 110px;
  text-align: center;
}

.gift-button {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(330px, 78vw);
  margin: 22px auto 0;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gift-button img {
  position: relative;
  z-index: 1;
  width: 65.6%;
  animation: giftFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 20px 20px rgb(0 0 0 / 0.45));
  transition: filter 0.35s ease;
}

.gift-button > span:last-child {
  margin-top: -4px;
  color: #c8bfb8;
  font-size: 13px;
}

.gift-message {
  margin: 58px auto 0;
  color: #fff;
  font-size: clamp(15px, 2vw, 22px);
  line-height: 1.5;
  text-align: center;
}

.gift-stars {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.gift-stars i {
  position: absolute;
  color: #e5c69f;
  font-size: 20px;
  font-style: normal;
  animation: sparkle 1.8s ease-in-out infinite;
}

.gift-stars i:nth-child(1) {
  top: 20%;
  left: 18%;
  --dx: -34px;
  --dy: -72px;
}
.gift-stars i:nth-child(2) {
  top: 14%;
  right: 20%;
  --dx: 32px;
  --dy: -78px;
  animation-delay: -0.6s;
}
.gift-stars i:nth-child(3) {
  top: 48%;
  left: 7%;
  --dx: -44px;
  --dy: -42px;
  animation-delay: -1.1s;
}
.gift-stars i:nth-child(4) {
  top: 52%;
  right: 8%;
  --dx: 42px;
  --dy: -48px;
  animation-delay: -0.3s;
}
.gift-stars i:nth-child(5) {
  top: 76%;
  left: 20%;
  --dx: -28px;
  --dy: -66px;
  animation-delay: -1.4s;
}
.gift-stars i:nth-child(6) {
  top: 74%;
  right: 20%;
  --dx: 30px;
  --dy: -70px;
  animation-delay: -0.9s;
}

.mini-gift {
  position: absolute;
  z-index: 2;
  display: block;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation: miniGiftFloat 2.7s ease-in-out infinite;
  pointer-events: none;
}

.mini-gift-a {
  top: 10%;
  left: 9%;
  --gift-x: -36px;
  --gift-y: -88px;
  filter: hue-rotate(300deg) saturate(1.25)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -0.4s;
}
.mini-gift-b {
  top: 8%;
  right: 10%;
  --gift-x: 35px;
  --gift-y: -94px;
  font-size: 31px;
  filter: hue-rotate(35deg) saturate(1.4)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -1.2s;
}
.mini-gift-c {
  top: 53%;
  left: 1%;
  --gift-x: -54px;
  --gift-y: -78px;
  font-size: 25px;
  filter: hue-rotate(95deg) saturate(1.35)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -1.8s;
}
.mini-gift-d {
  top: 57%;
  right: 1%;
  --gift-x: 48px;
  --gift-y: -82px;
  font-size: 26px;
  filter: hue-rotate(210deg) saturate(1.4)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -0.8s;
}
.mini-gift-e {
  top: 75%;
  left: 18%;
  --gift-x: -30px;
  --gift-y: -76px;
  font-size: 24px;
  filter: hue-rotate(150deg) saturate(1.3)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -1.5s;
}
.mini-gift-f {
  top: 73%;
  right: 18%;
  --gift-x: 34px;
  --gift-y: -84px;
  font-size: 25px;
  filter: hue-rotate(255deg) saturate(1.4)
    drop-shadow(0 5px 7px rgb(0 0 0 / 0.32));
  animation-delay: -0.2s;
}

.gift-button:hover img,
.gift-button:focus-visible img {
  animation-name: giftHoverFloat;
  filter: drop-shadow(0 25px 26px rgb(0 0 0 / 0.55));
}

.gift-button:hover .mini-gift,
.gift-button:focus-visible .mini-gift {
  animation-name: miniGiftFly;
  animation-duration: 1.15s;
  animation-fill-mode: both;
}

.gift-button:hover .gift-stars i,
.gift-button:focus-visible .gift-stars i {
  animation-name: starFly;
  animation-duration: 1.25s;
  animation-fill-mode: both;
}

.gift-button:hover .gift-firework,
.gift-button:focus-visible .gift-firework {
  animation: fireworkBurst 1.35s ease-out both;
}

.gift-firework {
  position: absolute;
  z-index: 4;
  top: 42%;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: #fff4ce;
  box-shadow:
    0 0 12px 3px rgb(255 226 173 / 0.75),
    0 -34px #f3d49d,
    24px -24px #fff,
    34px 0 #d8b4ff,
    24px 24px #f3d49d,
    0 34px #fff,
    -24px 24px #d8b4ff,
    -34px 0 #fff,
    -24px -24px #f3d49d,
    0 -48px #e9b36b,
    34px 34px #e9b36b,
    -34px -34px #e9b36b;
}

.gift-firework-b {
  top: 25%;
  left: calc(50% - 2px);
  animation-delay: 0.3s !important;
}

.music-toggle {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 7px 18px rgb(0 0 0 / 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    transform 0.25s ease;
}

.music-toggle.visible {
  opacity: 1;
  visibility: visible;
}

.music-toggle:hover {
  transform: scale(1.08);
}

.auto-scroll-toggle {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 92px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  background: var(--theme-primary);
  box-shadow: 0 7px 18px rgb(0 0 0 / 0.24);
  color: #fff;
  font:
    700 19px/1 "Times New Roman",
    serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.auto-scroll-toggle.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auto-scroll-toggle:hover {
  transform: scale(1.08);
}

.music-toggle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.sound-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 23px;
}

.sound-bars i {
  width: 3px;
  height: 35%;
  border-radius: 2px;
  background: #fff;
}

.music-toggle[aria-pressed="true"] .sound-bars i {
  animation: soundBar 0.8s ease-in-out infinite alternate;
}

.music-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) {
  animation-delay: -0.4s;
}
.music-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) {
  animation-delay: -0.7s;
}
.music-toggle[aria-pressed="true"] .sound-bars i:nth-child(4) {
  animation-delay: -0.2s;
}

.gift-modal[hidden] {
  display: none;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 0.78);
  backdrop-filter: blur(5px);
}

.gift-card {
  position: relative;
  z-index: 1;
  width: min(440px, 94vw);
  padding: 38px;
  text-align: center;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.4);
  animation: cardEnter 0.45s ease both;
}

.gift-card h2 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
}

.gift-card > p {
  color: #756a61;
  font-size: 13px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 25px;
  border: 0;
  border-radius: 50%;
  background: #eeeae7;
  cursor: pointer;
}

.qr-placeholder {
  width: 175px;
  aspect-ratio: 1;
  margin: 24px auto;
  border: 10px solid #fff;
  outline: 1px solid #ddd;
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 / 18px 18px;
}

.gift-card dl {
  margin: 0;
  text-align: left;
}

.gift-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}

.gift-card dt {
  color: #85796f;
}
.gift-card dd {
  margin: 0;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flowerFade {
  from {
    opacity: 0.96;
  }
  to {
    opacity: 0;
  }
}

@keyframes flowerBloom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2.05);
  }
}

@keyframes cardFlyUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  18% {
    transform: translateY(8px) scale(1.015);
    opacity: 1;
  }
  100% {
    transform: translateY(-115vh) scale(0.88);
    opacity: 0.92;
  }
}

@keyframes snowBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.15) rotate(0deg);
    opacity: 0;
  }
  14% {
    transform: translate(-50%, -50%) scale(1.1) rotate(25deg);
    opacity: 1;
  }
  100% {
    transform: translate(
        calc(-50% + var(--burst-x)),
        calc(-50% + var(--burst-y))
      )
      scale(0.72) rotate(var(--burst-rotation));
    opacity: 0;
  }
}

@keyframes heroTextEnter {
  from {
    opacity: 0;
    letter-spacing: 0.24em;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.14em;
    transform: translateY(0);
  }
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: translateX(-10%) translateY(55px) rotate(13deg) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateX(-25%) translateY(0) rotate(7deg) scale(1);
  }
}

@keyframes photoFloat {
  0%,
  100% {
    transform: translateX(-25%) translateY(0) rotate(7deg);
  }
  50% {
    transform: translateX(-25%) translateY(-11px) rotate(6.5deg);
  }
}

@keyframes flowerReveal {
  from {
    opacity: 0;
    transform: translateY(55px) rotate(-5deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes laceRise {
  from {
    opacity: 0;
    transform: translate(-50%, 18%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes snowFall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(35px, 110vh, 0) rotate(300deg);
    opacity: 0;
  }
}

@keyframes heartFall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(var(--heart-tilt, -14deg))
      scaleY(var(--heart-flip, 1));
  }
  25% {
    transform: translate3d(var(--heart-sway-a, 20px), 23vh, 0)
      rotate(calc(var(--heart-tilt, -14deg) + 28deg))
      scaleY(var(--heart-flip, 1));
  }
  50% {
    transform: translate3d(var(--heart-sway-b, -12px), 52vh, 0)
      rotate(calc(var(--heart-tilt, -14deg) - 12deg))
      scaleY(var(--heart-flip, 1));
  }
  75% {
    transform: translate3d(var(--heart-sway-c, 24px), 82vh, 0)
      rotate(calc(var(--heart-tilt, -14deg) + 36deg))
      scaleY(var(--heart-flip, 1));
  }
  100% {
    transform: translate3d(var(--heart-sway-a, -10px), 110vh, 0)
      rotate(calc(var(--heart-tilt, -14deg) - 18deg))
      scaleY(var(--heart-flip, 1));
  }
}

@keyframes buttonFlash {
  from {
    left: -55%;
  }
  to {
    left: 125%;
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes giftFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes giftHoverFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1.12);
  }
  50% {
    transform: translateY(-15px) rotate(1deg) scale(1.12);
  }
}

@keyframes miniGiftFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-9px) rotate(4deg);
  }
}

@keyframes miniGiftFly {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--gift-x), var(--gift-y)) scale(0.62) rotate(18deg);
  }
}

@keyframes starFly {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(75deg);
  }
}

@keyframes fireworkBurst {
  0% {
    opacity: 0;
    transform: translateY(45px) scale(0.12) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: translateY(0) scale(0.45) rotate(12deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.55) rotate(45deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes soundBar {
  from {
    height: 25%;
  }
  to {
    height: 100%;
  }
}

@media (max-width: 620px) {
  .opening {
    padding: 16px 16px 32px;
  }

  .invitation-card {
    width: min(86vw, 540px);
    aspect-ratio: 1.46 / 1;
    min-height: 0;
    padding: clamp(14px, 3vh, 22px) 10% clamp(16px, 3vh, 24px);
    translate: 0 -8svh;
  }
  .opening-flower {
    top: 4%;
    width: clamp(42px, 12vw, 68px);
    height: 64%;
  }
  .flower-left {
    transform: translateY(-7px) scaleX(-1) rotate(-4deg);
  }
  .flower-right {
    transform: translateY(-7px) rotate(-4deg);
  }
  .heart-seal {
    width: clamp(27px, 6.5vw, 36px);
    height: clamp(27px, 6.5vw, 36px);
    font-size: clamp(14px, 4.2vw, 18px);
  }
  .invitation-card h1 {
    font-size: clamp(18px, 4.5vw, 25px);
  }
  .invitation-card h1 i {
    margin: 0;
    font-size: clamp(16px, 4vw, 21px);
  }
  .tiny-flourish {
    font-size: clamp(8px, 2vw, 10px);
  }
  .opening-date,
  .opening-invite {
    font-size: clamp(10px, 2.7vw, 12px);
  }
  #openInvitation {
    width: min(55%, 105px);
    min-height: 30px;
    padding: 5px 11px;
    font-size: clamp(11px, 2.8vw, 13px);
  }

  .names-section {
    padding-bottom: calc(0.17007 * var(--st-w));
  }
  .names {
    font-size: clamp(36px, calc(0.0405 * var(--st-w)), 52px);
  }
  .names-watermark {
    width: clamp(128px, 36vw, 170px);
  }

  .lace-panel-body {
    padding: 8.505% 7.5% 14.1556%;
  }
  .lace-panel-body > * {
    scale: 0.81;
    transform-origin: top center;
  }

  .site-shell > section:not(.hero) {
    --mobile-content-scale: 0.9;
  }
  .site-shell > section:not(.hero) :is(
      h2,
      h3,
      p,
      a,
      button,
      time,
      .carousel-count,
      .timeline li,
      .guestbook input,
      .guestbook textarea,
      .wish
    ) {
    zoom: var(--mobile-content-scale);
  }
  .announcement-line {
    display: block;
  }

  .parents-grid {
    gap: 10px;
    font-size: 10px;
  }

  .carousel {
    grid-template-columns: 38px 1fr 38px;
  }
  .carousel-stage {
    height: calc(0.62 * var(--st-w));
  }
  .carousel-card {
    width: 48%;
  }
  .carousel-arrow {
    width: 30px;
    height: 30px;
  }

  .timeline::before {
    left: 50%;
  }
  .timeline li {
    grid-template-columns: calc(50% - 24px) 48px 1fr;
    min-height: 72px;
  }
  .timeline li::before {
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
  }
  .timeline li > span {
    padding-left: 18px;
    font-size: 13px;
  }
  .timeline time {
    padding-right: 24px;
    font-size: 12px;
  }
  .timeline li b {
    left: calc(50% - 145px);
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .guestbook {
    width: calc(100% - 30px);
    padding: 30px 18px;
  }

  .wish-header {
    flex-direction: column;
    gap: 5px;
  }
  .music-toggle {
    right: 14px;
    bottom: 18px;
  }
  .auto-scroll-toggle {
    right: 14px;
    bottom: 80px;
  }
}

html.auto-scrolling {
  scroll-behavior: auto !important;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes alFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes alFloatPhoto {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 768px) {
  :root {
    --st-w: min(100vw, 900px);
  }
  .site-shell {
    width: min(100%, 900px);
  }
  .eyebrow {
    font-size: 26px;
  }
  .lace-panel h2 {
    font-size: 22px;
  }
  .parents-grid {
    gap: 24px;
    font-size: 13px;
  }
  .parents-divider {
    height: 68px;
  }
  .announcement {
    font-size: 20px;
  }
  .ceremony-block h3,
  .ceremony-block p,
  .reception-panel h3 {
    font-size: 20px;
  }
  .names-watermark {
    width: 220px;
  }
}

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

h2,
h3,
.eyebrow,
.event-meta,
.date-lockup,
.date-lockup *,
.lunar-date,
.reception-times,
.countdown-wrap,
.calendar-grid {
  font-family:
    Baskerville, "Libre Baskerville", "Times New Roman", ChungDoiIndic, serif !important;
}
