/* ===== Princess Fairy Tale — Rose, Lavender & Gold ===== */
:root {
  --white: #FFFBFC;
  --cream: #FFF5F8;
  --blush-50: #FDF0F4;
  --blush-100: #F5DCE6;
  --blush-200: #E8B4C4;
  --blush-300: #D491A8;
  --lavender-100: #EDE5F5;
  --lavender-200: #C9B8E0;
  --lavender-300: #9B7DB8;
  --rose: #B86B8A;
  --rose-dark: #8B4A6B;
  --gold: #D4A574;
  --gold-light: #F5E6C8;
  --gold-dark: #A67C52;
  --pearl: #FFF9FB;
  --text: #5C3D4A;
  --text-muted: #9A7A88;
  --shadow: 0 10px 40px rgba(184, 107, 138, 0.14);
  --shadow-sm: 0 4px 20px rgba(184, 107, 138, 0.1);
  --shadow-glow: 0 0 30px rgba(212, 165, 116, 0.2);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --font-script: 'Great Vibes', cursive;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.35s ease;
  --site-max: 1100px;
  --site-wide: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1.6vw, 17px);
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: linear-gradient(180deg, var(--blush-50) 0%, var(--lavender-100) 50%, var(--cream) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: var(--site-wide);
  margin: 0 auto;
  background: var(--pearl);
  box-shadow: var(--shadow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

/* ===== Sparkle & ribbon decor ===== */
.hero__sparkles,
.footer__sparkles {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero__sparkles--tl {
  top: 0;
  left: 0;
  width: clamp(200px, 38vw, 360px);
  height: clamp(200px, 38vw, 360px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360'%3E%3Cdefs%3E%3ClinearGradient id='s1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23D4A574' stop-opacity='0.6'/%3E%3Cstop offset='100%25' stop-color='%23E8B4C4' stop-opacity='0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M60 80 L65 95 L80 95 L68 105 L73 120 L60 110 L47 120 L52 105 L40 95 L55 95 Z' fill='url(%23s1)'/%3E%3Cpath d='M120 40 L122 48 L130 48 L124 53 L126 61 L120 56 L114 61 L116 53 L110 48 L118 48 Z' fill='%23D4A574' opacity='0.7'/%3E%3Cpath d='M90 150 L93 162 L105 162 L96 170 L99 182 L90 174 L81 182 L84 170 L75 162 L87 162 Z' fill='%23C9B8E0' opacity='0.5'/%3E%3Ccircle cx='150' cy='70' r='2' fill='%23D4A574'/%3E%3Ccircle cx='45' cy='130' r='1.5' fill='%23E8B4C4'/%3E%3Ccircle cx='100' cy='100' r='1' fill='%23F5E6C8'/%3E%3Cpath d='M30 200 Q80 160 140 180' fill='none' stroke='%23D4A574' stroke-width='0.6' opacity='0.4'/%3E%3Cpath d='M160 30 Q200 60 220 100' fill='none' stroke='%23C9B8E0' stroke-width='0.5' opacity='0.35'/%3E%3C/svg%3E");
}

.hero__sparkles--br {
  bottom: 0;
  right: 0;
  width: clamp(180px, 34vw, 320px);
  height: clamp(180px, 34vw, 320px);
  transform: scale(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360'%3E%3Cpath d='M280 280 L285 295 L300 295 L288 305 L293 320 L280 310 L267 320 L272 305 L260 295 L275 295 Z' fill='%23D4A574' opacity='0.55'/%3E%3Cpath d='M220 300 L222 308 L230 308 L224 313 L226 321 L220 316 L214 321 L216 313 L210 308 L218 308 Z' fill='%23E8B4C4' opacity='0.6'/%3E%3Ccircle cx='250' cy='260' r='1.5' fill='%23F5E6C8'/%3E%3Ccircle cx='300' cy='290' r='2' fill='%23C9B8E0' opacity='0.7'/%3E%3C/svg%3E");
}

.hero__ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cpath d='M0 100 Q200 60 400 90 Q600 120 800 70' fill='none' stroke='%23D4A574' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M0 450 Q250 420 500 440 Q650 455 800 430' fill='none' stroke='%23E8B4C4' stroke-width='0.4' opacity='0.25'/%3E%3C/svg%3E");
  background-size: cover;
}

.footer__sparkles {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 60px;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 60'%3E%3Cpath d='M0 40 Q125 10 250 35 Q375 55 500 25' fill='none' stroke='%23D4A574' stroke-width='0.6' opacity='0.5'/%3E%3Cpath d='M230 20 L232 28 L240 28 L234 33 L236 41 L230 36 L224 41 L226 33 L220 28 L228 28 Z' fill='%23D4A574' opacity='0.6'/%3E%3Cpath d='M270 20 L272 28 L280 28 L274 33 L276 41 L270 36 L264 41 L266 33 L260 28 L268 28 Z' fill='%23E8B4C4' opacity='0.5'/%3E%3C/svg%3E");
}

/* ===== Music Button ===== */
.music-btn {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: max(1rem, env(safe-area-inset-right, 1rem));
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--pearl);
  color: var(--gold-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.music-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.music-btn.playing {
  animation: sparkle-pulse 2.5s infinite;
}

.music-icon { width: 22px; height: 22px; }
.music-icon--off { display: none; }
.music-btn:not(.playing) .music-icon--on { display: none; }
.music-btn:not(.playing) .music-icon--off { display: block; }

@keyframes sparkle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4), var(--shadow-sm); }
  50% { box-shadow: 0 0 0 12px rgba(212, 165, 116, 0), var(--shadow-sm); }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  background: rgba(255, 251, 252, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--blush-100);
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.nav.visible { transform: translateY(0); }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__list {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 0.5rem;
}

.nav__list.open { display: flex; }

.nav__list a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  display: block;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav__list a:hover {
  color: var(--rose);
  background: var(--blush-50);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--site-wide);
    left: 50%;
    right: auto;
    padding: 0.85rem 2rem;
    transform: translateX(-50%) translateY(0);
  }

  .nav.visible { transform: translateX(-50%) translateY(0); }
  .nav__burger { display: none; }

  .nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--pearl) 0%, var(--blush-50) 45%, var(--lavender-100) 100%);
  padding:
    max(5rem, calc(4rem + env(safe-area-inset-top, 0px)))
    0
    clamp(2.5rem, 6vw, 4rem);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--site-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.hero__photo {
  margin: 0;
  width: 100%;
}

