:root {
  --burgundy: #6f2d43;
  --burgundy-dark: #3e1724;
  --rose: #a86578;
  --cream: #f8f2ec;
  --ivory: #fffdf9;
  --gold: #b99558;
  --ink: #272124;
  --muted: #74696d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(62, 23, 36, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Parisienne", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--burgundy-dark);
  transition: opacity .6s ease, visibility .6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-monogram {
  color: var(--white);
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: .08em;
  animation: pulse 1.4s ease-in-out infinite;
}

.loader-monogram span,
.brand span,
.footer-monogram span {
  color: var(--gold);
  font-family: var(--script);
  margin-inline: .1em;
}

@keyframes pulse {
  50% { opacity: .35; transform: scale(.95); }
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--burgundy-dark);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  animation: heroZoom 16s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 12, 20, .78) 0%, rgba(36, 12, 20, .48) 48%, rgba(36, 12, 20, .22) 100%),
    linear-gradient(0deg, rgba(36, 12, 20, .55) 0%, transparent 45%);
}

.nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity .25s ease;
}

.nav-links a:hover {
  opacity: .65;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
  transition: transform .3s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(76px, 11vw, 150px);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.045em;
}

.hero h1 span {
  display: inline-block;
  color: var(--gold);
  font-family: var(--script);
  font-size: .72em;
  font-weight: 400;
  transform: translateY(.08em);
}

.hero-date {
  margin: 38px 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .28em;
}

.hero-message {
  max-width: 600px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.82);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

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

.button-light {
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}

.button-light:hover {
  background: var(--white);
  color: var(--burgundy-dark);
}

.button-primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--burgundy-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 2;
  width: 28px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 4px;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

.welcome {
  background:
    radial-gradient(circle at 10% 10%, rgba(185,149,88,.08), transparent 25%),
    var(--ivory);
}

.welcome-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 100px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.countdown-section h2,
.rsvp-copy h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}

.section-copy > p:not(.section-kicker):not(.signature) {
  color: var(--muted);
  font-size: 15px;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 170px;
  margin: 24px 0 28px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: rgba(185,149,88,.65);
}

.signature {
  margin: 30px 0 0;
  color: var(--burgundy);
  font-family: var(--script);
  font-size: 38px;
}

.portrait-card {
  position: relative;
  width: min(100%, 610px);
  justify-self: end;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.portrait-frame {
  position: absolute;
  inset: 24px -24px -24px 24px;
  z-index: -1;
  border: 1px solid rgba(185,149,88,.7);
}

.countdown-section {
  padding: 90px 0;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(62,23,36,.93), rgba(62,23,36,.93)),
    url("../images/photo-1.jpg") center / cover fixed;
}

.section-kicker.light {
  color: #dcc28f;
}

.countdown-section h2 {
  margin-bottom: 48px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(780px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.countdown div {
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.countdown div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 70px);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.program {
  background: var(--cream);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

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

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(62,23,36,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}

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

.event-card.featured {
  color: var(--white);
  background: var(--burgundy);
}

.event-date {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  padding: 25px;
  color: var(--white);
  background: var(--burgundy-dark);
  text-align: center;
}

.event-card.featured .event-date {
  color: var(--burgundy-dark);
  background: #e7d4c4;
}

.event-date strong {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 500;
  line-height: .8;
}

.event-date span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.event-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 38px 34px;
}

.event-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.event-details h3 {
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
}

.event-time {
  margin: 0 0 4px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.featured .event-time {
  color: #e7c997;
}

.event-location {
  margin: 0 0 15px;
  font-weight: 600;
}

.event-details > p:not(.event-time):not(.event-location) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.featured .event-details > p:not(.event-time):not(.event-location) {
  color: rgba(255,255,255,.68);
}

.text-link {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.featured .text-link {
  color: #e7c997;
}

.quote-section {
  padding: 110px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(38,15,23,.72), rgba(38,15,23,.72)),
    url("../images/photo-2.jpg") center 25% / cover fixed;
  text-align: center;
}

.quote-section p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-style: italic;
  line-height: 1.25;
}

.quote-section span {
  color: #e7c997;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gallery {
  background: var(--ivory);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 300px 300px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--cream);
}

.gallery-item-tall {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px;
  background: var(--cream);
  text-align: center;
}

.gallery-note span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 56px;
}

