:root {
  --lilac-50: #fffaff;
  --lilac-100: #f4e8ff;
  --lilac-200: #e2c4fb;
  --lilac-300: #c792ef;
  --lilac-400: #a86be0;
  --lilac-600: #7430a7;
  --violet: #4d176b;
  --plum: #30103f;
  --ink: #211129;
  --gold: #d8b65f;
  --gold-soft: #fff0aa;
  --white: #fffdfb;
  --shadow: 0 24px 70px rgba(76, 36, 101, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(199, 146, 239, 0.36), transparent 23rem),
    radial-gradient(circle at 84% 30%, rgba(255, 240, 170, 0.32), transparent 18rem),
    linear-gradient(180deg, #fff8ff 0%, #f2e3ff 50%, #fffaf1 100%);
}

a {
  color: inherit;
}

.invitation-shell {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.72)),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a86be0' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M20 104c40-44 78-44 120 0'/%3E%3Cpath d='M28 80c34-30 70-30 104 0'/%3E%3Cpath d='M40 124c24-20 56-20 80 0'/%3E%3C/g%3E%3Cg fill='%23d8b65f' fill-opacity='.18'%3E%3Cpath d='M80 20c4 14 10 20 24 24-14 4-20 10-24 24-4-14-10-20-24-24 14-4 20-10 24-24Z'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
}

.panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 76px 28px;
  text-align: center;
}

.panel + .panel {
  margin-top: -1px;
}

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

.panel::before,
.panel::after {
  position: absolute;
  left: 50%;
  width: min(78%, 320px);
  height: 38px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg width='320' height='38' viewBox='0 0 320 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8b65f' stroke-opacity='.75' stroke-linecap='round'%3E%3Cpath d='M4 19h96c26 0 28-17 12-15-15 2-7 26 20 15'/%3E%3Cpath d='M316 19h-96c-26 0-28-17-12-15 15 2 7 26-20 15'/%3E%3Cpath d='M146 19c8-10 20-10 28 0-8 10-20 10-28 0Z'/%3E%3Cpath d='M160 8c6 8 6 14 0 22-6-8-6-14 0-22Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.72;
  transform: translateX(-50%);
}

.panel::before {
  top: 26px;
}

.panel::after {
  bottom: 26px;
  transform: translateX(-50%) rotate(180deg);
}

.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at center 32%, rgba(255, 255, 255, 0.9) 0 8.2rem, transparent 8.3rem),
    linear-gradient(160deg, rgba(226, 196, 251, 0.82), rgba(255, 253, 251, 0.92) 56%, rgba(255, 240, 170, 0.26));
}

.hero__inner,
.message-panel > *,
.invitation > *,
.details > *,
.parents-section > *,
.reception > *,
.gift > *,
.dress-code > *,
.rsvp > * {
  position: relative;
  z-index: 2;
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--lilac-600);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  font-size: clamp(4.65rem, 23vw, 7.25rem);
  line-height: 0.82;
  text-shadow: 0 8px 24px rgba(85, 33, 111, 0.12);
}

h1 span {
  color: rgba(116, 48, 167, 0.72);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.31em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.08rem, 10.4vw, 3.7rem);
  line-height: 0.98;
}

.name {
  margin: 0;
  color: var(--lilac-600);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.25rem, 13.6vw, 4.9rem);
  font-weight: 400;
  line-height: 0.86;
  text-shadow: 0 8px 24px rgba(116, 48, 167, 0.16);
}

.crown {
  width: 110px;
  height: 60px;
  margin-bottom: -10px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8b65f' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M20 66h110l8-44-30 26-33-38-33 38-30-26 8 44Z' fill='%23fff0aa' fill-opacity='.58'/%3E%3Cpath d='M28 66h94v12H28z' fill='%23fff7dc'/%3E%3Cpath d='M31 56c20-8 68-8 88 0'/%3E%3Cg fill='%23fffdfb'%3E%3Ccircle cx='42' cy='42' r='5'/%3E%3Ccircle cx='75' cy='32' r='6'/%3E%3Ccircle cx='108' cy='42' r='5'/%3E%3C/g%3E%3Cpath d='M35 72h80'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(216, 182, 95, 0.28));
  animation: crown-glow 3.8s ease-in-out infinite;
}

