/* Lilac and pearl chapters; this palette belongs to Lilac Vows. */
.scene:not(.invitation) {
  --chapter: #f5f1e8;
  --previous: #f5f1e8;
  background: linear-gradient(to bottom, var(--previous), var(--chapter) 112px);
}
.scene:not(.invitation)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url('assets/ivory-linen.webp') center / 380px;
  mix-blend-mode: multiply;
  opacity: .12;
}
.scene.welcome { --chapter: #f8f3f8; padding-bottom: 42px; }
.scene.date-section { --previous: #f8f3f8; --chapter: #e7dcec; padding-top: 94px; }
.scene.celebrations { --previous: #e7dcec; --chapter: #f4edf6; padding-top: 112px; padding-bottom: 78px; }
.scene.place { --previous: #f4edf6; --chapter: #e7dfed; padding-top: 68px; padding-bottom: 78px; }
.scene.story { --previous: #e7dfed; --chapter: #f6eff5; padding-top: 104px; padding-bottom: 74px; }
.scene.guest-notes { --previous: #f6eff5; --chapter: #eee7f3; padding-top: 95px; padding-bottom: 75px; }
.scene.rsvp { --previous: #eee7f3; --chapter: #e3d6e9; padding-top: 105px; }
.scene:not(.invitation) .eyebrow { color: #6d5577; }
.scene:not(.invitation) h2 em { color: #765380; }

/* Decorations stay outside the reading column and never capture a tap. */
.chapter-botany {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.chapter-bloom {
  position: absolute;
  width: clamp(120px, 28vw, 185px);
  opacity: .23;
  transform-origin: 50% 85%;
}
.chapter-bloom img { width: 100%; height: auto; }
.chapter-bloom.from-left { left: -72px; top: 26%; rotate: 26deg; }
.chapter-bloom.from-right { right: -69px; top: 57%; rotate: -25deg; }
.date-section .chapter-bloom { opacity: .17; }
.date-section .chapter-bloom.from-left { top: 15%; }
.date-section .chapter-bloom.from-right { top: 45%; }
.story .chapter-bloom.from-right { top: 19%; opacity: .15; }
.guest-notes .chapter-bloom.from-left { top: 9%; }
.guest-notes .chapter-bloom.from-right { top: auto; bottom: 6%; }
.rangoli-mark {
  display: block;
  width: 76px;
  height: 36px;
  margin: 0 auto 28px;
  color: #a88e62;
  opacity: .8;
}
.diya-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 270px;
  margin: 24px auto -8px;
  color: #a58b61;
  pointer-events: none;
}
.diya-pair svg { width: 43px; height: 48px; opacity: .65; }

/* Stable wrappers preserve natural artwork proportions. Only each half moves. */
.welcome-swans.ornament-pair { position: relative; aspect-ratio: 2; }
.date-wreath.ornament-pair { position: absolute; inset: 0; }
.ornament-half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; }
.ornament-half.from-left { left: 0; }
.ornament-half.from-right { right: 0; }
.ornament-half img { position: absolute; top: 0; width: 200%; max-width: none; height: 100%; }
.ornament-half.from-left img { left: 0; }
.ornament-half.from-right img { right: 0; }
html.js .ornament-pair.object-motion { opacity: 1; transform: none; transition: none; }
html.js .ornament-pair .ornament-half {
  opacity: 0;
  translate: var(--side-entry) 8px;
  transition: none;
}
.from-left { --side-entry: -42px; }
.from-right { --side-entry: 42px; }
html.js .ornament-pair.has-entered .ornament-half {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1.8s ease, translate 2.7s cubic-bezier(.22,.65,.3,1);
}
html.js .ornament-pair.has-entered .ornament-half.from-right { transition-delay: .12s; }

/* Other small ornaments follow the same unhurried inward movement. */
html.js .object-motion.from-left,
html.js .object-motion.from-right {
  transform: translateX(var(--side-entry));
  transition: opacity 1.6s ease, transform 2.3s cubic-bezier(.22,.65,.3,1);
}
html.js .object-motion.from-left.has-entered,
html.js .object-motion.from-right.has-entered { transform: none; }
html.js .chapter-bloom.object-motion { opacity: 0; }
html.js .chapter-bloom.object-motion.has-entered { opacity: .23; }
html.js .date-section .chapter-bloom.object-motion.has-entered { opacity: .17; }
html.js .story .chapter-bloom.from-right.has-entered { opacity: .15; }
.js .guest-detail:nth-child(odd) .guest-art { transform: translateX(-20px); }
.js .guest-detail:nth-child(even) .guest-art { transform: translateX(20px); }
.js .guest-detail .guest-art { transition: opacity 1.5s ease, transform 2s cubic-bezier(.22,.65,.3,1); }
.js .guest-detail .guest-art.has-entered { transform: none; }
.js .venue-portrait { transform: translateX(-24px); transition: opacity 1.5s ease, transform 2.4s cubic-bezier(.22,.65,.3,1); }
.js .venue-portrait.has-entered { transform: none; }

/* A complete date reads together; no separately fading weekday or ceremony time. */
.date-inscription { color: #51414f; }
.date-inscription .date-time { color: #65515f; }
.date-section .countdown { color: #70596d; }
.date-section .outline-button { border: 1px solid #9f88a17a; border-radius: 30px; padding: 13px 24px; }
.date-keepsake.expanded-date .date-wreath { display: none; }
.date-keepsake.expanded-date { background: #fffaf538; border-radius: 130px 130px 10px 10px; padding: 45px 10px 30px; }
.pearl-swag { margin-top: 32px; }
.event .embroidered-motif { background: transparent; }
.event-book { margin-top: 24px; }
.event-book::before { background: linear-gradient(transparent, #af93b6 10% 90%, transparent); }
.event + .event { border-color: #b09aba4d; }
.venue-portrait { background: #fffaff70; box-shadow: 0 10px 24px #65476c12; }
.place .chapter-thread { height: 35px; margin-bottom: 34px; }
.rsvp-form { background: #fffaffc7; border-color: #a78ab166; box-shadow: 0 12px 26px #6950710a; }
.rsvp-form::before { border-color: #b19abe4d; }
.rsvp .closing { padding-top: 66px; }

@container lilac-page (min-width: 600px) {
  .chapter-bloom.from-left { left: -83px; }
  .chapter-bloom.from-right { right: -83px; }
  .diya-pair { max-width: 330px; }
  .diya-pair svg { width: 53px; height: 59px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .ornament-pair .ornament-half { opacity: 1; translate: none; transition: none; }
  html.js .object-motion.from-left, html.js .object-motion.from-right,
  .js .guest-detail .guest-art, .js .venue-portrait { opacity: 1; transform: none; transition: none; }
  html.js .chapter-bloom.object-motion { opacity: .2; }
}
@media print {
  html.js .object-motion, html.js .ornament-pair .ornament-half { opacity: 1; transform: none; translate: none; }
  .chapter-botany { display: none; }
}