.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  padding: 8px;
  background: linear-gradient(145deg, var(--gold-light), var(--blush-200), var(--lavender-200), var(--gold));
  box-shadow: var(--shadow), var(--shadow-glow);
}

.hero__photo-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(212, 165, 116, 0.5);
  z-index: 3;
  line-height: 1;
}

.hero__photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

.hero__copy {
  padding: 0.5rem 0 1rem;
  text-align: center;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.hero__crest {
  position: relative;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
}

.hero__crest-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.25));
}

.hero__crest-inner {
  position: absolute;
  inset: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.hero__name {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 400;
  color: var(--rose-dark);
  line-height: 1.1;
}

.hero__amp {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--gold);
  font-weight: 500;
  margin: 0.15em 0;
}

.hero__text {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
  margin: 0 auto;
}

.hero__fact {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid var(--blush-100);
  box-shadow: var(--shadow-sm);
}

.hero__facts dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.hero__facts dt span {
  margin-right: 0.35rem;
  color: var(--gold);
}

.hero__facts dd {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero__copy {
    text-align: left;
  }

  .hero__crest {
    margin-left: 0;
    margin-right: auto;
  }

  .hero__text {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__facts {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__photo-frame img {
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 720px);
  }
}

/* ===== Story — fairy tale chapters ===== */
.story-section {
  background: linear-gradient(180deg, var(--lavender-100) 0%, var(--blush-50) 100%);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.story-section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.story-section__ornament {
  display: block;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 0.75rem;
}

.story-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.5rem;
}

.story-section__header p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
}

.story-chapters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--site-max);
  margin: 0 auto;
}

.story-chapter {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--pearl);
  border-radius: var(--radius);
  border: 1px solid var(--blush-100);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.story-chapter:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.story-chapter__badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--rose), var(--lavender-300));
  border-radius: var(--radius-pill);
}

.story-chapter time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.story-chapter h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rose-dark);
  margin: 0.35rem 0 0.5rem;
}