.intro,
.panel > p:not(.script-message):not(.parents-inline),
.event-card p {
  margin: 0;
  color: rgba(33, 17, 41, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.intro {
  max-width: none;
}

.main-message {
  width: min(100%, 430px);
  max-width: none;
  min-height: 0;
  margin-top: -4px;
  margin-bottom: 2px;
  color: rgba(33, 17, 41, 0.78);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75;
  text-wrap: balance;
}

.fairytale-figure {
  width: min(82%, 310px);
  height: 84px;
  margin: -12px auto -12px;
  opacity: 0.88;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 360 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='.65'%3E%3Cpath d='M116 114c25-68 122-68 148 0H116Z' fill='%23e8d6f9'/%3E%3Cpath d='M132 98h96l14 48H118l14-48Z' fill='%23fff8ff' stroke='%237430a7' stroke-opacity='.28' stroke-width='3'/%3E%3Cpath d='M146 98 166 58l20 40M202 98l20-54 24 54' fill='none' stroke='%237430a7' stroke-opacity='.28' stroke-width='3'/%3E%3Cpath d='M166 58h40M222 44h38M90 122h190' stroke='%237430a7' stroke-opacity='.22' stroke-width='4'/%3E%3C/g%3E%3Cg transform='translate(88 60)'%3E%3Cpath d='M94 8c35 38 22 82-46 96 78 24 152 15 198-6-78 4-132-22-152-90Z' fill='%23d7b0f2' opacity='.78'/%3E%3Cpath d='M96 10c-4 34 10 69 48 92-40 4-82-4-113-20 38-14 58-38 65-72Z' fill='%23a86be0' opacity='.62'/%3E%3Cpath d='M100 0c24 30 37 65 92 90-46 0-83-22-106-64' fill='none' stroke='%23d8b65f' stroke-width='12' stroke-linecap='round' opacity='.62'/%3E%3Cpath d='M103 6c-18 18-39 42-78 56 32-2 57-16 78-56Z' fill='%23fff0aa' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 18px 18px rgba(116, 48, 167, 0.14));
}

.date {
  width: fit-content;
  margin: 8px 0 0;
  padding: 13px 20px;
  border: 1px solid rgba(216, 182, 95, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--plum);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(76, 36, 101, 0.08);
}

.ornament {
  width: 178px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg width='178' height='36' viewBox='0 0 178 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8b65f' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M5 18h54'/%3E%3Cpath d='M119 18h54'/%3E%3Cpath d='M89 5c9 8 9 18 0 26-9-8-9-18 0-26Z'/%3E%3Cpath d='M72 18c7-8 15-8 22 0-7 8-15 8-22 0Z'/%3E%3Cpath d='M84 18c7-8 15-8 22 0-7 8-15 8-22 0Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.tower-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tower {
  position: absolute;
  right: -6px;
  bottom: 38px;
  width: 132px;
  height: 360px;
  opacity: 0.22;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 410' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237430a7' stroke-width='5' stroke-linejoin='round'%3E%3Cpath d='M75 18 34 76h82L75 18Z' fill='%23e2c4fb'/%3E%3Cpath d='M46 76h58l15 314H31L46 76Z' fill='%23fff8ff'/%3E%3Cpath d='M58 145c0-21 34-21 34 0v40H58v-40Z' fill='%23f6eaff'/%3E%3Cpath d='M52 250h46M48 308h54M56 106h38'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
}

.braid {
  position: absolute;
  width: 220px;
  height: 420px;
  opacity: 0.26;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8b65f' stroke-width='10' stroke-linecap='round'%3E%3Cpath d='M105 8c64 62-60 90 4 150s-58 88 8 150-40 84 26 104'/%3E%3Cpath d='M82 48c34 18 54 18 86 0M66 142c36 18 67 18 104 0M64 238c36 18 72 18 108 0M84 332c28 16 56 16 84 0' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.braid--left {
  left: -96px;
  top: 112px;
  transform: rotate(-12deg);
}

.braid--right {
  right: -108px;
  top: 110px;
  transform: scaleX(-1) rotate(-10deg);
}

.spark {
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff7d2' d='M25 0c4 15 10 21 25 25-15 4-21 10-25 25-4-15-10-21-25-25C15 21 21 15 25 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(216, 182, 95, 0.72));
  animation: twinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}

.spark--one {
  top: 128px;
  left: 32px;
}

.spark--two {
  top: 154px;
  right: 46px;
  animation-delay: -1.2s;
}

.lantern-field {
  position: fixed;
  inset: 0;
  z-index: 3;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  pointer-events: none;
}

.lantern-field span {
  position: absolute;
  bottom: -80px;
  width: 24px;
  height: 34px;
  border-radius: 7px 7px 14px 14px;
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, 0.96) 0 5px, transparent 6px),
    linear-gradient(180deg, rgba(255, 248, 207, 0.95), rgba(198, 137, 232, 0.62));
  box-shadow: 0 0 22px rgba(255, 230, 146, 0.72);
  animation: lanterns 12s linear infinite;
}