.gallery-note p {
  max-width: 260px;
  margin: 0;
  color: var(--burgundy-dark);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
}

.rsvp {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 12%, rgba(185,149,88,.12), transparent 22%),
    var(--burgundy-dark);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.rsvp-copy p:not(.section-kicker) {
  max-width: 500px;
  color: rgba(255,255,255,.7);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 35px;
}

.contact-list a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  font-family: var(--serif);
  font-size: 22px;
}

.rsvp-form {
  padding: 42px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.rsvp-form label {
  display: block;
  margin-bottom: 22px;
  color: var(--burgundy-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #d8cbcd;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  text-transform: none;
  transition: border-color .25s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--burgundy);
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form .button {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin: 14px 0 0;
  color: #968c90;
  font-size: 10px;
  text-align: center;
}

.footer {
  padding: 70px 0;
  color: rgba(255,255,255,.7);
  background: #241017;
  text-align: center;
}

.footer-monogram {
  color: var(--white);
  font-family: var(--serif);
  font-size: 44px;
}

.footer p {
  margin: 8px 0;
}

.footer-date {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .18em;
}

.copyright {
  margin-top: 28px !important;
  font-size: 10px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
}

.whatsapp-float svg {
  width: 30px;
  fill: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(20,8,12,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

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

.lightbox img {
  max-width: min(100%, 1000px);
  max-height: 86vh;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: 0;
  color: var(--white);
  background: transparent;
  font-family: var(--serif);
  font-size: 48px;
}

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

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

@media (max-width: 900px) {
  .section {
    padding: 85px 0;
  }

  .menu-button {
    position: relative;
    z-index: 8;
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    color: var(--white);
    background: rgba(36,16,23,.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: .02em;
    text-transform: none;
  }

  .menu-button.active span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button.active span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .welcome-grid,
  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .portrait-card {
    width: min(88%, 600px);
    justify-self: center;
  }

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

  .event-card {
    min-height: auto;
  }

  .event-date {
    min-height: 140px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 480px 340px auto;
  }

  .gallery-item-tall {
    grid-row: auto;
  }

  .rsvp-copy {
    text-align: center;
  }

  .rsvp-copy p:not(.section-kicker) {
    margin-inline: auto;
  }

  .contact-list {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    height: 78px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-photo {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(36,12,20,.86) 0%, rgba(36,12,20,.44) 78%, rgba(36,12,20,.38) 100%);
  }

  .hero-content {
    align-self: end;
    padding-top: 180px;
    padding-bottom: 120px;
  }

  .hero h1 {
    font-size: clamp(66px, 22vw, 100px);
    line-height: .82;
  }

  .hero h1 span {
    display: block;
    width: fit-content;
    margin: .05em auto -.05em;
  }

  .hero-date {
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .18em;
  }

  .hero-message {
    font-size: 18px;
  }

  .scroll-indicator {
    display: none;
  }

  .section-copy h2,
  .section-heading h2,
  .countdown-section h2,
  .rsvp-copy h2 {
    font-size: 45px;
  }

  .portrait-card {
    width: calc(100% - 20px);
  }

  .portrait-frame {
    inset: 14px -14px -14px 14px;
  }

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

  .countdown div:nth-child(2) {
    border-right: 0;
  }

  .countdown div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .event-details {
    padding: 32px 26px;
  }

  .gallery-grid {
    grid-template-rows: 430px 310px auto;
  }

  .gallery-note {
    gap: 15px;
  }

  .gallery-note span {
    font-size: 42px;
  }

  .gallery-note p {
    font-size: 21px;
  }

  .rsvp-form {
    padding: 30px 22px;
  }

  .lightbox {
    padding: 18px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
}

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

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