:root{
  /* --- Color tokens --- */
  --plum-deep:   #3A1533;
  --plum:        #6A2E5C;
  --plum-soft:   #9C5A8E;
  --magenta:     #B01358;
  --magenta-bright: #E91E8C;
  --gold:        #D4AF37;
  --cream:       #FDF5FA;
  --cream-2:     #F7E9F1;
  --text-dark:   #2A1023;
  --text-light:  #FBEFF6;

  /* Font Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Jost', sans-serif;

  --section-pad: clamp(64px, 10vw, 120px);
  --topbar-height: 34px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cream);
  color:var(--text-dark);
  font-family:var(--font-body);
  font-weight:300;
  line-height:1.6;
  overflow-x:hidden;
}

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

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  margin:0;
  color:var(--plum-deep);
}

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

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

/* Preloader */
.preloader{
  position:fixed; inset:0; z-index:9999;
  background:linear-gradient(160deg, var(--plum-deep), var(--magenta) 140%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition:opacity .7s ease, visibility .7s ease;
}
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-emblem{
  font-family:var(--font-script);
  font-size:clamp(3rem, 8vw, 5rem);
  color:var(--text-light);
  animation:pulse 1.8s ease-in-out infinite;
}
.preloader-text{
  color:var(--text-light); opacity:.8; letter-spacing:.12em; text-transform:uppercase; font-size:.75rem; margin-top:1rem;
}
@keyframes pulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.06); opacity:.75; }
}

/*  Hashtag bar */
.top-bar{
  position:fixed; top:0; left:0; right:0; z-index:600;
  background:var(--plum-deep);
  text-align:center;
  padding:8px 12px;
}
.top-bar p{
  margin:0;
  color:var(--gold);
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* Hashtag (shared, reused elsewhere) */
.hashtag{
  font-size:.75rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin:0 0 22px;
}
.hashtag-story{
  color:var(--magenta-bright);
  font-weight:500;
}

/*  Header / Nav  */
.site-header{
  position:fixed; top:var(--topbar-height); left:0; right:0; z-index:500;
  padding:18px clamp(20px,5vw,48px);
  display:flex; justify-content:center;
  transition:background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.scrolled{
  background:rgba(253,245,250,.92);
  backdrop-filter:blur(6px);
  box-shadow:0 4px 20px rgba(58,21,51,.08);
  padding:10px clamp(20px,5vw,48px);
}
.nav-wrap{
  width:100%; max-width:1200px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo{
  font-family:var(--font-script);
  font-size:1.6rem;
  color:var(--text-light);
  transition:color .4s ease;
}
.site-header.scrolled .nav-logo{ color:var(--plum-deep); }

.nav-links{ display:flex; gap:clamp(14px,3vw,32px); }
.nav-links a{
  font-size:.82rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-light); opacity:.9; position:relative; padding-bottom:4px;
  transition:color .4s ease;
}
.site-header.scrolled .nav-links a{ color:var(--text-dark); }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--magenta-bright); transition:width .3s ease;
}
.nav-links a:hover::after{ width:100%; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{
  width:24px; height:2px; background:var(--text-light); transition:background .4s ease;
}
.site-header.scrolled .nav-toggle span{ background:var(--plum-deep); }

@media (max-width:820px){
  .nav-links{
    position:fixed; inset:0 0 0 auto; top:0; right:-100%;
    width:min(78vw,320px); height:100vh;
    background:linear-gradient(180deg, var(--plum-deep), var(--magenta));
    flex-direction:column; align-items:flex-start; justify-content:center;
    padding:40px; gap:28px; transition:right .45s ease; z-index:400;
  }
  .nav-links.open{ right:0; }
  .nav-links a{ color:var(--text-light) !important; font-size:1rem; }
  .nav-toggle{ display:flex; }
}

/*  Hero  */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:flex-end; justify-content:center;
  overflow:hidden;
  padding:calc(120px + var(--topbar-height)) 24px 64px;
  text-align:center;
}
.hero-media{ position:absolute; inset:0; z-index:0; background:linear-gradient(160deg, var(--plum-deep), var(--magenta) 130%); }
.hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(58,21,51,.55) 0%, rgba(58,21,51,.35) 40%, rgba(58,21,51,.85) 100%);
}
.hero-content{ position:relative; z-index:2; max-width:720px; color:var(--text-light); }

.eyebrow{
  font-size:.78rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold); margin:0 0 12px;
}
.eyebrow.center{ text-align:center; }