.lantern-field span:nth-child(1) { left: 8%; animation-delay: 0s; }
.lantern-field span:nth-child(2) { left: 22%; animation-delay: -7s; transform: scale(0.8); }
.lantern-field span:nth-child(3) { left: 42%; animation-delay: -3s; }
.lantern-field span:nth-child(4) { left: 60%; animation-delay: -9s; transform: scale(0.72); }
.lantern-field span:nth-child(5) { left: 78%; animation-delay: -5s; }
.lantern-field span:nth-child(6) { left: 91%; animation-delay: -10s; transform: scale(0.84); }

.music-toggle {
  position: fixed;
  right: max(14px, calc((100vw - 520px) / 2 + 14px));
  bottom: 18px;
  z-index: 10;
  display: grid;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(216, 182, 95, 0.5);
  border-radius: 999px;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  background: linear-gradient(135deg, rgba(77, 23, 107, 0.92), rgba(168, 107, 224, 0.9));
  box-shadow: 0 14px 30px rgba(76, 36, 101, 0.22);
  cursor: pointer;
  place-items: center;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.64), transparent 15rem),
    linear-gradient(160deg, rgba(226, 196, 251, 0.96), rgba(255, 253, 251, 0.98));
  place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.entry-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.entry-gate__button {
  position: relative;
  display: grid;
  width: min(100%, 520px);
  min-height: min(92svh, 740px);
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 182, 95, 0.38);
  border-radius: 10px;
  background:
    radial-gradient(circle at center 31%, rgba(255, 255, 255, 0.91) 0 8.4rem, transparent 8.5rem),
    linear-gradient(160deg, rgba(226, 196, 251, 0.88), rgba(255, 253, 251, 0.96) 57%, rgba(255, 240, 170, 0.28));
  box-shadow: 0 24px 68px rgba(76, 36, 101, 0.2);
  color: var(--plum);
  cursor: pointer;
  text-align: center;
  place-items: center;
}

.entry-gate__button::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(216, 182, 95, 0.28);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.entry-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 9px;
  padding: 56px 0 36px;
}

.entry-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  font-size: clamp(4.65rem, 23vw, 7.25rem);
  line-height: 0.82;
  text-shadow: 0 8px 24px rgba(85, 33, 111, 0.12);
}

.entry-title span {
  color: rgba(116, 48, 167, 0.72);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.31em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-gate .fairytale-figure {
  margin-bottom: 8px;
}

.entry-gate__action {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 48px;
  padding: 17px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lilac-600), var(--lilac-400));
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.62), 0 18px 38px rgba(116, 48, 167, 0.34);
  animation: open-pulse 1.8s ease-in-out infinite;
}

.music-toggle__icon {
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff7dc' d='M14 4v10.1A3.5 3.5 0 1 1 12 11V6h8V4h-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.music-toggle[aria-pressed="true"] {
  border-color: rgba(255, 240, 170, 0.72);
  box-shadow: 0 0 24px rgba(255, 240, 170, 0.3), 0 14px 30px rgba(76, 36, 101, 0.22);
}

.butterfly-edge {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 34px;
  opacity: 0.58;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 70 54' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d8b4f3' stroke='%237430a7' stroke-opacity='.45'%3E%3Cpath d='M34 28C15 8 2 9 5 27c2 15 19 14 29 1Z'/%3E%3Cpath d='M36 28C55 8 68 9 65 27c-2 15-19 14-29 1Z'/%3E%3Cpath d='M34 30C18 34 12 44 22 50c8 5 15-6 12-20Z'/%3E%3Cpath d='M36 30c16 4 22 14 12 20-8 5-15-6-12-20Z'/%3E%3C/g%3E%3Cpath d='M35 20v22' stroke='%237430a7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.butterfly-edge--left {
  left: 18px;
  top: 24%;
  animation: butterfly-left 5.8s ease-in-out infinite;
}

.butterfly-edge--right {
  right: 18px;
  bottom: 24%;
  transform: scaleX(-1);
  animation: butterfly-right 6.2s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(116, 48, 167, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
  place-items: start center;
}

.scroll-cue span {
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--lilac-600);
  animation: cue 1.6s infinite;
}

.message-panel,
.invitation {
  gap: 18px;
  background:
    linear-gradient(rgba(255, 253, 251, 0.78), rgba(255, 253, 251, 0.78)),
    radial-gradient(circle at 50% 50%, rgba(226, 196, 251, 0.84), transparent 15rem);
}

.details {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.2), rgba(255, 253, 251, 0.72) 22%, rgba(244, 232, 255, 0.78) 100%),
    radial-gradient(circle at 50% 28%, rgba(255, 240, 170, 0.32), transparent 12rem);
}

