:root {
  --bg: #f5f0e8;
  --ink: #2f2923;
  --royal: #8c6b45;
  --royal-soft: #e5d4bb;
  --card: rgba(255, 251, 245, 0.96);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, rgba(140, 107, 69, 0.13), transparent 29%), linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}
.hidden { display: none !important; }

.ceremony-hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.ceremony-hero::before,
.ceremony-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ceremony-hero::before {
  inset: 10% 9% auto 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 221, 194, 0.48), transparent);
}

.ceremony-hero::after {
  inset: auto 9% 12% 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 221, 194, 0.32), transparent);
}

.ceremony-slides, .hero__slide, .ceremony-overlay, .hero__hearts { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.05s ease; background: #1d1713; overflow: hidden; }
.hero__slide::before { content: ""; position: absolute; inset: -4%; background-image: var(--slide-image); background-size: cover; background-position: center; filter: blur(10px) brightness(0.58) saturate(0.84); transform: scale(1.09); transition: transform 7s ease-out, filter 1.1s ease; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 28%, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 28%, rgba(29,23,19,0) 58%), var(--slide-image); background-size: cover, cover; background-position: center, center; }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active::before { transform: scale(1.03); filter: blur(0) brightness(0.58) saturate(0.84); }
.ceremony-overlay { background: linear-gradient(180deg, rgba(22, 17, 13, 0.24), rgba(22, 17, 13, 0.68)); }

.ceremony-shell {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 2rem));
  text-align: center;
  padding: 3rem 1.35rem;
  border: 1px solid rgba(230, 212, 190, 0.42);
  background: rgba(30, 22, 17, 0.42);
  backdrop-filter: blur(8px);
  color: #f9efe2;
  box-shadow: 0 24px 54px rgba(20, 14, 10, 0.24);
  overflow: hidden;
}

.ceremony-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(241, 225, 205, 0.18);
  pointer-events: none;
}

.ceremony-shell > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  animation: ceremony-content-rise 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ceremony-shell > :nth-child(1) { animation-delay: 120ms; }
.ceremony-shell > :nth-child(2) { animation-delay: 220ms; }
.ceremony-shell > :nth-child(3) { animation-delay: 320ms; }
.ceremony-shell > :nth-child(4) { animation-delay: 420ms; }
.ceremony-shell > :nth-child(5) { animation-delay: 520ms; }

.ceremony-kicker {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: #f2ddc2;
  text-shadow: 0 4px 14px rgba(18, 12, 9, 0.18);
}
.ceremony-kicker--dark { color: var(--royal); }

.ceremony-title {
  margin: 0.85rem 0 0.5rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.05;
  text-shadow: 0 14px 28px rgba(16, 11, 8, 0.22);
}

.ceremony-date {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.96rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 8px 18px rgba(16, 11, 8, 0.18);
}

.ceremony-line {
  font-family: "Cormorant Garamond", serif;
  max-width: 710px;
  margin: 1.4rem auto 0;
  line-height: 1.86;
  color: rgba(249, 239, 226, 0.92);
  text-shadow: 0 10px 22px rgba(16, 11, 8, 0.2);
}

.ceremony-actions { margin-top: 1.75rem; }
.ceremony-btn, .ceremony-admin {
  display: inline-block;
  text-decoration: none;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 210, 179, 0.28);
  background: linear-gradient(135deg, var(--royal), #5e4732);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
}
.ceremony-admin { margin-top: 0.75rem; background: rgba(255, 255, 255, 0.1); color: #f9efe2; }
.ceremony-btn:hover, .ceremony-admin:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(43, 29, 21, 0.18); }

.hero__heart { position: absolute; top: -8%; color: rgba(239, 215, 184, 0.48); opacity: 0; animation: hero-heart-fall linear forwards; }

.ceremony-hero .hero__heart {
  color: rgba(241, 219, 191, 0.56);
  text-shadow: 0 6px 16px rgba(31, 22, 16, 0.18);
  filter: saturate(0.9);
}

.ceremony-hero .hero__heart--petal {
  color: rgba(246, 229, 206, 0.64);
}

