:root {
  --color-ivory: #faf7f2;
  --color-ivory-deep: #f3ede4;
  --color-champagne: #c9a46a;
  --color-blush: #ead8d1;
  --color-charcoal: #2b2927;
  --color-charcoal-soft: #49433e;
  --color-muted: #736960;
  --color-berry: #87515f;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-overlay-strong: rgba(17, 12, 10, 0.72);
  --color-surface: rgba(255, 252, 247, 0.16);
  --color-border: rgba(255, 248, 241, 0.22);
  --shadow-soft: 0 28px 60px rgba(27, 21, 18, 0.14);
  --shadow-card: 0 22px 44px rgba(30, 23, 20, 0.12);
  --radius-pill: 999px;
  --radius-card: 28px;
  --radius-small: 18px;
  --shell-width: min(1180px, calc(100% - 2rem));
  --shell-edge: max(1rem, calc((100vw - 1180px) / 2));
  --transition-soft: 240ms ease;
  --transition-slow: 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(234, 216, 209, 0.75), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 164, 106, 0.18), transparent 28%),
    var(--color-ivory);
  color: var(--color-charcoal);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.snap-container {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.snap-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-footer {
  scroll-snap-align: end;
  scroll-snap-stop: always;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-charcoal);
  color: #fff;
  transform: translateY(-160%);
  transition: transform var(--transition-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1rem;
}

.brand,
.site-nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 248, 241, 0.2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  background: rgba(22, 15, 13, 0.28);
  color: #fffaf5;
  transform-origin: top left;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  will-change: opacity, transform;
}

.site-header--brand-hidden .brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.9rem) scale(0.98);
  pointer-events: none;
}

.brand img {
  width: clamp(3rem, 6vw, 4.4rem);
  height: auto;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__eyebrow,
.section__eyebrow,
.hero__eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.brand__eyebrow {
  color: rgba(255, 246, 238, 0.8);
}

.brand__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-nav {
  position: fixed;
  top: 1rem;
  right: var(--shell-edge);
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 248, 241, 0.16);
  backdrop-filter: blur(16px);
  background: rgba(22, 15, 13, 0.24);
}

.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 246, 238, 0.86);
  transition:
    background var(--transition-soft),
    color var(--transition-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 250, 244, 0.12);
  color: #fff;
}

.hero {
  position: relative;
}

