:root {
  --bg: #f8f8f8;
  --sand: #ede3d9;
  --rose: #d8bfb3;
  --gold: #b9924f;
  --gold-soft: rgba(185, 146, 79, 0.16);
  --text: #2d2724;
  --muted: rgba(45, 39, 36, 0.72);
  --line: rgba(45, 39, 36, 0.1);
  --card: rgba(255, 255, 255, 0.66);
  --shadow: 0 24px 80px rgba(78, 58, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(216, 191, 179, 0.24), transparent 35%),
    linear-gradient(180deg, #fbfaf8 0%, var(--bg) 38%, #f4efe9 100%);
}

img {
  display: block;
  width: 100%;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  position: relative;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1440px);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(248, 248, 248, 0.86), rgba(248, 248, 248, 0.42));
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.brand {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  text-decoration: none;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 7rem 1.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(45, 39, 36, 0.28), rgba(45, 39, 36, 0.48)),
    url("images/2026-04-11-20-14-44-477.jpg");
  background-size: cover;
  background-position: center 22%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(130deg, rgba(216, 191, 179, 0.1), transparent 45%, rgba(185, 146, 79, 0.18));
  z-index: -1;
}

.hero__content {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
  color: #fffaf6;
  padding: 2.5rem 2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(39, 31, 28, 0.26);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(21, 17, 14, 0.2);
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: rgba(255, 248, 240, 0.84);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 7.8rem);
  letter-spacing: 0.01em;
}

.hero__subtitle {
  max-width: 58ch;
  margin: 1.3rem auto 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 249, 244, 0.9);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, #fffaf6, var(--sand));
  box-shadow: 0 14px 30px rgba(185, 146, 79, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(185, 146, 79, 0.28);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 248, 240, 0.82);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.section__heading {
  margin-bottom: 2rem;
}

.section__heading h2,
.closing-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.section__heading .eyebrow {
  color: rgba(45, 39, 36, 0.64);
}

.intro-card,
.closing-card,
blockquote,
.timeline-item__content {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 24px;
  max-width: 760px;
}

.intro-card p,
.timeline-item__content p,
.closing-card p,
blockquote p {
  margin: 0;
  line-height: 1.9;
  color: var(--muted);
  font-size: 1.02rem;
}

.timeline-section {
  position: relative;
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.timeline-item:nth-child(even) .timeline-item__media {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-item__content {
  order: 1;
}

.timeline-item__media {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.timeline-item__media img {
  height: 100%;
  object-fit: cover;
}

.timeline-item__content {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 24px;
}

.timeline-item__content span {
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--gold);
}

.timeline-item__content h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.8rem;
}

.gallery-section {
  padding-top: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery__item {
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 240px;
  cursor: zoom-in;
  background: #e9dfd8;
  box-shadow: var(--shadow);
  grid-column: span 4;
}

.gallery__item--wide {
  grid-column: span 8;
}

.gallery__item--tall {
  min-height: 500px;
  grid-column: span 4;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(35, 28, 22, 0.2));
  opacity: 0;
  transition: opacity 300ms ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.02);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1.6rem 1.5rem;
  border-radius: 22px;
}

blockquote p {
  font-size: 1.05rem;
  color: var(--text);
}

.closing-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 28px;
  max-width: 900px;
  background:
    linear-gradient(135deg, rgba(248, 248, 248, 0.82), rgba(237, 227, 217, 0.88)),
    var(--card);
}

.closing-card h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.footer {
  padding: 1.2rem 1.5rem 2.4rem;
  color: rgba(45, 39, 36, 0.7);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 14, 12, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 50;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.3);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.14);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .timeline-item,
  .timeline-item:nth-child(even) .timeline-item__media,
  .timeline-item:nth-child(even) .timeline-item__content {
    order: initial;
    grid-template-columns: 1fr;
  }

  .gallery__item,
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 6;
    min-height: 260px;
    grid-row: auto;
  }

  .moments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
  }

  .nav {
    justify-content: center;
    gap: 0.9rem;
  }

  .hero {
    padding-top: 8rem;
    background-position: center center;
  }

  .hero__content {
    padding: 2rem 1.1rem 2.3rem;
    border-radius: 24px;
  }

  .hero__subtitle {
    font-size: 0.98rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item,
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    min-height: 220px;
  }

  .section__heading h2,
  .closing-card h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}