﻿:root {
  --wine: #610d08;
  --wine-deep: #390000;
  --mauve: #995656;
  --olive: #8c8a45;
  --sage: #aeb081;
  --cream: #fcf8f3;
  --cream-deep: #f2eae1;
  --text: #2b1414;
  --muted: rgba(43, 20, 20, 0.72);
  --line: rgba(57, 0, 0, 0.16);
  --line-light: rgba(255, 255, 255, 0.2);
  --shadow: 0 20px 40px rgba(57, 0, 0, 0.08);
  --container: min(1120px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fefbf8 0%, #f8f1ea 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;
}

.hero {
  padding: 26px 0 0;
}

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

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

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

.nav-links a,
.nav-rsvp,
.footer a,
.section-label,
.location-kicker,
.integration-label,
.rsvp-form label,
.registry-tile {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.69rem;
}

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

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

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

.nav-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);
  color: var(--wine-deep);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.18fr 0.62fr;
  gap: 28px;
  align-items: start;
  padding: 8px 0 60px;
}

.hero-side,
.hero-main,
.story-feature,
.location-image,
.gallery-card {
  margin: 0;
}

.hero-side img,
.hero-main img,
.story-feature img,
.location-image img,
.gallery-card img {
  object-fit: cover;
}

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

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

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0.1em;
}

.hero-main {
  max-width: 420px;
  margin: 0 auto;
}

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

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

.section {
  padding: 0 0 84px;
}

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

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

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

.section-label-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;
}

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

.story-copy p:last-child,
.story-copy p:nth-last-child(2) {
  margin-bottom: 0;
}

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

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

.schedule-band,
.dress-strip,
.rsvp-section {
  width: calc(100% + 64px);
  margin-left: -32px;
  padding: 76px 32px;
  background: linear-gradient(180deg, rgba(57, 0, 0, 0.96), rgba(97, 13, 8, 0.98));
  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 h3,
.location-copy h3,
.faq-card h3 {
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.schedule-item p,
.location-copy p,
.registry-copy,
.faq-card p,
.rsvp-copy p,
.dress-copy p,
.intro-grid > p,
.story-copy p,
.footer p {
  color: inherit;
}

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

.location-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-kicker {
  margin: 0 0 10px;
  color: var(--olive);
  font-weight: 700;
}

.location-copy h3 {
  margin: 0 0 10px;
}

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

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

.dress-layout {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dress-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.dress-copy strong {
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.registry-section {
  padding-top: 84px;
}

.registry-copy {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
}

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

.registry-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
}

.registry-tile,
.faq-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.registry-tile {
  min-height: 70px;
  display: grid;
  place-items: center;
  color: var(--wine-deep);
}

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

.faq-card {
  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, 255, 255, 0.92);
  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);
}

.rsvp-form textarea {
  resize: vertical;
}

.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-section {
  padding-top: 84px;
}

.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) {
  .nav,
  .hero-grid,
  .intro-grid,
  .story-layout,
  .schedule-grid,
  .location-grid,
  .registry-grid,
  .faq-grid,
  .rsvp-shell,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-items: center;
  }

  .nav-links,
  .nav-links-right {
    justify-content: center;
  }

  .hero-side {
    max-width: 360px;
    justify-self: center;
  }

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

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

  .nav-links {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 2rem;
  }

  .schedule-band,
  .dress-strip,
  .rsvp-section {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 56px 14px;
  }

  .hero-grid {
    gap: 18px;
  }

  h1 {
    font-size: 2.15rem;
    letter-spacing: 0.08em;
  }

  h2 {
    font-size: 1.7rem;
  }

  .section {
    padding-bottom: 64px;
  }

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

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