:root {
  --ivory: #0d1114;
  --ivory-deep: #151a1e;
  --gold: #c7a45a;
  --gold-soft: #ead6a3;
  --pearl: #d7d3c9;
  --blue-mist: #17242b;
  --ink: #f5efe2;
  --muted: #b9b2a5;
  --panel: rgba(20, 24, 27, 0.82);
  --panel-strong: rgba(12, 15, 18, 0.9);
  --line: rgba(234, 214, 163, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #0d1114 url("3029210-4592908.jpg") center / cover fixed;
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 164, 90, 0.14), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(72, 105, 117, 0.26), transparent 24rem),
    linear-gradient(135deg, rgba(8, 11, 13, 0.72) 0%, rgba(17, 24, 32, 0.56) 48%, rgba(10, 13, 16, 0.76) 100%);
}

a {
  color: inherit;
}

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

.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) 1.15rem;
  overflow: hidden;
}

.section-inner {
  width: min(920px, 100%);
  text-align: center;
}

.hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 22%, rgba(234, 214, 163, 0.34) 0 7rem, rgba(234, 214, 163, 0.12) 7.1rem 18rem, transparent 32rem),
    radial-gradient(circle at 18% 72%, rgba(199, 164, 90, 0.16), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(78, 111, 124, 0.24), transparent 24rem),
    linear-gradient(160deg, rgba(16, 24, 32, 0.8) 0%, rgba(23, 27, 31, 0.68) 43%, rgba(12, 16, 19, 0.82) 100%);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 7, 0.08), rgba(3, 5, 7, 0.48)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(234, 214, 163, 0.06) 79px, transparent 80px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::before {
  width: min(7vw, 52px);
  height: min(34vw, 260px);
  border-radius: 999px;
  background: linear-gradient(rgba(255, 249, 226, 0.92), rgba(199, 164, 90, 0.54));
  box-shadow: 0 0 80px rgba(234, 214, 163, 0.45);
  opacity: 0.46;
}

.hero::after {
  width: min(24vw, 180px);
  height: min(7vw, 52px);
  margin-top: min(11vw, 84px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 164, 90, 0.5), rgba(255, 249, 226, 0.88), rgba(199, 164, 90, 0.5));
  box-shadow: 0 0 60px rgba(234, 214, 163, 0.4);
  opacity: 0.44;
}

.hero__content {
  position: relative;
  width: min(720px, 100%);
  margin: auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  transform: translateY(calc(var(--parallax-offset, 0px) * -0.18));
}

.eyebrow,
.subeyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 2.6vw, 0.86rem);
  color: var(--gold-soft);
  font-weight: 700;
}

.subeyebrow {
  margin-top: 0.35rem;
  color: var(--pearl);
}

.portrait-frame {
  width: clamp(176px, 45vw, 270px);
  aspect-ratio: 1;
  margin: clamp(1.5rem, 5vw, 2.4rem) auto;
  border-radius: 50%;
  padding: 0.55rem;
  background: linear-gradient(145deg, #171b1f, var(--gold), #f4e7be);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 8px solid rgba(12, 15, 18, 0.9);
}

h1,
h2,
blockquote {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
}

h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2.05rem, 8vw, 4.6rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

h1 span {
  color: var(--gold-soft);
  font-size: 0.68em;
}

h2 {
  margin: 0.5rem auto 1.4rem;
  max-width: 820px;
  font-size: clamp(2rem, 6vw, 4rem);
}

.dates {
  margin: 1rem 0 1.8rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 4vw, 1.35rem);
  color: var(--pearl);
}

.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
  cursor: pointer;
}

.primary-button {
  color: #332b1d;
  background: linear-gradient(135deg, #f7e8ba, var(--gold));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.outline-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.primary-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.message-section {
  background:
    linear-gradient(rgba(8, 11, 13, 0.86), rgba(8, 11, 13, 0.92)),
    url("3.jpeg") center / cover;
}

.message-section::before,
.message-section::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  opacity: 0.11;
  filter: blur(1px);
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 255, 255, 0.72) 0 15%, transparent 16%),
    radial-gradient(circle at 55% 45%, rgba(199, 164, 90, 0.62) 0 18%, transparent 19%),
    radial-gradient(circle at 47% 58%, rgba(255, 255, 255, 0.74) 0 20%, transparent 21%);
}

.message-section::before {
  top: 7%;
  left: -5rem;
}

.message-section::after {
  right: -5rem;
  bottom: 5%;
}

blockquote {
  margin: clamp(2rem, 6vw, 3.5rem) auto 0;
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: clamp(1.45rem, 5vw, 2.55rem);
}