.parents-section {
  gap: 18px;
  min-height: 78svh;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.16), rgba(255, 253, 251, 0.76) 30%, rgba(244, 232, 255, 0.66)),
    radial-gradient(circle at 50% 34%, rgba(226, 196, 251, 0.76), transparent 14rem);
}

.parents-section h2 {
  display: grid;
  gap: 4px;
  color: var(--lilac-600);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 13vw, 5.1rem);
  font-weight: 400;
  line-height: 0.92;
}

.parents-section h2 small {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.62em;
  line-height: 0.9;
}

.parents-section p:not(.section-kicker) {
  width: min(100%, 430px);
  margin: 0 auto;
  color: rgba(33, 17, 41, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.message-panel--soft,
.invitation-combo {
  background: rgba(255, 253, 251, 0.5);
}

.section-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237430a7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M45 10c7 23 14 30 37 37-23 7-30 14-37 37-7-23-14-30-37-37 23-7 30-14 37-37Z' fill='%23f4e8ff'/%3E%3Cpath d='M31 48c9-10 19-10 28 0' stroke='%23d8b65f'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 10px 20px rgba(116, 48, 167, 0.12));
  animation: float-soft 4.8s ease-in-out infinite;
}

.section-icon--lantern {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237430a7' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M30 24h30l7 16-7 34H30l-7-34 7-16Z' fill='%23f4e8ff'/%3E%3Cpath d='M32 24c0-12 26-12 26 0M28 40h34M32 74h26'/%3E%3Ccircle cx='45' cy='55' r='10' fill='%23fff0aa' stroke='%23d8b65f'/%3E%3C/g%3E%3C/svg%3E");
}

.script-message {
  max-width: 22ch;
  margin: 0 auto;
  color: rgba(33, 17, 41, 0.86);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.72rem, 8vw, 2.86rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.38;
  text-wrap: balance;
}

.parents-inline {
  margin: 0;
  color: var(--lilac-600);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 12vw, 4.5rem);
  line-height: 0.9;
}

.parents-inline span {
  color: var(--gold);
  font-size: 0.72em;
}

.invitation-combo {
  gap: 18px;
}

.invitation-message {
  margin-top: 14px;
  font-size: clamp(1.52rem, 7vw, 2.45rem);
  min-height: 5.5em;
}

.details,
.dress-code,
.gift {
  min-height: 82svh;
}

.event-year {
  margin: 0;
  color: var(--lilac-600);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar {
  width: min(100%, 332px);
  margin: 8px auto 6px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(168, 107, 224, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 48px rgba(76, 36, 101, 0.11);
}

.calendar__month {
  margin-bottom: 14px;
  color: var(--plum);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.calendar__grid span,
.calendar__grid b,
.calendar__grid i {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  font-style: normal;
}

.calendar__grid span {
  color: var(--lilac-600);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.66rem;
  font-weight: 800;
}

.calendar__grid b {
  position: relative;
  color: rgba(33, 17, 41, 0.78);
  font-size: 0.82rem;
}

.calendar__day--active {
  color: var(--white) !important;
}

.calendar__day--active::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac-600), var(--lilac-400));
  box-shadow: 0 10px 22px rgba(116, 48, 167, 0.22);
  content: "";
}

.calendar__day--active::after {
  position: absolute;
  right: -2px;
  top: -6px;
  color: var(--gold);
  content: "♥";
  font-size: 1rem;
  text-shadow: 0 2px 8px rgba(216, 182, 95, 0.42);
}

.countdown-kicker {
  margin-top: 8px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.countdown div {
  min-width: 0;
  padding: 16px 7px;
  border: 1px solid rgba(168, 107, 224, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(76, 36, 101, 0.09);
}

.countdown strong {
  display: block;
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 10vw, 3.25rem);
  line-height: 0.9;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--lilac-600);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reception {
  min-height: 90svh;
  background:
    linear-gradient(180deg, rgba(244, 232, 255, 0.78), rgba(255, 253, 251, 0.86) 40%, rgba(255, 250, 244, 0.58));
}

.event-card {
  display: grid;
  gap: 14px;
  padding: 38px 22px;
  border: 1px solid rgba(168, 107, 224, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 254, 0.8)),
    radial-gradient(circle at 50% 0%, rgba(226, 196, 251, 0.86), transparent 11rem);
  box-shadow: 0 24px 54px rgba(76, 36, 101, 0.13);
}

