:root {
  --soft-pink: #f8dce6;
  --blush: #f3c1d3;
  --warm-white: #fff9fa;
  --rose: #d98ca5;
  --gold: #d4af6a;
  --text: #754a58;
  --display-font: "Palace Script MT", "Monotype Corsiva", "Segoe Script", cursive;
  --body-font: Georgia, "Times New Roman", serif;
  --surface: rgba(255, 252, 250, 0.88);
  --surface-strong: #fffdfc;
  --text-muted: #916d79;
  --shadow-soft: 0 24px 70px rgba(117, 74, 88, 0.13);
  --shadow-card: 0 16px 45px rgba(117, 74, 88, 0.16);
  --border-gold: rgba(212, 175, 106, 0.58);
  --focus: #8a3f5a;
  --page-max: 1180px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-color: var(--rose) var(--warm-white);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.95), transparent 30rem),
    linear-gradient(180deg, var(--warm-white), #fff2f5 34%, #f9dce7 68%, #fff8f8);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 10000;
  inset: 0;
  content: "";
  pointer-events: none;
  background: var(--warm-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

body.is-loading::before {
  opacity: 1;
  visibility: visible;
}

.tab-hidden .motion-decoration,
.tab-hidden .paw-trail-print,
.tab-hidden .cloud,
.tab-hidden .atmosphere-star,
.tab-hidden .hero-stars span,
.tab-hidden .closing-heart,
.tab-hidden .scroll-arrow {
  animation-play-state: paused !important;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 10001;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.config-error {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 50%;
  width: min(92vw, 42rem);
  padding: 0.9rem 1.1rem;
  border: 1px solid #b33c5a;
  border-radius: 0.8rem;
  color: #6a2336;
  background: #fff4f6;
  box-shadow: var(--shadow-card);
  transform: translateX(-50%);
}

.config-error strong,
.config-error span {
  display: block;
}

.page-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 16rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(3px);
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 7rem;
  height: 7rem;
  top: -2.8rem;
  left: 2.7rem;
}

.cloud::after {
  width: 9rem;
  height: 8rem;
  top: -3.6rem;
  right: 1.8rem;
}

.cloud--one {
  top: 11%;
  left: -8rem;
}

.cloud--two {
  right: -8rem;
  bottom: 18%;
}

.moon-glow {
  position: absolute;
  top: 16%;
  right: -8rem;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 217, 0.48), transparent 68%);
}

.atmosphere-star {
  position: absolute;
  color: rgba(212, 175, 106, 0.48);
  animation: twinkle 4s ease-in-out infinite;
}

.atmosphere-star--one {
  top: 14%;
  left: 8%;
}

.atmosphere-star--two {
  top: 46%;
  right: 8%;
  animation-delay: -1.7s;
}

.atmosphere-star--three {
  left: 12%;
  bottom: 12%;
  animation-delay: -3s;
}