.hero__stage {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #150f0d;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__veil {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 10, 9, 0.2) 0%, rgba(14, 10, 9, 0.08) 24%, rgba(14, 10, 9, 0.6) 100%),
    linear-gradient(90deg, rgba(14, 10, 9, 0.78) 0%, rgba(14, 10, 9, 0.4) 38%, rgba(14, 10, 9, 0.16) 72%, rgba(14, 10, 9, 0.42) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 100%;
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

.hero__copy {
  max-width: min(38rem, 100%);
}

.hero__eyebrow {
  color: rgba(255, 245, 236, 0.76);
}

.hero__headline {
  margin: 0.5rem 0 0;
  color: #fff8f2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.6rem, 9vw, 7.3rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero__date,
.hero__tagline {
  margin: 0;
  color: rgba(255, 245, 236, 0.88);
}

.hero__date {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__tagline {
  max-width: 24rem;
  margin-top: 0.8rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  margin-top: 1.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft),
    color var(--transition-soft),
    border-color var(--transition-soft);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--color-charcoal);
  background: linear-gradient(135deg, #f8e8d0, #d6b27a);
  box-shadow: 0 14px 36px rgba(16, 11, 9, 0.22);
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section__intro {
  max-width: 44rem;
  margin-bottom: 2.4rem;
}

.section__eyebrow {
  color: var(--color-berry);
}

.section__intro h2,
.message-card h2 {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
  font-weight: 600;
  color: var(--color-charcoal);
}

.section__lede,
.message-card p {
  margin: 1rem 0 0;
  color: var(--color-charcoal-soft);
}

.gallery-showcase {
  position: relative;
  padding: 0;
  background: #120f0e;
  color: #fff8f2;
}

.js .gallery-showcase {
  opacity: 0.94;
  transform: translateY(1rem);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .gallery-showcase.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-showcase__stage {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(135, 81, 95, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(201, 164, 106, 0.12), transparent 24%),
    #120f0e;
}

.gallery-showcase__viewer,
.gallery-showcase__slides,
.gallery-showcase__noscript {
  position: absolute;
  inset: 0;
}

.gallery-showcase__viewer {
  z-index: 0;
  touch-action: pan-y;
}

.gallery-showcase__slides {
  z-index: 0;
}

.gallery-showcase__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    clamp(4.5rem, 8vh, 6rem)
    clamp(1rem, 4vw, 3rem)
    clamp(6.25rem, 14vh, 8rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.gallery-showcase__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-showcase__frame {
  width: min(100%, 96rem);
  height: min(100%, calc(100vh - clamp(7.5rem, 15vh, 9rem)));
  height: min(100%, calc(100dvh - clamp(7.5rem, 15vh, 9rem)));
  display: grid;
  place-items: center;
}

.gallery-showcase__slide-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: rgba(10, 7, 6, 0.92);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  transform: scale(0.992);
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
}

.gallery-showcase__slide video.gallery-showcase__slide-media {
  width: 100%;
  height: 100%;
}

.gallery-showcase__slide.is-active .gallery-showcase__slide-media {
  transform: scale(1);
}

.gallery-showcase__nav {
  position: absolute;
  inset: auto 0 clamp(1.2rem, 3vh, 1.8rem);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  pointer-events: none;
}

.gallery-showcase__arrow {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 241, 0.22);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.11);
  backdrop-filter: blur(18px);
  color: #fff8f2;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform var(--transition-soft),
    background var(--transition-soft),
    border-color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.gallery-showcase__arrow:hover,
.gallery-showcase__arrow:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 252, 247, 0.18);
  border-color: rgba(255, 248, 241, 0.36);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.gallery-showcase__arrow span {
  font-size: 1.35rem;
  line-height: 1;
}

.gallery-showcase__noscript {
  display: grid;
  place-items: center;
  padding:
    clamp(4.5rem, 8vh, 6rem)
    clamp(1rem, 4vw, 3rem)
    clamp(6.25rem, 14vh, 8rem);
}

.gallery-showcase__noscript img {
  width: auto;
  height: auto;
  max-width: min(100%, 96rem);
  max-height: calc(100vh - clamp(7.5rem, 15vh, 9rem));
  max-height: calc(100dvh - clamp(7.5rem, 15vh, 9rem));
  object-fit: contain;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: rgba(10, 7, 6, 0.92);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.js .gallery-showcase__noscript {
  display: none;
}

.section--message {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(3.4rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  overflow-x: clip;
  overflow-y: auto;
  background:
    radial-gradient(circle at top center, rgba(234, 216, 209, 0.48), transparent 42%),
    linear-gradient(180deg, rgba(250, 247, 242, 0.3) 0%, rgba(250, 247, 242, 0.96) 24%, var(--color-ivory) 100%);
}

.section--message::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: clamp(3rem, 8vw, 5rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(18, 15, 14, 0.18) 100%);
}

.js .section--message .message-card {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.js .section--message.is-visible .message-card {
  opacity: 1;
  transform: translateY(0);
}

.message-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: calc(var(--radius-card) + 4px);
  background:
    radial-gradient(circle at top right, rgba(201, 164, 106, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(135, 81, 95, 0.1), transparent 30%),
    linear-gradient(135deg, #fffaf5 0%, #f4ede4 55%, #f0e1d9 100%);
  border: 1px solid rgba(135, 81, 95, 0.1);
  box-shadow: var(--shadow-card);
}

.message-card > :not(.message-card__celebration) {
  position: relative;
  z-index: 1;
}

.message-card::before {
  content: "";
  position: absolute;
  inset: auto -8% 58% auto;
  width: clamp(10rem, 24vw, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.72), rgba(255, 240, 210, 0) 68%);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.message-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--radius-card) - 0.25rem);
  border: 1px solid rgba(201, 164, 106, 0.24);
  z-index: 2;
  pointer-events: none;
}

.message-card__celebration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.message-card__spark {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 250, 244, 0.96), rgba(255, 250, 244, 0) 72%);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 223, 184, 0.45));
}

.message-card__spark:nth-child(1) {
  top: 18%;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 228, 193, 0.96), rgba(255, 228, 193, 0) 72%);
}

.message-card__spark:nth-child(2) {
  top: 12%;
  left: 24%;
  width: 0.4rem;
  height: 0.4rem;
}

.message-card__spark:nth-child(3) {
  top: 20%;
  left: 42%;
  width: 0.5rem;
  height: 0.5rem;
  background: radial-gradient(circle, rgba(234, 216, 209, 0.96), rgba(234, 216, 209, 0) 72%);
}

.message-card__spark:nth-child(4) {
  top: 14%;
  right: 28%;
  width: 0.8rem;
  height: 0.8rem;
  background: radial-gradient(circle, rgba(201, 164, 106, 0.85), rgba(201, 164, 106, 0) 72%);
}

.message-card__spark:nth-child(5) {
  top: 23%;
  right: 13%;
  width: 0.45rem;
  height: 0.45rem;
}