.gallery-section {
  background: linear-gradient(180deg, rgba(13, 17, 20, 0.88), rgba(20, 32, 39, 0.88));
}

.carousel {
  position: relative;
  width: min(940px, 100%);
  margin: 2rem auto 0;
}

.carousel__track {
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(390px, 72vw, 620px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0a0d10;
}

.memory {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1200ms ease;
  background: #0a0d10;
  cursor: zoom-in;
}

.memory.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.memory img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090c0f;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(199, 164, 90, 0.62);
  color: var(--gold-soft);
  background: rgba(12, 15, 18, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
}

.carousel__button--prev {
  left: 0.8rem;
}

.carousel__button--next {
  right: 0.8rem;
}

.countdown-section {
  min-height: 78svh;
  background:
    linear-gradient(rgba(8, 11, 13, 0.9), rgba(8, 11, 13, 0.92)),
    url("2.jpeg") center / cover fixed;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 2vw, 1.2rem);
  margin-top: 2.2rem;
}

.countdown div {
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 1rem 0.65rem;
  background: var(--panel);
  border: 1px solid rgba(199, 164, 90, 0.58);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(51, 45, 36, 0.12);
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.3rem);
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.details-section {
  background: linear-gradient(135deg, rgba(17, 23, 27, 0.9), rgba(11, 15, 18, 0.9));
}

.details-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}

.detail-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  text-align: center;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-card h2 {
  font-size: clamp(1.95rem, 5vw, 3rem);
}

.place {
  color: var(--gold-soft);
  font-weight: 800;
}

.candle-section {
  min-height: 82svh;
  color: #fdf8ed;
  background:
    linear-gradient(rgba(5, 7, 9, 0.72), rgba(5, 7, 9, 0.82)),
    url("3.jpeg") center / cover fixed;
}

.candle {
  position: relative;
  width: 78px;
  height: 170px;
  margin: 0 auto 2rem;
}

.wax {
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 54px;
  height: 112px;
  border-radius: 27px 27px 8px 8px;
  background: linear-gradient(90deg, #f6f0df, #ffffff, #ded6c1);
  box-shadow: inset -10px 0 16px rgba(174, 155, 119, 0.3), 0 24px 50px rgba(0, 0, 0, 0.32);
}

.wick {
  position: absolute;
  left: 37px;
  top: 48px;
  width: 4px;
  height: 24px;
  border-radius: 3px;
  background: #382c22;
  z-index: 2;
}

.flame {
  position: absolute;
  top: 0;
  left: 22px;
  width: 34px;
  height: 56px;
  z-index: 3;
  border-radius: 52% 48% 48% 52% / 68% 68% 32% 32%;
  background: radial-gradient(circle at 52% 70%, #fff8bc 0 18%, #f5b347 35%, #d9792d 70%, transparent 72%);
  box-shadow: 0 0 26px rgba(255, 204, 102, 0.72), 0 0 80px rgba(255, 204, 102, 0.28);
  transform-origin: bottom center;
  animation: flame 2.8s ease-in-out infinite;
}

.candle-section p,
.final-section h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
}

.final-section {
  min-height: 72svh;
  background: linear-gradient(rgba(7, 10, 12, 0.84), rgba(14, 22, 27, 0.9));
}

.dove {
  position: absolute;
  top: 23%;
  left: -90px;
  width: 64px;
  height: 36px;
  opacity: 0.8;
  animation: dove 18s linear infinite;
}

.dove::before,
.dove::after {
  content: "";
  position: absolute;
  background: #fff;
  box-shadow: 0 6px 20px rgba(70, 70, 70, 0.12);
}

.dove::before {
  width: 56px;
  height: 28px;
  border-radius: 60% 45% 45% 60%;
}

.dove::after {
  right: -8px;
  top: 6px;
  width: 22px;
  height: 16px;
  border-radius: 50%;
  transform: rotate(-10deg);
}

.music-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(199, 164, 90, 0.64);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(10, 13, 16, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 12, 13, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88svh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 300ms ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}

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

@keyframes flame {
  0%, 100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.08, 0.94);
  }
}

@keyframes dove {
  from {
    transform: translateX(0) translateY(0);
  }
  to {
    transform: translateX(calc(100vw + 180px)) translateY(22px);
  }
}

@media (max-width: 760px) {
  .hero {
    background-attachment: scroll;
  }

  body {
    background-attachment: scroll;
  }

  .section {
    min-height: 92svh;
    padding-block: 4rem;
  }

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

  .details-grid {
    grid-template-columns: 1fr;
  }

  .carousel__track {
    min-height: 455px;
  }

  .carousel__button {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .music-button {
    right: 0.7rem;
    bottom: 0.7rem;
  }
}

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