:root {
  --burgundy: #5a1d2a;
  --burgundy-deep: #2e1519;
  --wine: #7a2f42;
  --wine-soft: rgba(122, 47, 66, 0.12);
  --ivory: #f8f3ee;
  --ivory-deep: #efe2d6;
  --champagne: #c8a56b;
  --gold: #b78b5d;
  --charcoal: #201d1b;
  --text-soft: rgba(32, 29, 27, 0.75);
  --line: rgba(90, 29, 42, 0.16);
  --shadow: rgba(20, 16, 15, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(127, 40, 56, 0.06), transparent 28%),
    linear-gradient(180deg, #f8f3ee 0%, #f4eee9 100%);
  color: var(--charcoal);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(90, 29, 42, 0.02), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
}

.invitation-card {
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  padding: 3rem 2.5rem;
  box-shadow: 
    0 4px 12px var(--shadow-soft),
    0 0 0 1px var(--line-light);
  position: relative;
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(104, 24, 36, 0.12);
  pointer-events: none;
}

.invitation-card-double {
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  padding: 3rem 2.5rem;
  box-shadow: 
    0 4px 12px var(--shadow-soft),
    0 0 0 1px var(--line-light);
  position: relative;
}

.invitation-card-double::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--burgundy);
  pointer-events: none;
}

.invitation-card-double::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(104, 24, 36, 0.08);
  pointer-events: none;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--champagne);
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.ornament-center {
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  color: var(--champagne);
}

.flourish-top {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--champagne);
  font-family: "Great Vibes", cursive;
  opacity: 0.6;
}

.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  margin: 1.5rem auto;
}

.corner-ornament {
  position: absolute;
  font-size: 1.2rem;
  color: var(--champagne);
  opacity: 0.5;
  font-family: "Great Vibes", cursive;
}

.corner-ornament.top-left {
  top: 10px;
  left: 10px;
}

.corner-ornament.top-right {
  top: 10px;
  right: 10px;
  transform: scaleX(-1);
}

.corner-ornament.bottom-left {
  bottom: 10px;
  left: 10px;
  transform: scaleY(-1);
}

.corner-ornament.bottom-right {
  bottom: 10px;
  right: 10px;
  transform: scale(-1);
}

.text-center {
  text-align: center;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-kicker,
.subhead {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-weight: 500;
}


.section-title,
.hero-title,
.intro-content h1,
.finale-content h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  color: var(--burgundy);
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--burgundy);
  font-weight: 600;
}


.couple-name,
.hero-title,
.finale-content h2 {
  color: var(--burgundy);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.brand,
.nav-links a {
  font-size: 0.76rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 1.5rem));
  z-index: 25;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--burgundy);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.brand {
  color: var(--burgundy);
  font-weight: 600;
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--burgundy);
  opacity: 0.9;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--burgundy);
  font-size: 1.4rem;
  color: var(--burgundy);
  width: 44px;
  height: 44px;
  border-radius: 0.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.28rem;
  text-transform: uppercase;
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  background: #eeeae0;
  min-height: 100dvh;
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("landing page.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
  cursor: pointer;
}

@keyframes slowPan {
  0% { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(0, -10px, 0); }
}

.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 247, 245, 0.95);
  padding: 2rem 1rem;
  max-width: 680px;
  visibility: hidden;
  pointer-events: none;
}

.intro-content h1 {
  font-size: clamp(4.6rem, 8vw, 9rem);
  line-height: 0.8;
  letter-spacing: 0.03em;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: rgba(255, 244, 239, 0.96);
  text-shadow: 0 8px 24px rgba(22, 14, 16, 0.28);
}

.ampersand {
  color: var(--champagne);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 5vw, 5rem);
  margin: 0.5rem 0;
  font-weight: 400;
}

.intro-date {
  margin-top: 1.25rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--champagne);
  font-weight: 500;
  font-family: "Playfair Display", serif;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--champagne);
  background: var(--burgundy);
  color: var(--ivory);
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 1rem 2.5rem;
  min-height: 52px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  border-radius: 0.25rem;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
  background: var(--burgundy-dark);
  border-color: var(--champagne-light);
}

.site-content {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.site-content.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #130d0e;
}

.hero-image,
.hero-overlay,
.finale {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: scenicZoom 16s ease-in-out alternate infinite;
  opacity: 1;
}

@keyframes scenicZoom {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.16); }
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(42, 15, 21, 0.32), rgba(42, 15, 21, 0.74));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  text-align: center;
  padding-top: 4rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(4.2rem, 7vw, 8rem);
  line-height: 0.9;
  margin-bottom: 1rem;
  color: rgba(255, 244, 239, 0.96);
  text-shadow: 0 4px 18px rgba(25, 12, 16, 0.26);
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.hero-text {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: "Cormorant Garamond", serif;
  color: var(--ivory);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-style: italic;
}

.hero-meta {
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  font-size: 0.68rem;
  z-index: 2;
}