.message-card__spark:nth-child(6) {
  top: 34%;
  left: 14%;
  width: 0.42rem;
  height: 0.42rem;
}

.message-card__spark:nth-child(7) {
  top: 40%;
  right: 19%;
  width: 0.52rem;
  height: 0.52rem;
  background: radial-gradient(circle, rgba(135, 81, 95, 0.64), rgba(135, 81, 95, 0) 72%);
}

.message-card__spark:nth-child(8) {
  top: 56%;
  left: 8%;
  width: 0.36rem;
  height: 0.36rem;
}

.message-card__spark:nth-child(9) {
  top: 62%;
  right: 11%;
  width: 0.58rem;
  height: 0.58rem;
  background: radial-gradient(circle, rgba(255, 228, 193, 0.94), rgba(255, 228, 193, 0) 72%);
}

.message-card__spark:nth-child(10) {
  top: 70%;
  left: 34%;
  width: 0.44rem;
  height: 0.44rem;
}

.section--message.is-visible .message-card__spark:nth-child(1) {
  animation: messageSpark 4.8s ease-out 0.1s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(2) {
  animation: messageSpark 4.2s ease-out 0.45s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(3) {
  animation: messageSpark 5.2s ease-out 0.25s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(4) {
  animation: messageSpark 4.7s ease-out 0.55s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(5) {
  animation: messageSpark 4.3s ease-out 0.18s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(6) {
  animation: messageSpark 4.6s ease-out 0.72s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(7) {
  animation: messageSpark 5s ease-out 0.38s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(8) {
  animation: messageSpark 4.1s ease-out 0.64s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(9) {
  animation: messageSpark 4.9s ease-out 0.3s 1 both;
}

.section--message.is-visible .message-card__spark:nth-child(10) {
  animation: messageSpark 4.4s ease-out 0.82s 1 both;
}

.message-card__closing {
  color: var(--color-berry);
  font-weight: 600;
}

.message-card__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.message-card__divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 106, 0.58), transparent);
}

.message-card__divider-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 164, 106, 0.9), rgba(201, 164, 106, 0.2) 62%, transparent 70%);
  box-shadow: 0 0 18px rgba(201, 164, 106, 0.34);
}

@keyframes messageSpark {
  0% {
    opacity: 0;
    transform: translate3d(0, 1rem, 0) scale(0.4);
  }

  18% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1);
  }

  70% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(0.3rem, -2.1rem, 0) scale(0.65);
  }
}

.site-footer {
  padding: 1.4rem 0 2rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(43, 41, 39, 0.08);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer__inner p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(248, 232, 208, 0.92);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .gallery-showcase__slide {
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .message-card__spark:nth-child(4),
  .message-card__spark:nth-child(7),
  .message-card__spark:nth-child(9) {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    padding-top: 0.75rem;
  }

  .site-nav {
    top: 0.75rem;
  }

  .brand__copy {
    display: none;
  }

  .site-nav a {
    padding-inline: 0.8rem;
  }

  .hero__content {
    padding-top: 5.75rem;
    padding-bottom: 5rem;
  }

  .hero__headline {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .gallery-showcase__slide {
    padding:
      5.5rem
      1rem
      7rem;
  }

  .gallery-showcase__frame {
    width: 100%;
    height: min(100%, calc(100vh - 8.5rem));
    height: min(100%, calc(100dvh - 8.5rem));
  }

  .gallery-showcase__arrow {
    width: 3.25rem;
    height: 3.25rem;
  }

  .message-card {
    padding: 1.7rem 1.35rem 2.2rem;
  }

  .message-card__divider {
    margin-top: 1.35rem;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 5rem;
  }

  .site-header__inner {
    gap: 0.6rem;
  }

  .site-nav {
    top: 0.75rem;
    gap: 0.2rem;
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .hero__copy {
    max-width: 20rem;
  }

  .hero__tagline {
    max-width: 18rem;
  }

  .section__intro h2,
  .message-card h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .gallery-showcase__slide {
    padding:
      5.25rem
      0.85rem
      6.25rem;
  }

  .gallery-showcase__frame {
    height: min(100%, calc(100vh - 7.5rem));
    height: min(100%, calc(100dvh - 7.5rem));
  }

  .gallery-showcase__arrow {
    width: 3rem;
    height: 3rem;
  }

  .message-card__celebration {
    opacity: 0.72;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snap-container {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gallery-showcase__slide .gallery-showcase__slide-media,
  .gallery-showcase__slide.is-active .gallery-showcase__slide-media {
    transform: none;
  }

  .message-card__celebration {
    display: none;
  }
}

/* ── Footer credit link ─────────────────────────────────────── */
.shell p a {
  color: maroon;
  text-decoration: underline;
}
