:root {
  --cream: #fffaf3;
  --cream-deep: #f6eadf;
  --blush: #efd1d2;
  --rose: #c87b83;
  --burgundy: #671f32;
  --burgundy-dark: #3f111f;
  --ink: #351c23;
  --muted: #795e64;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(82, 29, 45, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 760px);
}

.section {
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.25rem, 13vw, 7.75rem);
  letter-spacing: -0.055em;
}

h1 em {
  display: block;
  color: var(--rose);
  font-weight: 400;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.5rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 30%, rgba(200, 123, 131, 0.25), transparent 32%),
    linear-gradient(145deg, var(--burgundy-dark), var(--burgundy));
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 1.1rem;
  content: "";
}

.nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
}

.nav a {
  text-decoration: none;
}

.nav__mark {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.nav__link {
  border-bottom: 1px solid rgba(255, 250, 243, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__content {
  align-self: center;
  padding: 7rem 0 5rem;
}

.hero__subtitle {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: rgba(255, 250, 243, 0.74);
  font-size: 1.02rem;
}

.button {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(255, 250, 243, 0.32);
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blush);
}

.button span {
  font-size: 1.1rem;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(239, 209, 210, 0.18);
  border-radius: 50%;
}

.hero__glow--one {
  top: -5rem;
  right: -7rem;
}

.hero__glow--two {
  bottom: -9rem;
  left: -8rem;
  width: 23rem;
  height: 23rem;
}

.hero__scroll {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 1px;
  height: 4rem;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.24);
}

.hero__scroll span {
  display: block;
  width: 100%;
  height: 45%;
  background: var(--cream);
  animation: scroll-line 2s ease-in-out infinite;
}

.love-note {
  position: relative;
  text-align: center;
}

.love-note::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3rem;
  height: 1px;
  background: var(--blush);
  content: "";
  transform: translateX(-50%);
}

.letter {
  position: relative;
  margin-top: 2.5rem;
  padding: 2.4rem 1.4rem;
  border: 1px solid var(--blush);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.letter__quote {
  position: absolute;
  top: -1.8rem;
  left: 1rem;
  color: var(--blush);
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
}

.letter__signature,
.finale__signature {
  margin: 2rem 0 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.letter__signature span,
.finale__signature span {
  white-space: nowrap;
}

.gallery-section {
  background: #f8ede7;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.gallery__item {
  margin: 0;
}

.gallery__button {
  position: relative;
  display: block;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: var(--blush);
  cursor: zoom-in;
}

.gallery__item--tall .gallery__button {
  height: 28rem;
}

.gallery__button img {
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item--photo-1 img {
  object-position: 50% 52%;
}

.gallery__item--photo-2 img {
  object-position: 50% 38%;
}

.gallery__item--photo-3 img {
  object-position: 50% 48%;
}

.gallery__item--photo-4 img {
  object-position: 50% 42%;
}

.gallery__item--photo-5 img {
  object-position: 50% 39%;
}

.gallery__item--photo-6 img {
  object-position: 50% 50%;
}

.gallery__item--photo-7 img {
  object-position: 50% 35%;
}

.gallery__button:hover img,
.gallery__button:focus-visible img {
  transform: scale(1.035);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(transparent 50%, rgba(50, 13, 25, 0.72));
  color: var(--white);
  opacity: 0;
  transition: opacity 250ms ease;
}

.gallery__button:hover .gallery__overlay,
.gallery__button:focus-visible .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.gallery__item > figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.reasons__grid {
  display: grid;
  gap: 1rem;
}

.reason-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--blush);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.reason-card > span {
  display: block;
  margin-bottom: 2rem;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.reason-card h3 {
  margin-bottom: 0.8rem;
  color: var(--burgundy);
}

.reason-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-section {
  background: var(--burgundy-dark);
  color: var(--cream);
}

.timeline-section .eyebrow {
  color: var(--blush);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0.8rem;
  bottom: 1rem;
  left: 0.35rem;
  width: 1px;
  background: rgba(239, 209, 210, 0.28);
  content: "";
}

.timeline__item {
  position: relative;
  padding: 0 0 3.5rem 2.4rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--burgundy-dark);
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 4px rgba(239, 209, 210, 0.15);
}

.timeline time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blush);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 0.65rem;
  font-size: 1.65rem;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(255, 250, 243, 0.62);
}

.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.finale .container > p:not(.eyebrow, .finale__signature) {
  color: var(--muted);
}

.heart {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
}

.heart span {
  position: relative;
  z-index: 2;
  color: var(--burgundy);
  font-size: 2.5rem;
  animation: heartbeat 1.7s ease-in-out infinite;
}

.heart i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--blush);
  border-radius: 50%;
  animation: heart-ring 2.4s ease-out infinite;
}

.heart i:nth-of-type(2) {
  animation-delay: 0.8s;
}

.heart i:nth-of-type(3) {
  animation-delay: 1.6s;
}

.finale__ornament {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border: 1px solid var(--blush);
  border-radius: 50%;
  opacity: 0.45;
}

.finale__ornament--left {
  bottom: -10rem;
  left: -10rem;
}

.finale__ornament--right {
  top: -10rem;
  right: -10rem;
}

footer {
  padding: 1.5rem;
  background: var(--cream-deep);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
}

footer p {
  margin: 0;
}

footer span {
  color: var(--burgundy);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  padding: 4.5rem 0.25rem 3rem;
  background: rgba(27, 8, 14, 0.96);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.lightbox button {
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.lightbox__nav {
  width: 3rem;
  height: 3rem;
  font-size: 2.8rem;
  line-height: 1;
}

.lightbox__count {
  position: absolute;
  right: 0;
  bottom: 0.75rem;
  left: 0;
  margin: 0;
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-align: center;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.15); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
}

@keyframes heart-ring {
  0% { opacity: 0; transform: scale(0.35); }
  25% { opacity: 0.65; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes scroll-line {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(225%); }
}

@media (min-width: 600px) {
  .section {
    padding: 8rem 0;
  }

  h1 em {
    display: inline;
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-right: auto;
    margin-left: auto;
    font-size: 1.1rem;
  }

  .letter {
    padding: 3.5rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

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

  .lightbox {
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    padding-inline: 1rem;
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }

  .gallery__item {
    grid-column: span 4;
  }

  .gallery__item--wide {
    grid-column: span 8;
  }

  .reasons__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reason-card {
    min-height: 17rem;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline__item {
    width: 50%;
    padding: 0 3.5rem 4.5rem 0;
    text-align: right;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3.5rem;
    text-align: left;
  }

  .timeline__dot {
    right: -0.375rem;
    left: auto;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    right: auto;
    left: -0.375rem;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