.ceremony-hero .hero__heart--leaf {
  color: rgba(206, 187, 151, 0.58);
}
@keyframes hero-heart-fall { 0% { transform: translate3d(0, -6%, 0) rotate(0deg) scale(0.9); opacity: 0; } 10% { opacity: 0.8; } 100% { transform: translate3d(var(--heart-drift, 0px), 118vh, 0) rotate(var(--heart-rotate, 180deg)) scale(1.08); opacity: 0; } }

.ceremony-main { width: min(1180px, 92vw); margin: 0 auto; padding: 3rem 0 4rem; }
.ceremony-band { display: grid; grid-template-columns: 1.5fr 0.95fr; gap: 1rem; align-items: start; }
.ceremony-copy, .ceremony-sidecard { background: var(--card); border: 1px solid rgba(124, 95, 67, 0.22); padding: clamp(1.45rem, 2.8vw, 2.35rem); position: relative; overflow: hidden; }
.ceremony-copy, .ceremony-sidecard { transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; }
.ceremony-copy:hover, .ceremony-sidecard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(81, 59, 42, 0.12); border-color: rgba(124, 95, 67, 0.3); }
.ceremony-copy::before,
.ceremony-sidecard::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 95, 67, 0.42), transparent);
}

.ceremony-copy::after,
.ceremony-sidecard::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 95, 67, 0.22), transparent);
}
.ceremony-sidecol { display: grid; gap: 0.9rem; }
.ceremony-copy > *,
.ceremony-sidecard > * {
  opacity: 0;
  transform: translateY(14px);
  animation: ceremony-content-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ceremony-copy > :nth-child(1),
.ceremony-sidecard > :nth-child(1) { animation-delay: 110ms; }

.ceremony-copy > :nth-child(2),
.ceremony-sidecard > :nth-child(2) { animation-delay: 200ms; }

.ceremony-copy > :nth-child(3),
.ceremony-sidecard > :nth-child(3) { animation-delay: 290ms; }

.ceremony-copy > :nth-child(4),
.ceremony-sidecard > :nth-child(4) { animation-delay: 380ms; }

.ceremony-list li {
  opacity: 0;
  transform: translateX(-8px);
  animation: ceremony-list-rise 680ms ease forwards;
}

.ceremony-list li:nth-child(1) { animation-delay: 240ms; }
.ceremony-list li:nth-child(2) { animation-delay: 310ms; }
.ceremony-list li:nth-child(3) { animation-delay: 380ms; }
.ceremony-list li:nth-child(4) { animation-delay: 450ms; }
.ceremony-list li:nth-child(5) { animation-delay: 520ms; }
.ceremony-copy h2 { margin: 0.4rem 0 0.6rem; font-family: "Cinzel", serif; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 600; }
.ceremony-sidecard h3 { margin: 0.4rem 0 0.5rem; font-family: "Cinzel", serif; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; }

.ceremony-copy__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--royal);
}

.ceremony-copy__ornament span {
  width: clamp(60px, 10vw, 100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 95, 67, 0.6), transparent);
}

.ceremony-copy__ornament strong {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ceremony-copy__header { margin-bottom: 0.6rem; }

.ceremony-message-shell {
  position: relative;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 236, 227, 0.78));
  box-shadow: inset 0 0 0 1px rgba(124, 95, 67, 0.08), 0 14px 30px rgba(124, 95, 67, 0.07);
}

.ceremony-message-shell::before,
.ceremony-message-shell::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 95, 67, 0.3), transparent);
}

.ceremony-message-shell::before { top: 0.85rem; }
.ceremony-message-shell::after { bottom: 0.85rem; }

.ceremony-message {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 2.05;
  color: #3f342c;
  font-size: clamp(1.1rem, 1.45vw, 1.2rem);
  padding: 1.55rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 236, 227, 0.76));
  box-shadow: inset 0 0 0 1px rgba(124, 95, 67, 0.07);
  text-align: center;
}

.ceremony-highlight { color: var(--royal); font-family: "Great Vibes", cursive; font-size: 1.6em; font-weight: 400; }