.scroll-indicator span {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.couple {
  background: linear-gradient(180deg, var(--ivory) 0%, #f2eae1 100%);
  padding: 7rem 0;
}

.couple-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.couple-copy {
  padding: 2rem;
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  box-shadow: 0 4px 12px var(--shadow-soft);
  position: relative;
}

.couple-copy::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(104, 24, 36, 0.12);
  pointer-events: none;
}

.couple-copy p:last-child {
  color: var(--text-dark);
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.couple-photo {
  min-height: 520px;
  border-radius: 0.5rem;
  border: 2px solid var(--burgundy);
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px var(--shadow);
}

.story {
  background: #f7f0ea;
}

.story-timeline {
  margin-top: 2rem;
  display: grid;
  gap: 2.5rem;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--ivory-warm);
  border: 1px solid var(--burgundy);
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
}

.story-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(104, 24, 36, 0.1);
  pointer-events: none;
}

.story-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--burgundy);
}

.story-copy {
  padding: 0.75rem 0.5rem;
}

.story-label {
  font-size: 0.72rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.story-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.story-visual {
  min-height: 320px;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 42px rgba(17, 14, 12, 0.08);
  border: 1px solid rgba(90, 29, 42, 0.12);
}

.visual-one {
  background-image: url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=900&q=80");
}

.visual-two {
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=900&q=80");
}

.visual-three {
  background-image: url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=900&q=80");
}

.visual-four {
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
}

.details-grid,
.entourage-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(104, 24, 36, 0.1);
  pointer-events: none;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--burgundy);
}

.detail-icon {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.detail-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  font-family: "Cormorant Garamond", serif;
}

.detail-card p {
  margin: 0.2rem 0;
  color: var(--text-soft);
}

.detail-card a {
  display: inline-block;
  margin-top: 1rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--burgundy);
}

.countdown {
  background: rgba(122, 47, 66, 0.03);
  border-top: 1px solid rgba(90, 29, 42, 0.12);
  border-bottom: 1px solid rgba(90, 29, 42, 0.12);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--line);
  padding: 1.5rem 1rem;
}

.countdown-item span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  color: var(--charcoal);
}

.countdown-item label {
  display: block;
  margin-top: 0.6rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
}

.formal-attire {
  margin: 0 0 2rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: "Playfair Display", serif;
  color: var(--burgundy);
  font-weight: 600;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.swatch {
  border: 1px solid var(--burgundy);
  background: var(--ivory);
  color: var(--charcoal);
  padding: 0.8rem 1rem;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.swatch:hover,
.swatch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--burgundy-dark);
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.color-description {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-dark);
}

.gallery-grid {
  margin-top: 2rem;
  columns: 3 240px;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid var(--burgundy);
  box-shadow: 0 4px 12px var(--shadow-soft);
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.75s ease, filter 0.75s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(0.9);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.88);
  display: none;
  place-items: center;
  z-index: 40;
  padding: 1rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(86vw, 900px);
  max-height: 84vh;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close,
.lightbox-control {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-control {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-control.prev {
  left: 1.5rem;
}

.lightbox-control.next {
  right: 1.5rem;
}

.entourage {
  background: rgba(90, 29, 42, 0.03);
}

.entourage-group {
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
}


.entourage-group h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--burgundy);
}

.entourage-group p {
  margin: 0.3rem 0;
  color: var(--text-soft);
}

.full-span {
  grid-column: 1 / -1;
}

.day-timeline {
  position: relative;
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1px 1fr;
  align-items: center;
  gap: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 122px;
  top: 0;
  bottom: -2rem;
  width: 1px;
  background: rgba(90, 29, 42, 0.22);
}

.timeline-item:last-child::before {
  display: none;
}

.time {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--burgundy);
}

.timeline-line {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(184, 155, 101, 0.12);
  justify-self: center;
  z-index: 1;
}

.event {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.rsvp {
  background: rgba(90, 29, 42, 0.02);
}

.subtitle {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text-soft);
}

.rsvp-form {
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  padding: 2.5rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 4px 12px var(--shadow-soft);
  position: relative;
}

.rsvp-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(104, 24, 36, 0.1);
  pointer-events: none;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--burgundy);
  background: var(--ivory-warm);
  min-height: 50px;
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  border-radius: 0.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--burgundy-dark);
  box-shadow: 0 0 0 3px rgba(104, 24, 36, 0.1);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--burgundy);
  background: var(--ivory);
  min-height: 48px;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: var(--burgundy-dark);
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.radio-option input {
  width: auto;
  min-height: auto;
  accent-color: var(--burgundy);
}

.full-width {
  width: 100%;
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--champagne);
}

.rsvp-success {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--burgundy);
  box-shadow: 0 4px 12px var(--shadow-soft);
  position: relative;
}

.rsvp-success::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(104, 24, 36, 0.1);
  pointer-events: none;
}

.rsvp-success p {
  position: relative;
  z-index: 1;
  color: var(--burgundy);
}

.rsvp-success p {
  margin: 0.2rem 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.hidden {
  display: none !important;
}

.registry-copy {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-soft);
}

.gift-list {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.gift-item {
  border: 1px solid var(--burgundy);
  background: var(--ivory);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 12px var(--shadow-soft);
  position: relative;
}

.gift-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(104, 24, 36, 0.1);
  pointer-events: none;
}