.story-chapter p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.story-chapter--finale {
  background: linear-gradient(135deg, var(--pearl), var(--blush-50));
  border: 2px solid var(--gold);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.story-chapter--finale .story-chapter__badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

@media (min-width: 640px) {
  .story-chapters {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-chapter--finale {
    grid-column: span 2;
  }
}

/* ===== Countdown — jewel gems ===== */
.countdown-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--lavender-300) 50%, var(--rose) 100%);
  color: var(--pearl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 30 L22 36 L28 36 L23 40 L25 46 L20 42 L15 46 L17 40 L12 36 L18 36 Z' fill='%23fff' opacity='0.08'/%3E%3Cpath d='M160 80 L161 84 L165 84 L162 87 L163 91 L160 88 L157 91 L158 87 L155 84 L159 84 Z' fill='%23fff' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 120px;
  pointer-events: none;
}

.countdown-band__header {
  position: relative;
  z-index: 1;
}

.countdown-band__crown {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.countdown-band__label {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}

.countdown-band__gems {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.countdown-gem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(72px, 18vw, 100px);
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(245, 230, 200, 0.4);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.countdown-gem strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.countdown-gem span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.9;
}

/* ===== Schedule — royal scroll ===== */
.schedule-section {
  background: var(--pearl);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.schedule-section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.schedule-section__ornament {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.schedule-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.35rem;
}

.schedule-section__date {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--rose);
}

.schedule-scroll {
  list-style: none;
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-scroll__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--blush-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.schedule-scroll__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.schedule-scroll__icon {
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 0.1rem;
}

.schedule-scroll__time {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 48px;
  padding-top: 0.2rem;
}

.schedule-scroll__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.2rem;
}

.schedule-scroll__item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.schedule-scroll__item--main {
  background: linear-gradient(135deg, var(--blush-50), var(--lavender-100));
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-glow);
}

.schedule-scroll__item--main .schedule-scroll__time {
  color: var(--rose);
  font-size: 0.95rem;
}

.schedule-scroll__item--main h3 {
  font-size: 1.1rem;
}

/* ===== Practical — palace cards ===== */
.practical-section {
  background: linear-gradient(180deg, var(--blush-50) 0%, var(--lavender-100) 100%);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.practical-section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.practical-section__ornament {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.practical-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.8vw, 2rem);
  font-weight: 600;
  color: var(--rose-dark);
}

.practical-palace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--site-wide);
  margin: 0 auto;
}

.palace-card {
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--pearl);
  border-radius: var(--radius);
  border: 1px solid var(--blush-100);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.palace-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.palace-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.palace-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.45rem;
}

.palace-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.palace-card--wide {
  background: linear-gradient(135deg, var(--pearl), var(--blush-50));
  border-color: var(--blush-200);
}

.palace-card--dress {
  background: linear-gradient(160deg, var(--pearl), var(--lavender-100));
  border: 1.5px solid var(--lavender-200);
}

@media (min-width: 640px) {
  .practical-palace {
    grid-template-columns: repeat(2, 1fr);
  }

  .palace-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .practical-palace {
    grid-template-columns: repeat(3, 1fr);
  }

  .palace-card--wide { grid-column: span 2; }
  .palace-card--dress { grid-row: span 2; }
  .palace-card--wide:last-child { grid-column: span 3; }
}

/* ===== RSVP — enchanted scroll ===== */
.rsvp-section {
  background: linear-gradient(180deg, var(--pearl) 0%, var(--blush-50) 60%, var(--lavender-100) 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.rsvp-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--site-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.rsvp-intro {
  text-align: center;
}

.rsvp-intro__ornament {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-bottom: 0.75rem;
}

.rsvp-intro__deadline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}

.rsvp-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.75rem;
}

.rsvp-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
}

.rsvp-scroll {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--pearl);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.rsvp-scroll__edge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 12px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
  opacity: 0.5;
  border-radius: var(--radius-pill);
}

.rsvp-scroll__edge--top { top: 0.5rem; }
.rsvp-scroll__edge--bottom { bottom: 0.5rem; }