.ceremony-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.ceremony-address { margin: 0; font-family: "Cormorant Garamond", serif; color: #58483d; padding: 0.9rem 1rem; border-left: 3px solid rgba(124, 95, 67, 0.66); border-radius: 14px; background: rgba(252, 246, 240, 0.9); }

.ceremony-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}

.ceremony-chip {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(124, 95, 67, 0.1);
  color: #6e5240;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ceremony-card__intro {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", serif;
  color: #7a6555;
  line-height: 1.65;
  font-size: 0.93rem;
}

.ceremony-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.72rem; font-family: "Cormorant Garamond", serif; }

.ceremony-list li {
  position: relative;
  padding: 0.88rem 0.94rem;
  border-radius: 14px;
  background: rgba(252, 246, 240, 0.92);
  border: 1px solid rgba(124, 95, 67, 0.08);
  color: #625246;
}

.ceremony-list--drinks li {
  padding-left: 3rem;
}

.ceremony-list--drinks li::before {
  content: "\2726";
  position: absolute;
  left: 0.92rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal);
  font-size: 0.72rem;
}

.ceremony-list--timeline li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.9rem;
}

.ceremony-list--timeline .timeline-index {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 95, 67, 0.16), rgba(124, 95, 67, 0.06));
  border: 1px solid rgba(124, 95, 67, 0.2);
  color: var(--royal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ceremony-list--timeline .timeline-time {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--royal);
  min-width: 3.2rem;
}

.ceremony-list--timeline .timeline-detail {
  color: #625246;
  line-height: 1.5;
}
.ceremony-sidecard--drinks {
  border-style: dashed;
}

.ceremony-footer { text-align: center; padding: 1.2rem 1rem 2rem; color: #6e5c4d; font-family: "Cormorant Garamond", serif; }
.ceremony-footer p { margin: 0.2rem 0; }
.ceremony-footer p:first-child { color: var(--royal); font-weight: 600; }
.ceremony-brand {
  display: inline-block;
  margin: 0.38rem auto;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6e5240;
  background: rgba(124, 95, 67, 0.1);
  border: 1px solid rgba(124, 95, 67, 0.2);
}

.motion-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 780ms ease, transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: transform, opacity;
}

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

@keyframes ceremony-content-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceremony-list-rise {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ceremony-shell > *,
  .ceremony-copy > *,
  .ceremony-sidecard > *,
  .ceremony-list li,
  .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .hero__slide,
  .hero__slide::before,
  .ceremony-btn,
  .ceremony-admin,
  .ceremony-copy,
  .ceremony-sidecard {
    transition: none;
  }
}

@media (max-width: 820px) {
  .ceremony-hero { min-height: 88svh; }
  .ceremony-shell { width: calc(100% - 1.1rem); padding: 2.2rem 0.9rem; }
  .ceremony-kicker { letter-spacing: 0.16em; font-size: 0.68rem; }
  .ceremony-title { font-size: clamp(2.1rem, 11.2vw, 3.35rem); }
  .ceremony-date { letter-spacing: 0.1em; font-size: 0.88rem; }
  .ceremony-line { font-size: 0.93rem; line-height: 1.68; margin-top: 1rem; }
  .ceremony-btn, .ceremony-admin { width: min(100%, 300px); text-align: center; }
  .ceremony-main { width: calc(100% - 1rem); padding: 2.2rem 0 3rem; }
  .ceremony-band { grid-template-columns: 1fr; gap: 0.8rem; }
  .ceremony-copy, .ceremony-sidecard { padding: 1.05rem; }
  .ceremony-sidecol { gap: 0.75rem; }
  .ceremony-copy h2 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .ceremony-sidecard h3 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .ceremony-message-shell { padding: 0.85rem; }
  .ceremony-message { padding: 1rem; font-size: 1rem; line-height: 1.78; }
  .ceremony-card__top { flex-wrap: wrap; }
  .ceremony-list--timeline li { grid-template-columns: auto auto 1fr; gap: 0.5rem; }
}