.card-icon {
  display: block;
  width: 70px;
  height: 86px;
  margin: 0 auto 4px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237430a7' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M40 8 20 36h40L40 8Z' fill='%23e2c4fb'/%3E%3Cpath d='M25 36h30l6 54H19l6-54Z' fill='%23fff8ff'/%3E%3Cpath d='M32 57c0-11 16-11 16 0v18H32V57Z' fill='%23f4e8ff'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 14px 22px rgba(116, 48, 167, 0.22));
}

.event-time {
  color: var(--lilac-600) !important;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  max-width: 100%;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateZ(0);
  box-shadow: 0 18px 36px rgba(116, 48, 167, 0.28);
  cursor: pointer;
}

.button::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  content: "";
  background: linear-gradient(135deg, #62258f, #a86be0 58%, #d5b3f3);
}

.button::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  z-index: -1;
  width: 34%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: button-shine 3.4s ease-in-out infinite;
}

.button span {
  position: relative;
}

.button--secondary::before {
  background: linear-gradient(135deg, #8d7898, #c8b6d1 58%, #efe6f4);
}

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

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 16, 51, 0.42);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  display: grid;
  width: min(100%, 390px);
  gap: 16px;
  padding: 34px 22px 24px;
  border: 1px solid rgba(216, 182, 95, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 196, 251, 0.86), transparent 12rem),
    rgba(255, 253, 251, 0.96);
  box-shadow: 0 28px 80px rgba(38, 16, 51, 0.28);
  text-align: center;
}

.modal__dialog h2 {
  font-size: clamp(2.4rem, 12vw, 3.7rem);
}

.modal__dialog p {
  margin: 0;
  color: rgba(33, 17, 41, 0.76);
  line-height: 1.6;
}

.modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(116, 48, 167, 0.08);
  cursor: pointer;
}

.modal__close::before,
.modal__close::after {
  position: absolute;
  top: 16px;
  left: 9px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--lilac-600);
  content: "";
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.gift {
  gap: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.88), transparent 9rem),
    linear-gradient(180deg, rgba(244, 232, 255, 0.7), rgba(255, 253, 251, 0.92));
}

.gift h2::before {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(216, 182, 95, 0.46);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237430a7' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M18 30h44v34H18z'/%3E%3Cpath d='M14 22h52v12H14z'/%3E%3Cpath d='M40 22v42'/%3E%3Cpath d='M40 22c-16-2-14-16-4-12 5 2 5 8 4 12Z'/%3E%3Cpath d='M40 22c16-2 14-16 4-12-5 2-5 8-4 12Z'/%3E%3C/g%3E%3C/svg%3E") center / 46px 46px no-repeat;
  content: "";
}

.dress-code {
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.64), rgba(244, 232, 255, 0.86));
}

.dress-title--single {
  white-space: nowrap;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.palette span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 8px 20px rgba(76, 36, 101, 0.12);
}

.rsvp {
  min-height: 88svh;
  gap: 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.92), transparent 9rem),
    linear-gradient(160deg, rgba(199, 146, 239, 0.78), rgba(255, 253, 251, 0.92));
}

.footer {
  padding: 24px;
  color: rgba(33, 17, 41, 0.68);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translateY(18px); }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(0.76) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.16) rotate(18deg); }
}

@keyframes lanterns {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.82); }
  10% { opacity: 0.75; }
  100% { opacity: 0; transform: translate3d(24px, -112vh, 0) scale(1.06); }
}

@keyframes button-shine {
  0%, 45% { transform: translateX(0) skewX(-20deg); }
  78%, 100% { transform: translateX(420%) skewX(-20deg); }
}

@keyframes crown-glow {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 8px 12px rgba(216, 182, 95, 0.22)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 10px 18px rgba(216, 182, 95, 0.38)); }
}

@keyframes open-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.62), 0 18px 38px rgba(116, 48, 167, 0.34);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.42), 0 22px 46px rgba(116, 48, 167, 0.42);
  }
}

@keyframes butterfly-left {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

@keyframes butterfly-right {
  0%, 100% { transform: translateY(0) scaleX(-1) rotate(-4deg); }
  50% { transform: translateY(14px) scaleX(-1) rotate(9deg); }
}

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

@media (min-width: 760px) {
  body {
    padding: 32px 0;
  }

  .invitation-shell {
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .panel {
    padding-inline: 22px;
  }

  h1 {
    font-size: clamp(4.8rem, 25vw, 7.4rem);
  }

  .script-message {
    font-size: clamp(1.56rem, 7.8vw, 2.35rem);
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    padding-inline: 4px;
  }
}