.gift-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.gift-item p {
  margin: 0.3rem 0;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.copy-btn {
  margin-top: 0.75rem;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

.copy-btn:hover {
  background: var(--burgundy);
  color: var(--ivory);
}

.qr-box {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 29, 42, 0.2);
  background: repeating-linear-gradient(
    45deg,
    rgba(90, 29, 42, 0.06),
    rgba(90, 29, 42, 0.06) 10px,
    rgba(255, 255, 255, 0.18) 10px,
    rgba(255, 255, 255, 0.18) 20px
  );
  overflow: hidden;
  padding: 0.5rem;
}

.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.location-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--line);
  padding: 1rem;
}

.map-preview {
  position: relative;
  min-height: 240px;
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(122, 47, 66, 0.08), rgba(200, 165, 107, 0.1)),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    #ebe1d7;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: var(--burgundy);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 10px rgba(90, 29, 42, 0.12);
}

.location-copy {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.location-copy p {
  margin: 0.25rem 0;
  color: var(--text-soft);
}

.location-copy a {
  margin-top: 1rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--burgundy);
}

.finale {
  position: relative;
  min-height: 92vh;
  background-image: url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.finale-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 14, 19, 0.18), rgba(31, 14, 19, 0.58));
}

.finale-content {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.finale-content h2 {
  font-size: clamp(4.5rem, 7vw, 8.5rem);
  line-height: 0.86;
  margin: 1rem 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.finale-names,
.finale-date {
  margin: 0;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-size: 1rem;
  font-family: "Playfair Display", serif;
  color: var(--champagne);
  font-weight: 500;
}

.finale-date {
  letter-spacing: 0.2rem;
  font-size: 1.05rem;
}

.floral-mark {
  margin-top: 1.75rem;
  font-size: 2rem;
  color: var(--champagne);
  font-family: "Great Vibes", cursive;
}

.site-footer {
  text-align: center;
  padding: 2.4rem 1rem 3rem;
  color: var(--charcoal);
  background: #f6efe8;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.15;
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 0.5rem;
  border: 1px solid var(--champagne);
  background: var(--burgundy);
  color: var(--ivory);
  z-index: 30;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
  background: var(--burgundy-dark);
  border-color: var(--champagne-light);
}

.music-toggle.playing {
  animation: pulse 1.6s ease-in-out infinite;
}

.music-toggle .music-icon {
  font-size: 1.3rem;
}

@keyframes pulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: revealGlow 1s ease-out;
}

@keyframes revealGlow {
  0% { filter: brightness(0.95); }
  100% { filter: brightness(1); }
}

@media (max-width: 768px) {
  .intro-overlay,
  .intro-backdrop {
    min-height: 100svh;
  }

  .floating-nav {
    top: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .nav-inner {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 0.8rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--ivory);
    border: 1px solid var(--burgundy);
    border-radius: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--burgundy);
  }

  .section {
    padding: 5rem 0;
  }

  .couple-layout,
  .story-item,
  .details-grid,
  .entourage-grid,
  .location-card {
    grid-template-columns: 1fr;
  }

  .couple-layout {
    gap: 2rem;
  }

  .couple-copy {
    padding: 1.5rem;
  }

  .story-item {
    padding: 1.5rem;
  }

  .detail-card {
    padding: 2rem 1.5rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-item {
    padding: 1.25rem 0.75rem;
  }

  .timeline-item {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .timeline-line {
    display: none;
  }

  .timeline-item::before {
    display: none;
  }

  .hero-text {
    max-width: 420px;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .lightbox-control.prev,
  .lightbox-control.next {
    top: auto;
    bottom: 1.2rem;
    transform: none;
  }

  .lightbox-control.prev {
    left: 1.5rem;
  }

  .lightbox-control.next {
    right: 1.5rem;
  }

  .rsvp-form {
    padding: 2rem 1.5rem;
  }

  .entourage-group {
    padding: 1.25rem 1.5rem;
  }

  .gift-item {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 500px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .floating-nav {
    width: calc(100% - 0.75rem);
    top: 0.5rem;
  }

  .nav-inner {
    padding: 0.7rem 0.8rem;
  }

  .brand {
    font-size: 0.7rem;
    letter-spacing: 0.08rem;
  }

  .intro-content {
    padding: 2.2rem 1.2rem;
  }

  .intro-content h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .primary-button {
    width: 100%;
    min-height: 48px;
    font-size: 0.7rem;
    letter-spacing: 0.12rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .countdown-item span {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .countdown-item {
    padding: 1rem 0.5rem;
  }

  .swatches {
    justify-content: stretch;
  }

  .swatch {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
  }

  .story-item {
    padding: 1.25rem;
  }

  .rsvp-form {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .radio-option {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-card {
    padding: 1.75rem 1.25rem;
  }

  .entourage-group {
    padding: 1.25rem;
  }

  .couple-copy {
    padding: 1.25rem;
  }

  .invitation-card,
  .invitation-card-double {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .finale-content h2 {
    font-size: clamp(3rem, 12vw, 5rem);
  }
}
