:root {
  color-scheme: light;
  --ivory: #f8f5ef;
  --beige: #e9e0d5;
  --charcoal: #292724;
  --brown: #82766a;
  --terracotta: #b87962;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

body, button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
section { position: relative; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: white;
  color: var(--charcoal);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 1000; }
.nav {
  position: fixed;
  top: max(.75rem, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: min(94%, 54rem);
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .5rem .35rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: rgb(248 245 239 / 88%);
  box-shadow: 0 8px 30px rgb(34 30 25 / 8%);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}
.nav-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark span, .section-flourish span { color: var(--terracotta); }
.menu-toggle {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 1.15rem;
  height: 1px;
  background: var(--charcoal);
  transition: transform .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-links {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  display: none;
  padding: .65rem 1rem;
  border: 1px solid rgb(41 39 36 / 8%);
  border-radius: 1.2rem;
  background: var(--ivory);
  box-shadow: 0 12px 30px rgb(34 30 25 / 10%);
}
.nav-links.is-open { display: grid; }
.nav-links a {
  padding: .7rem .5rem;
  color: var(--charcoal);
  font-size: .9rem;
  text-decoration: none;
}
.nav-links a[aria-current="location"] { color: var(--terracotta); }

.hero {
  display: grid;
  min-height: 100svh;
  min-height: max(42rem, 100svh);
  align-items: start;
  justify-items: center;
  overflow: hidden;
  padding: max(6rem, calc(env(safe-area-inset-top) + 5.5rem)) 1.5rem 4rem;
  color: white;
  text-align: center;
  background: #76695f;
}
.hero-image, .hero-shade, .closing-image, .closing-shade, .section-shade, .celebrations-poster {
  position: absolute;
  inset: 0;
}
.hero-image, .closing-image, .celebrations-poster {
  background-position: center;
  background-size: cover;
}
.hero-shade {
  background: linear-gradient(
    180deg,
    rgb(20 18 16 / 34%) 0%,
    rgb(20 18 16 / 22%) 24%,
    rgb(20 18 16 / 5%) 49%,
    rgb(20 18 16 / 57%) 100%
  );
}
.hero-content { position: relative; z-index: 1; width: min(100%, 55rem); animation: arrive .9s ease both; }
.eyebrow {
  margin-bottom: .85rem;
  color: var(--brown);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .19em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero-eyebrow { color: rgb(255 255 255 / 86%); }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.045em;
}
.hero h1 span { color: #e7c2ae; font-style: italic; }
.hero-date {
  margin: 1.7rem 0 .35rem;
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-note { margin: 0; color: rgb(255 255 255 / 88%); font-size: .9rem; }
.scroll-cue {
  position: absolute;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  transform: translateX(-50%);
}
.scroll-cue span {
  width: .45rem;
  height: .45rem;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  transform: translateY(-2px) rotate(45deg);
  animation: nudge 1.8s ease-in-out infinite;
}

.section-pad { padding: 5.5rem 1.35rem; }
.welcome {
  display: grid;
  min-height: 27rem;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding-bottom: 1.5rem;
  text-align: center;
}
.welcome::before, .welcome::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgb(184 121 98 / 15%);
  border-radius: 50%;
  content: "";
}
.welcome::before { top: -13rem; left: -9rem; }
.welcome::after { right: -12rem; bottom: -14rem; width: 25rem; height: 25rem; }
.welcome h2, .section-heading h2, .venue-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: .95;
}
.welcome h2 em { color: var(--terracotta); font-weight: 400; }
.welcome-copy { max-width: 33rem; margin-bottom: 1.5rem; color: #625a52; font-size: .98rem; }
.countdown-wrap { margin: .4rem 0 1.5rem; }
.countdown-wrap > .eyebrow { margin-bottom: .65rem; }
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(.85rem, 4vw, 2rem);
}
.countdown-unit { display: grid; min-width: 3.2rem; justify-items: center; }
.countdown-unit span { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-unit small { color: var(--brown); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.countdown-finished { margin: 0; color: var(--terracotta); font-family: var(--serif); font-size: 1.5rem; }
.section-flourish { font-family: var(--serif); font-size: 1.6rem; }

.couple { padding-top: 1.5rem; background: #f8f6f2; }
.couple-intro { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.couple-divider {
  position: relative;
  display: grid;
  width: min(100%, 10rem);
  place-items: center;
  margin: 0 auto 1.25rem;
  color: #be9a68;
  line-height: 1;
}
.couple-divider::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #be9a68, transparent);
  content: "";
}
.couple-divider span { padding: 0 .7rem; background: #f8f6f2; }
.couple-kicker {
  margin: 0 0 .65rem;
  padding-inline: .5rem;
  color: #504943;
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
}
.couple-intro h2 {
  margin: 0;
  color: #2e2a28;
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: .98;
}
.couple-intro h2 span { color: #be9a68; }
.couple-role {
  margin: .75rem 0 .15rem;
  color: #be9a68;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .25rem;
  text-transform: uppercase;
}
.couple-tagline {
  margin: 0 0 .45rem;
  color: #be9a68;
  font-family: "Allura", cursive;
  font-size: 2.2rem;
  line-height: 1.25;
}
.couple-description {
  max-width: 31.25rem;
  margin: 0 auto;
  color: #5d5853;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
}
.couple-caption {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  padding-inline: .5rem;
  text-align: center;
}
.couple-caption .couple-tagline { margin-bottom: .35rem; }
.section-heading h2 { margin-bottom: 0; }
.profiles { display: grid; gap: 3.5rem; max-width: 58rem; margin: 0 auto; }
.profile { min-width: 0; }
.slideshow {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  border-radius: 20px;
  background: var(--beige);
  box-shadow: 0 1.25rem 3.5rem rgb(46 42 40 / 14%);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }
.slideshow-controls {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.slide-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: rgb(46 42 40 / 40%);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
}
.slide-dots { display: flex; gap: .45rem; pointer-events: auto; }
.slide-dot {
  width: .52rem;
  height: .52rem;
  padding: 0;
  border: 1px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.slide-dot[aria-current="true"] { border-color: #be9a68; background: #be9a68; }

.celebrations {
  min-height: 44rem;
  overflow: hidden;
  background: #484039;
  color: white;
}
.celebrations-poster { background-image: linear-gradient(120deg, #5c5148, #292724); }
.section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-shade { background: linear-gradient(90deg, rgb(19 17 15 / 78%), rgb(19 17 15 / 35%)); }
.celebrations-content { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; }
.section-heading-light .eyebrow { color: #e5c4b3; }
.section-heading-light h2 { font-size: clamp(3rem, 8vw, 5.5rem); }
.section-heading-light { margin-bottom: 2.4rem; text-align: left; }
.events { max-width: 58rem; }
.event {
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgb(255 255 255 / 34%);
}
.event h3 { margin: 0; font-size: 2.1rem; line-height: 1; }
.event-date { margin: 0; color: #e8cdbf; font-size: .8rem; letter-spacing: .08em; }
.event-meta { margin: 0; color: rgb(255 255 255 / 82%); font-size: .9rem; }

.location {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}
.location-divider {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}
.location-divider span { background: var(--ivory); }
.venue-photo-wrap { position: relative; min-width: 0; min-height: 0; aspect-ratio: 4 / 3; background: var(--beige); }
.venue-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .4rem .7rem;
  background: rgb(248 245 239 / 88%);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.venue-copy h2 { font-size: clamp(2.7rem, 7vw, 4.7rem); }
.venue-copy > p:not(.eyebrow) { max-width: 27rem; margin-bottom: 1.6rem; color: #625a52; white-space: pre-line; }
.button-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .75rem 1rem;
  background: var(--charcoal);
  color: white;
  font-size: .82rem;
  text-decoration: none;
}
.button-link span:last-child { font-size: 1.1rem; }

.gallery-section { background: #f0ebe3; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  max-width: 75rem;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--beige);
  cursor: zoom-in;
}
.gallery-item:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
.gallery-item:nth-child(3n + 2) { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(3n) { aspect-ratio: 4 / 5; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.035); }
.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  transform: translate(-50%, -50%);
}
.gallery-empty { grid-column: 1 / -1; color: #625a52; text-align: center; }

.closing {
  display: grid;
  min-height: 80svh;
  min-height: max(36rem, 80svh);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background: #514840;
  color: white;
  text-align: center;
}
.closing-image { background-position: center 45%; }
.closing-shade { background: linear-gradient(180deg, rgb(20 18 16 / 30%), rgb(20 18 16 / 68%)); }
.closing-content { position: relative; z-index: 1; max-width: 45rem; }
.closing-content .eyebrow { color: #e5c4b3; }
.closing-content h2 { margin-bottom: 1.25rem; font-size: clamp(3rem, 9vw, 6rem); line-height: .9; }
.closing-content p { margin-bottom: .35rem; }
.closing-date { margin-top: 1.5rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  color: var(--brown);
  font-size: .72rem;
}
.site-footer a { text-decoration: none; }

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 3.5rem;
  background: rgb(18 17 16 / 96%);
}
.lightbox.is-open { display: flex; }
.lightbox-content { display: grid; width: min(100%, 70rem); height: 100%; place-items: center; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}
.lightbox-close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; font-size: 1.8rem; }
.lightbox-nav { top: 50%; font-size: 1.8rem; transform: translateY(-50%); }
.lightbox-prev { left: .6rem; }
.lightbox-next { right: .6rem; }
.lightbox-nav:disabled { opacity: .35; cursor: default; }

.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes nudge { 50% { transform: translate(2px, 2px) rotate(45deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
  .section-pad { padding: 7rem 2.5rem; }
  .event { grid-template-columns: minmax(9rem, .8fr) 1fr 1fr; align-items: center; gap: 1rem; }
  .event h3 { grid-row: span 2; }
  .event-date { align-self: end; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .gallery-item:nth-child(3n + 2) { margin-top: 2.5rem; }
}

@media (min-width: 800px) {
  html { scroll-padding-top: 6rem; }
  .nav { min-height: 3.6rem; padding-left: 1.5rem; }
  .menu-toggle { display: none; }
  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(.8rem, 2vw, 2rem);
    padding: 0 .8rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-links a { padding: .65rem 0; font-size: .78rem; }
  .section-pad { padding: 8rem 4rem; }
  .welcome { min-height: 34rem; padding-bottom: 1.5rem; }
  .couple { padding-top: 2rem; }
  .couple-intro { margin-bottom: 3.5rem; }
  .slideshow { aspect-ratio: 4 / 4.1; }
  .celebrations { min-height: 50rem; }
  .celebrations-content { padding-top: 8rem; padding-bottom: 8rem; }
  .location { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 8rem); }
  .venue-photo-wrap { aspect-ratio: 4 / 4.2; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item:nth-child(4n + 2) { margin-top: 3rem; }
  .gallery-item:nth-child(4n + 3) { margin-top: 1rem; }
  .gallery-item:nth-child(4n) { margin-top: 4rem; }
}

@media (min-width: 1100px) {
  .hero-content {
    width: min(25vw, 23rem);
    justify-self: end;
    margin-right: clamp(3rem, 5vw, 5rem);
    text-align: right;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 3.2vw, 3.6rem);
    line-height: .96;
  }
  .hero-date, .hero-note { text-align: right; }
}

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