.hero-names{
  font-size:clamp(2.8rem, 8vw, 5.2rem);
  line-height:1.05;
  display:flex; align-items:center; justify-content:center; gap:.4em; flex-wrap:wrap;
  color:var(--text-light);
}
.hero-names .amp{
  font-family:var(--font-script);
  color:var(--gold);
  font-size:1.1em;
}

.hero-date{
  margin-top:14px; font-size:1rem; letter-spacing:.08em; opacity:.9;
}

.divider{ display:flex; justify-content:center; margin:20px 0; }
.divider.center{ margin:8px auto 40px; }
.divider-svg{ width:180px; height:20px; }

/*  Countdown  */
.countdown{
  display:flex; justify-content:center; gap:clamp(10px,3vw,26px); margin-top:8px;
}
.countdown-item{
  display:flex; flex-direction:column; align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  padding:14px clamp(12px,3vw,20px);
  min-width:64px;
  backdrop-filter:blur(4px);
}
.countdown-number{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.6rem,4vw,2.4rem); color:var(--text-light); line-height:1;
}
.countdown-label{
  font-size:.65rem; letter-spacing:.14em; text-transform:uppercase; opacity:.75; margin-top:6px;
}
.countdown-caption{
  font-family:var(--font-script); color:var(--gold); font-size:1.3rem; margin:14px 0 26px;
}

/*  Buttons  */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:40px;
  font-size:.82rem; letter-spacing:.1em; text-transform:uppercase;
  border:1px solid var(--gold);
  transition:transform .3s ease, background .3s ease, color .3s ease;
}
.btn-primary{
  background:var(--gold); color:var(--plum-deep); border-color:var(--gold);
}
.btn-primary:hover{ transform:translateY(-2px); background:transparent; color:var(--gold); }
.btn-block{ width:100%; text-align:center; }

.scroll-cue{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  z-index:2; width:22px; height:36px; border:2px solid var(--text-light); border-radius:20px;
  opacity:.7;
}
.scroll-cue span{
  position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:var(--gold);
  animation:scrollCue 1.6s ease infinite;
}
@keyframes scrollCue{
  0%{ opacity:1; top:6px; }
  100%{ opacity:0; top:20px; }
}

/* Sections (shared)  */
.section{
  padding:var(--section-pad) 24px;
  max-width:1100px;
  margin:0 auto;
}
.section-title{
  font-size:clamp(2rem, 5vw, 2.8rem);
  text-align:center;
}
.center{ text-align:center; }

/*  Reveal animation  */
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* Story  */
.story{ text-align:center; }

.story-article{ max-width:680px; margin:0 auto; text-align:left; }
.story-header{ text-align:center; margin-bottom:28px; }
.story-heading{ font-size:1.9rem; color:var(--magenta); }

.story-quote{
  margin:0; padding:4px 0 4px 28px;
  border-left:3px solid var(--magenta-bright);
  font-family:var(--font-display); font-style:italic;
  font-size:1.15rem; line-height:1.9; color:var(--plum-deep);
}
.story-quote p{ margin:0 0 20px; }
.story-quote p:last-of-type{ margin-bottom:0; }

.story-attribution{
  margin-top:22px; font-style:normal; font-size:.8rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--magenta);
  text-align:right;
}
.story-attribution cite{ font-style:normal; }

.story-media{ margin-top:32px; border-radius:14px; overflow:hidden; }
.story-media img{ width:100%; }

@media (max-width:600px){
  .story-quote{ padding-left:18px; font-size:1.05rem; }
}

