﻿:root {
  --wine: #610d08;
  --wine-deep: #390000;
  --mauve: #995656;
  --olive: #8c8a45;
  --sage: #aeb081;
  --mist: #f6efe8;
  --paper: #fffaf5;
  --text: #351919;
  --muted: rgba(53, 25, 25, 0.72);
  --line: rgba(57, 0, 0, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --container: min(1120px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(153, 86, 86, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(174, 176, 129, 0.14), transparent 22%),
    linear-gradient(180deg, #fdf7f1 0%, #f7efe7 52%, #fdf7f1 100%);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}

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

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

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

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 26px 0 42px;
}

.header-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-links-right {
  justify-content: flex-end;
}

.site-brand,
h1,
h2,
h3 {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
}

.site-brand {
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.header-links a,
.header-rsvp,
.footer a,
.eyebrow,
.location-label,
.integration-label,
.rsvp-form label,
.split-link {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.69rem;
}

.header-links a,
.footer a {
  color: var(--muted);
}

.header-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 104px;
  padding: 0 20px;
  border: 1px solid var(--wine-deep);
  background: rgba(255, 255, 255, 0.55);
}

.hero {
  padding: 34px 0 72px;
}

.hero-canvas {
  position: relative;
  min-height: 660px;
}

.hero-media,
.hero-main,
.story-image,
.location-image,
.gallery-card,
.split-card figure {
  margin: 0;
}

.hero-media img,
.hero-main img,
.story-image img,
.location-image img,
.gallery-card img,
.split-card figure img {
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 0.84;
}

.hero-media {
  position: absolute;
  top: 196px;
  width: 118px;
  margin: 0;
  z-index: 1;
}

.hero-media-left {
  left: 10px;
}

.hero-media-right {
  right: 10px;
}

.hero-center {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

h1 {
  position: absolute;
  top: 94px;
  left: 50%;
  z-index: 2;
  width: max-content;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  color: var(--wine-deep);
  transform: translateX(-50%);
}

.hero-main {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 404px);
  margin: 0;
  transform: translateX(-50%);
}

.hero-main img {
  aspect-ratio: 0.85;
}

.hero-copy {
  max-width: 420px;
  margin: -18px auto 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.section {
  padding: 0 0 88px;
}

.intro-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 74px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mauve);
  font-weight: 600;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: 0.05em;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.92fr 0.72fr;
  gap: 42px;
  align-items: start;
}

.story-image {
  width: min(100%, 430px);
  justify-self: center;
}

.story-image img {
  aspect-ratio: 0.83;
}

.band-dark {
  width: calc(100% + 64px);
  margin-left: -32px;
  padding: 78px 32px;
  background:
    linear-gradient(180deg, rgba(57, 0, 0, 0.95), rgba(97, 13, 8, 0.98)),
    radial-gradient(circle at top right, rgba(174, 176, 129, 0.14), transparent 30%);
  color: white;
}

.center-heading {
  text-align: center;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.schedule-item {
  text-align: center;
}

.schedule-item p {
  margin: 8px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.76);
}

.location-section,
.split-section,
.gallery-section {
  padding-top: 84px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
}

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

.location-copy p {
  margin: 0;
  color: var(--muted);
}

.location-label {
  margin: 0 0 10px;
  color: var(--olive);
  font-weight: 700;
}

.location-image {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

.location-image img {
  aspect-ratio: 0.9;
}

.countdown-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.countdown-grid strong {
  display: block;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.06em;
}

.countdown-grid span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.7);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.split-card {
  text-align: center;
}

.split-card figure {
  width: min(100%, 260px);
  margin: 18px auto 18px;
}

.split-card figure img {
  aspect-ratio: 0.82;
}

.split-card p:not(.eyebrow) {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.split-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 112px;
  border: 1px solid var(--wine-deep);
  color: var(--wine-deep);
  margin-top: 8px;
}

.faq-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.faq-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.faq-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
}

.faq-card p {
  color: var(--muted);
}

.rsvp-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}

.rsvp-copy {
  padding-top: 8px;
}

.integration-note {
  margin-top: 18px;
  border: 1px solid var(--line-light);
  padding: 16px;
}

.integration-note code {
  display: block;
  margin-top: 8px;
  color: white;
  word-break: break-word;
}

.rsvp-form {
  display: grid;
  gap: 14px;
  background: rgba(255, 250, 245, 0.95);
  padding: 24px;
  color: var(--wine-deep);
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--wine-deep);
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(57, 0, 0, 0.16);
  background: white;
  color: var(--text);
}

.submit-button {
  min-height: 50px;
  border: 0;
  background: var(--wine);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.gallery-card img {
  aspect-ratio: 0.92;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 1, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: translateY(20px) scale(0.97);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

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

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

@media (max-width: 980px) {
  .site-header,
  .intro-grid,
  .story-grid,
  .schedule-grid,
  .location-grid,
  .countdown-grid,
  .split-section,
  .faq-grid,
  .rsvp-shell,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: center;
  }

  .header-links,
  .header-links-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-canvas {
    min-height: auto;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-media,
  h1,
  .hero-main {
    position: static;
    transform: none;
  }

  .hero-media {
    width: min(100%, 260px);
    margin: 0 auto 18px;
  }

  .hero-center {
    margin: 0 auto;
  }

  .hero-stage {
    min-height: auto;
  }

  h1 {
    margin-bottom: 24px;
  }

  .hero-main {
    margin: 0 auto;
  }

  .hero-copy {
    margin-top: 18px;
  }

  .location-image {
    order: -1;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 100%);
  }

  .site-brand {
    font-size: 2rem;
  }

  .band-dark {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 56px 14px;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .section {
    padding-bottom: 64px;
  }

  .intro-bar {
    margin-bottom: 54px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