.floating-controls {
  position: fixed;
  z-index: 1000;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.controls-top .floating-controls {
  top: max(0.75rem, env(safe-area-inset-top));
  bottom: auto;
}

.controls-top .floating-nav,
.controls-top .control-status {
  top: calc(100% + 0.5rem);
  bottom: auto;
}

.music-control-wrap {
  position: relative;
}

.round-control {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(212, 175, 106, 0.54);
  border-radius: 999px;
  background: rgba(255, 252, 250, 0.92);
  box-shadow: 0 8px 24px rgba(117, 74, 88, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.round-control:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(117, 74, 88, 0.22);
  transform: translateY(-2px);
}

.music-control {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.65rem;
  transition:
    gap 0.25s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.control-icon {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  color: var(--rose);
}

.music-control .control-icon {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 1.42rem;
  line-height: 1;
  transform: translateY(-0.03em);
}

.control-label {
  max-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.music-control:hover .control-label,
.music-control:focus-visible .control-label {
  max-width: 7rem;
  opacity: 1;
}

.music-control:hover,
.music-control:focus-visible {
  gap: 0.45rem;
}

.control-status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: max-content;
  max-width: min(15rem, 70vw);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.control-status:empty {
  display: none;
}

.nav-control {
  position: relative;
}

.nav-toggle {
  display: grid;
  padding: 0;
  place-items: center;
}

.nav-toggle-lines {
  display: grid;
  gap: 3px;
}

.nav-toggle-lines i {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.floating-nav {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: 12rem;
  padding: 0.55rem;
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  background: rgba(255, 252, 250, 0.97);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  animation: menu-open 0.2s ease both;
}

.floating-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  text-decoration: none;
}

.floating-nav a:hover,
.floating-nav a[aria-current="true"] {
  color: #663545;
  background: var(--soft-pink);
}

.section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(5rem, 11vw, 8rem) max(1.2rem, env(safe-area-inset-left));
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.section::before,
.section::after {
  position: absolute;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.section::before {
  width: clamp(14rem, 36vw, 30rem);
  aspect-ratio: 1;
  border-radius: 48% 52% 42% 58%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(2px);
  transform: rotate(-18deg);
}

.section::after {
  width: 70%;
  height: 1px;
  bottom: 0;
  left: 15%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.5), transparent);
}

.section-decorations {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.motion-decoration {
  position: absolute;
  width: var(--decoration-size, 3rem);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: var(--decoration-opacity, 0.16);
  animation-delay: var(--decoration-delay, 0s);
  animation-play-state: paused;
  will-change: transform, opacity;
}

.motion-decoration--sakura {
  mix-blend-mode: multiply;
  animation-name: sakura-fall;
  animation-duration: var(--decoration-duration, 13s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.motion-decoration--star {
  filter: drop-shadow(0 0 0.45rem rgba(255, 237, 163, 0.72));
  mix-blend-mode: normal;
  animation-name: star-shine;
  animation-duration: var(--decoration-duration, 3.5s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.decoration-section-active .motion-decoration {
  animation-play-state: running;
}

.paw-trails {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.paw-trail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5.6rem;
}

.paw-trail--left {
  left: max(
    0.55rem,
    calc(50% - min(31rem, 38vw) - 7.25rem)
  );
}

.paw-trail--right {
  right: max(
    0.55rem,
    calc(50% - min(31rem, 38vw) - 7.25rem)
  );
}

.paw-trail-print {
  position: absolute;
  width: clamp(2.35rem, 4.8vw, 3.55rem);
  height: auto;
  opacity: 0;
  mix-blend-mode: multiply;
  filter: brightness(0);
  animation: paw-step-cycle var(--paw-cycle, 8.5s) ease-in-out var(--paw-delay, 0s) infinite both;
}

.paw-trail--left .paw-trail-print:nth-child(odd),
.paw-trail--right .paw-trail-print:nth-child(even) {
  left: 0.1rem;
}

.paw-trail--left .paw-trail-print:nth-child(even),
.paw-trail--right .paw-trail-print:nth-child(odd) {
  right: 0.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rose);
  font-size: clamp(0.68rem, 1.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  padding-top: max(4rem, env(safe-area-inset-top));
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.92), transparent 47%),
    linear-gradient(180deg, rgba(255, 249, 250, 0.92), rgba(248, 220, 230, 0.65));
}

.hero::before {
  top: -8rem;
  right: -6rem;
}

.hero-content {
  width: min(100%, 62rem);
  text-align: center;
}

.hero-stars span {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
  animation: twinkle 3.8s ease-in-out infinite;
}

.hero-stars span:nth-child(1) {
  top: 15%;
  left: 12%;
}

.hero-stars span:nth-child(2) {
  top: 25%;
  right: 14%;
  font-size: 1.6rem;
  animation-delay: -1s;
}

.hero-stars span:nth-child(3) {
  right: 24%;
  bottom: 15%;
  animation-delay: -2.2s;
}

.hero-stars span:nth-child(4) {
  left: 18%;
  bottom: 22%;
  font-size: 0.7rem;
  animation-delay: -3s;
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 10vw, 6.8rem);
  font-weight: 400;
  line-height: 0.92;
  text-wrap: balance;
}

.couple-names > span:not(.ampersand) {
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}

.ampersand {
  color: var(--gold);
  font-size: 0.65em;
}

.hero-invitation {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: clamp(0.96rem, 2.4vw, 1.15rem);
  font-style: italic;
}

.hero-art {
  position: relative;
  display: flex;
  width: min(100%, 43rem);
  height: clamp(18rem, 52vw, 30rem);
  margin: 0.4rem auto 0;
  align-items: flex-end;
  justify-content: center;
}

.hero-crescent {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 50%;
  width: clamp(10rem, 34vw, 18rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(0.7rem, 2.5vw, 1.4rem) solid rgba(212, 175, 106, 0.26);
  filter: drop-shadow(0 0 1.5rem rgba(255, 244, 187, 0.65));
  transform: translateX(-50%);
}

.hero-crescent::after {
  position: absolute;
  top: -12%;
  right: -14%;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: rgba(255, 249, 250, 0.96);
}

.hero-cat {
  position: absolute;
  bottom: 0;
  display: block;
  width: clamp(12rem, 39vw, 22rem);
  aspect-ratio: 3 / 4;
  opacity: 0;
  filter: drop-shadow(0 18px 18px rgba(117, 74, 88, 0.12));
}

.hero-cat img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 52% 49% at 50% 49%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 49% at 50% 49%, #000 58%, transparent 100%);
}

.hero-cat--groom {
  left: 8%;
  transform: translateX(-3rem);
  animation: groom-meets 1.65s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cat--bride {
  right: 8%;
  transform: translateX(3rem);
  animation: bride-meets 1.65s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-loading .hero-cat {
  animation-play-state: paused;
}

.scroll-cue {
  display: inline-grid;
  min-height: 44px;
  margin-top: -0.3rem;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: arrow-bob 1.8s ease-in-out infinite;
}

.wedding-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.6), transparent 21rem),
    linear-gradient(155deg, rgba(246, 199, 214, 0.58), rgba(255, 248, 249, 0.94));
}

.wedding-section::before {
  right: -9rem;
  bottom: -8rem;
}

.wedding-card {
  position: relative;
  width: min(100%, 48rem);
  padding: clamp(2.6rem, 8vw, 5.5rem) clamp(1.25rem, 8vw, 5rem);
  border: 1px solid var(--border-gold);
  border-radius: 48% 48% 1.6rem 1.6rem / 4.5rem 4.5rem 1.6rem 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 246, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.wedding-card::before,
.wedding-card::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(212, 175, 106, 0.22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.wedding-card::after {
  inset: 1rem;
  border-color: rgba(217, 140, 165, 0.13);
}

.floral-corner {
  position: absolute;
  z-index: 1;
  color: var(--rose);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  opacity: 0.32;
}

.floral-corner--top {
  top: 1.1rem;
  left: 1.2rem;
  transform: rotate(-25deg);
}

.floral-corner--bottom {
  right: 1.2rem;
  bottom: 1.1rem;
  transform: rotate(155deg);
}

.mock-badge {
  width: fit-content;
  margin: 0.4rem auto 1rem;
  padding: 0.24rem 0.7rem;
  border: 1px solid rgba(217, 140, 165, 0.4);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(248, 220, 230, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.wedding-names {
  display: grid;
  margin: 0;
  justify-items: center;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.wedding-name {
  opacity: 0;
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.wedding-name--bride {
  transform: translateX(2rem);
}

.wedding-name--groom {
  transform: translateX(-2rem);
}

.is-visible .wedding-name {
  opacity: 1;
  transform: translateX(0);
}

.detail-ampersand {
  margin: -0.2rem 0;
  color: var(--gold);
  font-size: 0.65em;
}

.getting-married {
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ornament {
  display: block;
  margin: 1rem 0 1.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.wedding-details {
  display: grid;
  max-width: 30rem;
  margin: 0 auto;
  gap: 1.1rem;
}

.wedding-details div {
  display: grid;
  gap: 0.2rem;
}

.wedding-details dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wedding-details dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.wedding-details dd strong,
.wedding-details dd span {
  display: block;
}

.wedding-details dd span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.map-actions {
  display: flex;
  margin-top: 1.7rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.map-app-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  border-radius: 0.35rem;
  object-fit: contain;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--secondary {
  border-color: rgba(212, 175, 106, 0.68);
  background: rgba(255, 255, 255, 0.72);
}

.button--secondary:hover {
  background: var(--soft-pink);
  box-shadow: 0 8px 22px rgba(117, 74, 88, 0.12);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #c87391, var(--rose));
  box-shadow: 0 10px 25px rgba(180, 91, 122, 0.26);
}

.button--primary:hover {
  box-shadow: 0 13px 30px rgba(180, 91, 122, 0.35);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.details-invitation {
  max-width: 31rem;
  margin: 1.8rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.story-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.75), transparent 24rem),
    linear-gradient(180deg, rgba(255, 249, 250, 0.9), rgba(242, 209, 221, 0.68));
}

.story-section::before {
  top: 18%;
  left: -12rem;
}

.section-heading {
  width: min(100%, 45rem);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.section-heading h2,
.countdown-content h2,
.closing-content h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
}

.section-heading > p:last-child {
  margin: 0.9rem auto 0;
  color: var(--text-muted);
  font-style: italic;
}

.storybook {
  position: relative;
  width: min(100%, 57rem);
}

.book-cover {
  position: relative;
  z-index: 2;
  padding: clamp(0.7rem, 2vw, 1.1rem);
  border: 1px solid rgba(117, 74, 88, 0.14);
  border-radius: 1.1rem 1.8rem 1.8rem 1.1rem;
  background: linear-gradient(135deg, #ae7183, #754a58);
  box-shadow: 0 30px 60px rgba(117, 74, 88, 0.25), inset 0 0 0 3px rgba(255, 255, 255, 0.1);
  perspective: 1600px;
}

.book-cover::before {
  position: absolute;
  z-index: 3;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.75rem;
  width: 0.28rem;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0.3rem 0 0 rgba(0, 0, 0, 0.08);
}

.book-page {
  position: relative;
  min-height: 23rem;
  padding: clamp(1rem, 5vw, 2.5rem);
  border-radius: 0.55rem 1.1rem 1.1rem 0.55rem;
  background:
    linear-gradient(90deg, rgba(117, 74, 88, 0.08), transparent 4%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(212, 175, 106, 0.035) 29px),
    #fffdf8;
  box-shadow: inset 0 0 25px rgba(117, 74, 88, 0.08);
  transform-origin: left center;
  transform-style: preserve-3d;
}

.book-page.turn-next {
  animation: page-turn-next 0.65s cubic-bezier(0.55, 0.08, 0.35, 1);
}

.book-page.turn-previous {
  animation: page-turn-previous 0.65s cubic-bezier(0.55, 0.08, 0.35, 1);
}

.album-figure {
  display: grid;
  margin: 0;
  gap: 1rem;
}

.album-figure picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: clamp(0.35rem, 1.5vw, 0.7rem) solid #fff;
  border-radius: 0.35rem;
  background: var(--soft-pink);
  box-shadow: 0 10px 25px rgba(117, 74, 88, 0.14);
}

.album-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.album-figure img.is-loading {
  opacity: 0.2;
}

.album-figure figcaption {
  min-height: 1.8em;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1.1;
  text-align: center;
}

.page-number {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.album-empty {
  display: grid;
  min-height: 18rem;
  margin: 0;
  place-items: center;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.album-controls {
  display: grid;
  margin-top: 1.4rem;
  grid-template-columns: minmax(6rem, 1fr) auto minmax(6rem, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.book-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.book-button:first-child {
  justify-self: start;
}

.book-button:last-child {
  justify-self: end;
}

.book-button:hover {
  background: #fff;
}

.book-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.page-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.album-center-controls {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.album-autoplay-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(212, 175, 106, 0.42);
  border-radius: 50%;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.album-autoplay-toggle:hover {
  background: #fff;
  transform: translateY(-1px);
}

.album-autoplay-toggle[aria-pressed="true"] {
  color: var(--text);
  background: var(--soft-pink);
}

.album-autoplay-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.page-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(117, 74, 88, 0.25);
}

.page-dot.is-active {
  background: var(--rose);
  transform: scale(1.35);
}

.swipe-hint {
  display: none;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.rsvp-section {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.75), transparent 24rem),
    linear-gradient(155deg, rgba(244, 202, 218, 0.68), rgba(255, 250, 250, 0.92));
}

.rsvp-section::before {
  top: 8%;
  right: -11rem;
}

.rsvp-card {
  width: min(100%, 43rem);
  padding: clamp(1.4rem, 5vw, 3.2rem);
  border: 1px solid var(--border-gold);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

#rsvp-form {
  display: grid;
  gap: 1.35rem;
}

.form-field {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.form-field label,
.field-label,
.form-field legend {
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.attendance-fieldset > legend,
.children-fieldset > legend {
  margin-bottom: 0.9rem;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(117, 74, 88, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input[type="text"] {
  min-height: 50px;
  padding: 0.7rem 0.9rem;
}

.form-field textarea {
  min-height: 7rem;
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: var(--rose);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 140, 165, 0.2);
}

.form-field [aria-invalid="true"] {
  border-color: #a93652 !important;
}

.attendance-fieldset,
.children-fieldset,
.dietary-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 60px;
  padding: 0.75rem;
  border: 1px solid rgba(117, 74, 88, 0.18);
  border-radius: 0.8rem;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.choice-card:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  border-color: var(--rose);
  background: var(--soft-pink);
  box-shadow: 0 0 0 2px rgba(217, 140, 165, 0.12);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice-card > span[aria-hidden] {
  color: var(--rose);
  font-size: 1.35rem;
}

.compact-options .choice-card {
  min-height: 54px;
}

.dietary-hint {
  margin: -0.15rem 0 0.2rem;
}

.dietary-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.checkbox-card {
  position: relative;
  display: flex;
  min-height: 52px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(117, 74, 88, 0.18);
  border-radius: 0.8rem;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.checkbox-card:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
}

.checkbox-card:has(input:checked) {
  border-color: var(--rose);
  background: var(--soft-pink);
}

.checkbox-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.checkbox-mark {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  border: 1px solid rgba(217, 140, 165, 0.65);
  border-radius: 0.35rem;
  place-items: center;
  color: transparent;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1;
}

.checkbox-card:has(input:checked) .checkbox-mark {
  color: #fff;
  background: var(--rose);
}

.dietary-other-field {
  display: grid;
  margin-top: 0.25rem;
  gap: 0.45rem;
}

.guest-count-field {
  justify-items: center;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgba(248, 220, 230, 0.35);
}

.guest-stepper {
  display: grid;
  grid-template-columns: 48px 4rem 48px;
  align-items: center;
  border: 1px solid rgba(117, 74, 88, 0.17);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.guest-stepper button {
  min-width: 48px;
  min-height: 48px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.guest-stepper button:hover {
  background: var(--soft-pink);
}

.guest-stepper output {
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.field-error {
  min-height: 1em;
  color: #99344d;
  font-size: 0.76rem;
}

.field-hint,
.character-count {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.character-count {
  justify-self: end;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit-button {
  width: 100%;
  margin-top: 0.2rem;
}

.submit-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-spinner {
  display: block;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  color: #99344d;
  font-size: 0.8rem;
  text-align: center;
}

.rsvp-success {
  min-height: 24rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.rsvp-success:not([hidden]) {
  display: grid;
}

.success-heart {
  color: var(--rose);
  font-family: var(--display-font);
  font-size: 5rem;
  animation: heart-breathe 2.4s ease-in-out infinite;
}

.rsvp-success h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.rsvp-success p {
  max-width: 29rem;
  color: var(--text-muted);
}

.text-button {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--rose);
  background: transparent;
  cursor: pointer;
}

.countdown-section {
  min-height: 80svh;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.74), transparent 34rem),
    linear-gradient(180deg, rgba(255, 248, 250, 0.92), rgba(243, 193, 211, 0.56));
}

.countdown-section::before {
  left: -10rem;
  bottom: -7rem;
}

.countdown-content {
  width: min(100%, 58rem);
  text-align: center;
}

.countdown-grid {
  display: grid;
  margin-top: clamp(2rem, 6vw, 3.8rem);
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.55rem, 2vw, 1.2rem);
}

.time-card {
  position: relative;
  display: grid;
  min-height: clamp(7rem, 15vw, 10rem);
  padding: 1rem 0.45rem;
  border: 1px solid rgba(212, 175, 106, 0.48);
  border-radius: 44% 44% 1rem 1rem / 2rem 2rem 1rem 1rem;
  align-content: center;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 35px rgba(117, 74, 88, 0.1);
}

.time-card::before {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  color: var(--gold);
  content: "✦";
  font-size: 0.55rem;
  transform: translateX(-50%);
}

.time-card strong {
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
}

.time-card span {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: clamp(0.58rem, 1.6vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown-complete {
  margin: 2.5rem auto 0;
  color: var(--rose);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}

.closing-section {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(244, 207, 220, 0.72), rgba(255, 249, 250, 0.94)),
    var(--soft-pink);
}

.closing-section::before {
  top: 9%;
  right: -7rem;
  background: rgba(255, 245, 207, 0.38);
}

.closing-content {
  position: relative;
  width: min(100%, 48rem);
  text-align: center;
}

.closing-moon {
  position: absolute;
  z-index: -1;
  top: 2%;
  left: 50%;
  width: clamp(12rem, 43vw, 23rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 249, 224, 0.5);
  box-shadow: 0 0 4rem rgba(255, 245, 199, 0.55);
  transform: translateX(-50%);
}

.closing-art {
  display: block;
  width: min(100%, 37rem);
  aspect-ratio: 4 / 3;
  margin: 0 auto -1rem;
}

.closing-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 47% at 50% 50%, #000 56%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 47% at 50% 50%, #000 56%, transparent 100%);
}

.closing-heart {
  display: block;
  margin: -1.25rem auto 0.35rem;
  color: var(--rose);
  font-family: var(--display-font);
  font-size: clamp(4.5rem, 10vw, 6rem);
  line-height: 1;
  animation: heart-breathe 2.6s ease-in-out infinite;
}

.closing-content p {
  color: var(--text-muted);
}

.closing-names {
  margin: 1.5rem 0 0.2rem;
  color: var(--text) !important;
  font-family: var(--display-font);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.closing-content time {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.8; transform: scale(1.16) rotate(12deg); }
}

@keyframes sakura-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4rem, 0) rotate(var(--decoration-rotate, -20deg));
  }
  12% {
    opacity: var(--decoration-opacity, 0.2);
  }
  86% {
    opacity: var(--decoration-opacity, 0.2);
  }
  100% {
    opacity: 0;
    transform:
      translate3d(var(--decoration-sway, 2rem), var(--decoration-fall, 16rem), 0)
      rotate(calc(var(--decoration-rotate, -20deg) + 280deg));
  }
}

@keyframes star-shine {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.72) rotate(var(--decoration-rotate, 0deg));
  }
  50% {
    opacity: var(--decoration-opacity, 0.32);
    transform: scale(1.18) rotate(calc(var(--decoration-rotate, 0deg) + 18deg));
  }
}

@keyframes paw-step-cycle {
  0% {
    opacity: 0;
    transform:
      translateY(calc(0.55rem * var(--paw-dir, 1)))
      rotate(var(--paw-angle, 45deg))
      scale(0.62);
  }
  8% {
    opacity: 0.12;
    transform: translateY(0) rotate(var(--paw-angle, 45deg)) scale(1);
  }
  36% {
    opacity: 0.12;
  }
  50% {
    opacity: 0;
    transform:
      translateY(calc(-0.4rem * var(--paw-dir, 1)))
      rotate(var(--paw-angle, 45deg))
      scale(0.86);
  }
  100% {
    opacity: 0;
    transform:
      translateY(calc(-0.4rem * var(--paw-dir, 1)))
      rotate(var(--paw-angle, 45deg))
      scale(0.86);
  }
}

@keyframes groom-meets {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bride-meets {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heart-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(0.35rem) rotate(45deg); }
}

@keyframes menu-open {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes page-turn-next {
  0% { transform: rotateY(0deg); opacity: 1; }
  48% { transform: rotateY(-22deg) translateX(1%); opacity: 0.2; }
  52% { transform: rotateY(18deg) translateX(-1%); opacity: 0.2; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes page-turn-previous {
  0% { transform: rotateY(0deg); opacity: 1; }
  48% { transform: rotateY(19deg) translateX(-1%); opacity: 0.2; }
  52% { transform: rotateY(-16deg) translateX(1%); opacity: 0.2; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .section {
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .floating-controls {
    right: max(0.55rem, env(safe-area-inset-right));
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    gap: 0.4rem;
  }

  .music-control {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .music-control .control-label {
    display: none;
  }

  .couple-names {
    display: grid;
    gap: 0.1rem;
  }

  .couple-names .ampersand {
    margin: -0.15em 0;
  }

  .hero-art {
    height: clamp(17rem, 95vw, 24rem);
  }

  .hero .scroll-cue {
    position: absolute;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    margin: 0;
  }

  .hero-cat {
    width: clamp(11rem, 56vw, 18rem);
  }

  .hero-cat--groom {
    left: -5%;
  }

  .hero-cat--bride {
    right: -5%;
  }

  .wedding-card {
    border-radius: 40% 40% 1.2rem 1.2rem / 3rem 3rem 1.2rem 1.2rem;
  }

  .album-controls {
    grid-template-columns: 1fr auto 1fr;
  }

  .book-button span:not([aria-hidden]) {
    display: none;
  }

  .book-button {
    min-width: 46px;
    padding: 0.5rem 0.8rem;
    font-size: 1.15rem;
  }

  .swipe-hint {
    display: block;
  }

  .attendance-options {
    grid-template-columns: 1fr;
  }

  .dietary-options {
    grid-template-columns: 1fr;
  }

  .paw-trail {
    width: 4.4rem;
  }

  .paw-trail-print {
    width: 2.15rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-card {
    min-height: 7.5rem;
  }
}

@media (max-width: 374px) {
  body {
    font-size: 0.95rem;
  }

  .section {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .wedding-card,
  .rsvp-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .map-actions {
    display: grid;
  }

  .button--secondary {
    width: 100%;
  }

  .book-page {
    min-height: 20rem;
  }

  .page-dots {
    max-width: 7rem;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .wedding-names {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }

  .wedding-name--groom {
    justify-self: end;
  }

  .wedding-name--bride {
    justify-self: start;
  }
}

@media (min-width: 1200px) {
  .section {
    padding-right: max(2rem, calc((100vw - var(--page-max)) / 2));
    padding-left: max(2rem, calc((100vw - var(--page-max)) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-cat {
    opacity: 1;
    transform: none;
  }

  .motion-decoration {
    animation: none !important;
    opacity: var(--decoration-opacity, 0.16);
    transform: rotate(var(--decoration-rotate, 0deg));
  }

  .paw-trails {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .round-control,
  .button,
  .choice-card,
  .checkbox-card,
  .book-button,
  .time-card {
    border: 1px solid ButtonText;
  }
}