@media (min-width: 900px) {
  .rsvp-section__inner {
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .rsvp-intro {
    text-align: left;
    position: sticky;
    top: 5rem;
    padding-top: 1rem;
  }

  .rsvp-intro__ornament { text-align: left; }
  .rsvp-intro p { margin-left: 0; }
}

.rsvp-form { max-width: none; margin: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .form-row .form-group { margin-bottom: 1.5rem; }
}

.form-group {
  margin-bottom: 1.5rem;
  border: none;
}

.form-group legend,
.form-group label,
.form-group__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--blush-100);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.toggle-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.toggle-pill { cursor: pointer; }
.toggle-pill input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-pill span {
  display: block;
  text-align: center;
  padding: 1rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--cream);
  border: 1.5px solid var(--blush-100);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.toggle-pill:hover span { border-color: var(--blush-200); }
.toggle-pill input:checked + span {
  color: var(--rose-dark);
  background: rgba(232, 180, 196, 0.2);
  border-color: var(--rose);
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-select__item { cursor: pointer; }
.chip-select__item input { position: absolute; opacity: 0; pointer-events: none; }

.chip-select__item span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--cream);
  border: 1.5px solid var(--blush-100);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.chip-select__item:hover span { border-color: var(--blush-200); }
.chip-select__item input:checked + span {
  color: var(--rose-dark);
  background: var(--blush-50);
  border-color: var(--rose);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--submit {
  width: 100%;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success__crown {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(212, 165, 116, 0.4);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.form-success__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, var(--pearl), var(--blush-50));
  color: var(--text-muted);
  border-top: 1px solid var(--blush-100);
  overflow: hidden;
}

.footer__crown {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer__names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--rose-dark);
  margin-bottom: 0.35rem;
}

.footer__date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.footer__love {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.footer__demo {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blush-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blush-100);
}

.footer__demo p {
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__top {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__top:hover { color: var(--rose); }

.footer__legal {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blush-100);
}

.footer__legal p {
  font-size: 0.7rem;
  line-height: 1.8;
  opacity: 0.75;
}

.footer__copy {
  margin-top: 0.5rem;
  opacity: 0.6 !important;
}

/* ===== Form consent ===== */
.form-group--consent {
  padding: 1.15rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blush-100);
}

.consent-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-label--legal {
  align-items: flex-start !important;
  font-size: 0.78rem !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.75rem;
}

.checkbox-label--legal:last-child { margin-bottom: 0; }
.checkbox-label--legal a { color: var(--rose); text-decoration: underline; }
.checkbox-label--legal input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }

.checkbox-label--demo {
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px dashed var(--blush-100);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem;
  background: rgba(255, 251, 252, 0.97);
  border-top: 1px solid var(--blush-100);
  box-shadow: 0 -4px 24px rgba(184, 107, 138, 0.12);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  max-width: min(100%, var(--site-wide));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.cookie-banner__text {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--rose);
  text-decoration: underline;
}

.btn--cookie {
  background: var(--pearl);
  color: var(--rose-dark);
  border: 1.5px solid var(--blush-200);
  padding: 0.7rem 1.5rem;
  align-self: center;
}

.btn--cookie:hover {
  background: var(--blush-50);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }
  .btn--cookie { flex-shrink: 0; }
}

body:has(.cookie-banner:not([hidden])) { padding-bottom: 5.5rem; }

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Legal pages (shared vars) ===== */
.legal-section {
  background: var(--cream);
  padding: 3rem 0;
}

.container--legal { max-width: 720px; }

.section__title--legal { font-size: 2rem; }

h1.section__title--legal {
  font-family: var(--font-display);
  font-weight: 600;
}

.legal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.legal-text h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 1.75rem 0 0.6rem;
}

.legal-text p { margin-bottom: 0.75rem; }

.legal-text a {
  color: var(--rose);
  text-decoration: underline;
}

.legal-text ul,
.legal-list {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-text code {
  font-size: 0.78rem;
  background: var(--blush-50);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.legal-text__demo {
  padding: 1rem 1.25rem;
  background: var(--blush-50);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  margin-bottom: 1.5rem !important;
}

.legal-text__date {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== Small phones ===== */
@media (max-width: 374px) {
  .toggle-pair { grid-template-columns: 1fr; }
  .countdown-band__gems { gap: 0.55rem; }
  .countdown-gem { min-width: 64px; padding: 0.85rem 0.5rem; }
}