/* Gallery Section */
.section.gallery {
  max-width: none;
  margin: 0;
  padding: 140px 0;
  background: var(--plum-deep, #1f0b1a);
}

.gallery-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.section.gallery .eyebrow {
  color: var(--gold, #d4af37);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.section.gallery .section-title {
  color: var(--cream, #fcf8f2);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

/* Staggered Grid with Wide Interstices */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 50px 36px; /* 50px vertical gap, 36px horizontal gap */
  margin-top: 60px;
  padding-bottom: 40px;
}

/* Gallery Item Styling */
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.5s ease, 
              border-color 0.5s ease;
}

.gallery-item:hover {
  border-color: var(--gold, #d4af37);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.7);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Overlay & Caption */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 11, 26, 0.94) 0%,
    rgba(31, 11, 26, 0.3) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.gallery-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin-bottom: 6px;
}

.gallery-caption {
  margin: 0;
  color: var(--cream, #fcf8f2);
  font-size: 1.2rem;
  font-family: var(--font-heading, Georgia, serif);
  font-style: italic;
}

/* 5-Photo Asymmetric Layout & Offsets */

/* Photo 1: Top Left Large */
.gallery-item-1 {
  grid-column: span 7;
  aspect-ratio: 3 / 4;
}

/* Photo 2: Top Right */
.gallery-item-2 {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
  margin-top: 50px;
}

/* Photo 3: Mid Left - Offset alignment */
.gallery-item-3 {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
  margin-top: -20px;
}

/* Photo 4: Mid Right Large */
.gallery-item-4 {
  grid-column: span 7;
  aspect-ratio: 3 / 4;
}

/* Photo 5: Centerpiece Hero Anchor at the Bottom */
.gallery-item-5 {
  grid-column: 3 / span 8; /* Centered in the 12-column grid */
  aspect-ratio: 4 / 5;
  margin-top: 20px;
  border-color: rgba(212, 175, 55, 0.4); /* Highlight border for centerpiece */
}

/* Hover transform adjustment to preserve offsets */
.gallery-item-1:hover { transform: translateY(-8px); }
.gallery-item-2:hover { transform: translateY(42px); }
.gallery-item-3:hover { transform: translateY(-28px); }
.gallery-item-4:hover { transform: translateY(-8px); }
.gallery-item-5:hover { transform: translateY(12px); }

/* Image Fallback */
.gallery-item.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.gallery-item.img-fallback .gallery-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.img-fallback::after {
  content: 'Add photo here';
  color: var(--cream, #fcf8f2);
  font-family: var(--font-body, sans-serif);
  opacity: 0.55;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.gallery-item.img-fallback img,
.gallery-item.img-fallback .gallery-overlay {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .section.gallery {
    padding: 80px 0;
  }

  .gallery-grid {
    gap: 24px;
    margin-top: 40px;
  }

  /* Reset offsets on mobile/tablet to single stack */
  .gallery-item-1,
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4,
  .gallery-item-5 {
    grid-column: span 12;
    aspect-ratio: 4 / 5;
    margin-top: 0 !important;
  }

  .gallery-item-1:hover,
  .gallery-item-2:hover,
  .gallery-item-3:hover,
  .gallery-item-4:hover,
  .gallery-item-5:hover {
    transform: translateY(-6px);
  }

  .gallery-overlay {
    padding: 20px;
  }
}

/* Schedule  */
.schedule-grid{
  display:flex; align-items:stretch; justify-content:center; gap:8px; margin-top:32px; flex-wrap:wrap;
}
.schedule-card{
  flex:1 1 320px; max-width:380px;
  background:#fff;
  border-radius:18px;
  padding:32px 28px;
  box-shadow:0 16px 34px rgba(58,21,51,.1);
  border-top:4px solid var(--magenta-bright);
  text-align:center;
}
.schedule-tag{
  font-family:var(--font-display); font-size:1.6rem; color:var(--gold);
}
.schedule-card h3{ margin:6px 0 10px; font-size:1.6rem; }
.schedule-venue{ font-weight:500; color:var(--magenta); margin:0 0 8px; }
.schedule-address{ opacity:.8; font-size:.92rem; margin:0 0 14px; }
.schedule-time{
  font-family:var(--font-display); font-size:1.2rem; color:var(--plum-deep); margin:0 0 14px;
}
.map-link{
  font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--magenta);
  border-bottom:1px solid var(--magenta); padding-bottom:2px;
}
.map-link:hover{ color:var(--plum-deep); border-color:var(--plum-deep); }

.schedule-connector{ display:flex; align-items:center; justify-content:center; width:30px; }
.connector-svg{ width:24px; height:120px; }
@media (max-width:820px){
  .schedule-connector{ display:none; }
}

.dress-code{
  margin-top:56px; text-align:center;
}
.dress-code h3{ font-size:1.4rem; margin-bottom:6px; }
.dress-code p{
  font-family:var(--font-display); font-size:1.5rem; color:var(--magenta); margin:0 0 14px;
}
.dress-swatches{ display:flex; justify-content:center; gap:14px; }
.swatch{
  width:38px; height:38px; border-radius:50%; box-shadow:0 4px 10px rgba(0,0,0,.15); border:2px solid #fff;
}
.swatch-onion{ background:#F7C6D9; }
.swatch-magenta{ background:var(--magenta); }
.swatch-burgundy{ background:#800002; }
.swatch-lilac{ background:#C8A2C8; }
.swatch-plum{ background:plum; }

/*  RSVP  */
.rsvp{ text-align:center; }
.rsvp-intro{ max-width:560px; margin:0 auto 32px; opacity:.85; }
.rsvp-form{
  max-width:460px; margin:0 auto; text-align:left;
  background:#fff; border-radius:20px; padding:36px;
  box-shadow:0 20px 40px rgba(58,21,51,.1);
}
.form-row{ margin-bottom:20px; }
.form-row label{
  display:block; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--plum-deep); margin-bottom:8px;
}
.form-row input{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid #E3CBDA;
  font-family:var(--font-body); font-size:1rem; background:var(--cream);
  transition:border-color .3s ease, box-shadow .3s ease;
}
.form-row input:focus{
  outline:none; border-color:var(--magenta-bright);
  box-shadow:0 0 0 3px rgba(233,30,140,.15);
}
.form-note{
  margin-top:14px; text-align:center; font-size:.9rem; min-height:1.2em; color:var(--magenta);
}

/* Livestream */
.livestream{ text-align:center; }
.livestream-intro{ max-width:560px; margin:0 auto 32px; opacity:.85; }

.livestream-card{
  max-width:460px; margin:0 auto;
  background:linear-gradient(160deg, var(--plum-deep), var(--magenta) 130%);
  border-radius:20px; padding:36px 32px;
  color:var(--text-light);
  box-shadow:0 20px 44px rgba(58,21,51,.25);
}
.livestream-icon{
  width:56px; height:56px; margin:0 auto 20px;
  display:block;
}
.livestream-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0; border-bottom:1px solid rgba(255,255,255,.18);
  flex-wrap:wrap; text-align:left;
}
.livestream-row:last-of-type{ border-bottom:none; }
.livestream-label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; opacity:.75; }
.livestream-value{ font-family:var(--font-display); font-size:1.15rem; letter-spacing:.03em; }

.livestream-join{ margin-top:24px; }

/* RSVP closed state */
.rsvp-closed{
  max-width:460px; margin:0 auto;
  background:linear-gradient(160deg, var(--plum-deep), var(--magenta) 130%);
  border-radius:20px; padding:40px 32px;
  color:var(--text-light);
  box-shadow:0 20px 44px rgba(58,21,51,.25);
}
.rsvp-closed[hidden]{ display:none; }
.rsvp-closed-icon{
  display:inline-block; font-size:1.6rem; color:var(--gold); margin-bottom:10px;
}
.rsvp-closed h3{
  color:var(--text-light); font-size:1.6rem; margin-bottom:10px;
}
.rsvp-closed p{
  margin:0; opacity:.9; font-size:.95rem; line-height:1.7;
}

/* Gifts */
.gifts{ text-align:center; }
.gifts-intro{ max-width:560px; margin:0 auto 32px; opacity:.85; }
.gift-card{
  max-width:460px; margin:0 auto;
  background:linear-gradient(160deg, var(--plum-deep), var(--magenta) 130%);
  border-radius:20px; padding:32px;
  color:var(--text-light);
  box-shadow:0 20px 44px rgba(58,21,51,.25);
  text-align:left;
}
.gift-card-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0; border-bottom:1px solid rgba(255,255,255,.18);
  flex-wrap:wrap;
}
.gift-card-row:last-of-type{ border-bottom:none; }
.gift-label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; opacity:.75; }
.gift-value{ font-family:var(--font-display); font-size:1.15rem; }
.copy-btn{
  background:var(--gold); color:var(--plum-deep); border:none; border-radius:20px;
  padding:6px 16px; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; cursor:pointer;
  transition:transform .2s ease;
}
.copy-btn:hover{ transform:translateY(-2px); }
.copy-feedback{
  margin:14px 0 0; text-align:center; font-size:.85rem; min-height:1.2em; color:var(--gold);
}

/* Footer */
.site-footer{
  background:var(--plum-deep); color:var(--text-light);
  text-align:center; padding:56px 24px 40px;
}
.footer-emblem{
  font-family:var(--font-script); font-size:2.2rem; color:var(--gold); margin-bottom:10px;
}
.site-footer p{ margin:4px 0; letter-spacing:.05em; }
.footer-note{ opacity:.65; font-size:.85rem; }
