/* ==========================================================
   Mark & Gicah — wedding site
   Palette: dusty blue (replaces the original brown)
   ========================================================== */
:root {
  /* Main Color */
  --bg-main: #FFFFFF;
  --pale: #F7FAFC;
  
  /* Secondary Colors */
  --dusty: #91acc8;      /* Updated Primary */
  --light-blue: #B3CDE0;
  --dusty-dk: #6f88a5;
  --light-dust: #b5c8d9; /* Lighter accent */
  --dark-dust: #5a7695;
  
  /* Text Colors */
  --ink: #2b3f52;        /* Dark elegant slate for text contrast */
  --ink-deep: #1a2631;
  --mist: #D9E4EC;
  
  /* Fonts - Enforcing elegant serif globally */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --pad: clamp(20px, 8vw, 120px);

}
body {
  font-family: var(--sans);
  color: var(--ink-deep);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
}

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

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

ul { 
  list-style: none; 
  padding: 0;
  margin: 0;
}

button { 
  font: inherit; 
  color: inherit; 
  cursor: pointer; 
}

:focus-visible { 
  outline: 2px solid var(--mist); 
  outline-offset: 3px; 
}

.script { 
  font-family: var(--script); 
  font-style: italic;     /* Adds the elegant slant */
  font-weight: 500; 
  line-height: 1.1; 
}

.dark { 
  background: var(--light-dust); 
  color: #fff; 
}

/* paper texture, used on dark hero + location band */
.textured { 
  position: relative; 
  background-color: var(--ink); 
  color: #fff; 
  isolation: isolate; 
}

.textured::before {
  content: ""; 
  position: absolute; 
  inset: 0; 
  z-index: -1; 
  pointer-events: none;
  opacity: .32; 
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.textured--mid { 
  background-color: var(--dusty); 
}

/* ---------- navigation ---------- */
.site-nav {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 26px var(--pad); 
  color: #fff; 
  font-family: var(--serif);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background-color: var(--light-dust); 
  padding: 16px var(--pad); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.brand { 
  font-size: .72rem; 
  letter-spacing: .3em; 
  text-transform: uppercase; 
  font-weight: 400; 
}

.site-nav ul { 
  display: flex; 
  gap: clamp(24px, 4vw, 56px); 
  font-size: .95rem; 
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; 
  font-family: var(--sans); 
  font-size: .7rem; 
  font-weight: 500;
  letter-spacing: .2em; 
  text-transform: uppercase; 
  color: #fff;
  padding: .85em 2.6em; 
  border: 1px solid currentColor; 
  border-radius: 999px;
  background: transparent; 
  transition: background .25s, color .25s;
}

.btn:hover { 
  background: #fff; 
  color: var(--ink); 
}

.btn--solid { 
  background: #fff; 
  color: var(--ink); 
  border-color: #fff; 
}

.btn--solid:hover { 
  background: var(--pale); 
}

/* ---------- monogram ---------- */
.mono { 
  display: inline-flex; 
  font-family: var(--script); 
  font-size: 4.6rem; 
  line-height: 1; 
  color: var(--mist); 
}

.mono span:last-child { 
  margin-left: -.2em; 
  margin-top: .22em; 
}

.mono--dusty { 
  color: var(--dusty); 
}

/* ---------- headings used on details page ---------- */
.serif-title {
    font-family: var(--script);
    font-style: italic;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
}

.diamond { 
  display: block; 
  width: 10px; 
  height: 10px; 
  margin: 0 auto; 
  background: var(--dusty); 
  transform: rotate(45deg); 
}

/* ==========================================================
   HOME  (index.html)
   ========================================================== */
.hero {
  position: relative; 
  min-height: 88vh; 
  display: grid; 
  place-items: center;
  text-align: center; 
  color: #fff; 
  overflow: hidden;
  background: var(--ink) center / cover no-repeat;
}

.hero--home { 
  background-image: url("images/img1.jpg"); 
}

.hero::after {
  content: ""; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 50, 63, .6), rgba(70, 105, 135, .35) 60%, rgba(34, 50, 63, .65));
}

.hero-inner { 
  position: relative; 
  z-index: 2; 
  padding: 130px 20px 80px; 
  animation: rise 1.4s ease both; 
}

.eyebrow { 
  font-size: .72rem; 
  letter-spacing: .3em; 
  text-transform: uppercase; 
  margin-bottom: 1rem; 
  font-weight: 400; 
}

.hero-names {
  font-family: var(--script);
  font-size: clamp(4.5rem, 15vw, 7rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.name-text {
  font-family: var(--script);
  font-size: inherit;
}

.name-and {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  opacity: 0.9;
  transform: translateY(2px);
}

/* ==========================================================
   MOBILE HERO FIXES
   ========================================================== */
@media (max-width: 768px) {
  .hero-inner {
    padding: 100px 15px 50px;
  }

  .hero-names {
    margin-bottom: 1.2rem;
  }

  .name-text {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
  }

  .name-and {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    transform: translateY(4px);
  }

  .hero-gallery {
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .hero-img-wrap.center {
    width: 42%;
  }

  .hero-img-wrap.side {
    width: 26%;
  }
  
  .hero-date {
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
  }
}

/* 3-Image Gallery */
.hero-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 20px);
  margin-bottom: 3rem;
  width: 100%;
  max-width: 900px;
}

.hero-img-wrap {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-wrap.center {
  width: 45%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  z-index: 2;
}

.hero-img-wrap.side {
  width: 25%;
  max-width: 220px;
  aspect-ratio: 2 / 3.5;
  z-index: 1;
}

@media (max-width: 480px) {
  .name-line {
    gap: 8px;
  }
}

.hero-date { 
  font-family: var(--serif); 
  letter-spacing: .22em; 
  text-transform: uppercase; 
  font-size: .9rem; 
  margin-bottom: 2.2rem; 
}

@keyframes rise { 
  from { opacity: 0; transform: translateY(18px); } 
  to { opacity: 1; transform: none; } 
}

/* the day */
.story { 
  padding: clamp(60px, 10vw, 130px) var(--pad); 
}

.story-grid { 
  max-width: 920px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: clamp(30px, 6vw, 90px); 
  align-items: center; 
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr; 
  }
}

.story-text { 
  text-align: center; 
  font-size: .78rem; 
}
.story-text .mono { margin-bottom: 2.2rem; }
.story-text .date { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.story-text .sub { font-size: .66rem; opacity: .9; }
.story-text .venue { font-family: var(--serif); font-size: 1.05rem; margin-top: 2rem; }
.story-text .program { margin-top: 2rem; display: grid; gap: .5rem; }
.story-text b { font-weight: 700; }

/* countdown */
.countdown {
  position: relative; 
  min-height: 78vh; 
  display: grid; 
  place-items: center; 
  text-align: center; 
  color: #fff;
  background: var(--ink) url("images/img5.jpg") center / cover no-repeat;
}

.countdown::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(34, 50, 63, .5), rgba(60, 95, 125, .15) 55%, rgba(34, 50, 63, .3)); 
}

.countdown > div { 
  position: relative; 
  z-index: 2; 
}

.countdown .script { 
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); 
  color: var(--pale); 
  margin-bottom: .3rem; 
}

.cd-row { 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  gap: clamp(10px, 2.4vw, 30px); 
}

.cd-row i { 
  font-style: normal; 
  font-family: var(--serif); 
  font-size: clamp(2.6rem, 7vw, 4.6rem); 
  line-height: 1.1; 
}

.cd-unit { 
  display: flex; 
  flex-direction: column; 
  min-width: 1.4em; 
}

.cd-unit strong { 
  font-family: var(--serif); 
  font-weight: 400; 
  font-size: clamp(2.6rem, 7vw, 4.6rem); 
  line-height: 1.1; 
  font-variant-numeric: tabular-nums; 
}

.cd-unit small { 
  font-family: var(--serif); 
  font-size: clamp(.8rem, 1.6vw, 1.05rem); 
}

.cd-unit:last-child strong { color: var(--mist); }

/* gallery */
.gallery { 
  padding: clamp(50px, 8vw, 100px) var(--pad) 40px; 
  text-align: center; 
}

.gallery .script { 
  font-size: clamp(2rem, 4vw, 2.8rem); 
  color: var(--pale); 
  margin-bottom: 1.6rem; 
}

.masonry-grid {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 16px;
  column-count: 2; 
  column-gap: 16px; 
}

.masonry-grid button {
  display: block;
  width: 100%;
  margin-bottom: 16px; 
  border: 0;
  background: none;
  padding: 0;
  break-inside: avoid; 
  overflow: hidden;
  border-radius: 6px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.masonry-grid img {
  width: 100%;
  height: auto; 
  display: block;
  transition: transform 0.5s ease;
}

.masonry-grid button:hover img {
  transform: scale(1.05); 
}

.foot-nav { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  margin-top: 1.4rem; 
}

.foot-nav .btn { 
  font-size: .6rem; 
  padding: .7em 2.4em; 
  background: #fff; 
  color: var(--ink); 
  border-color: #fff; 
}

.foot-nav .btn:hover { 
  background: var(--mist); 
  border-color: var(--mist); 
}

dialog.lightbox { 
  border: 0; 
  background: transparent; 
  max-width: 94vw; 
  max-height: 94vh; 
  margin: auto; 
}

dialog.lightbox::backdrop { 
  background: rgba(20, 32, 44, .88); 
}

dialog.lightbox img { 
  max-height: 90vh; 
  margin: auto; 
}

/* DETAILS & ATTIRE / TIMELINE */
.hero--details { 
  text-align: center; 
  padding: 130px 20px 70px; 
}

.hero--details h1 { 
  font-size: clamp(2.4rem, 5vw, 3.6rem); 
  color: var(--pale); 
}

.hero--details img { 
  width: min(520px, 82%); 
  margin: 1.4rem auto 0; 
}

.full-photo { width: 100%; margin: 0; }
.full-photo img { width: 100%; }
.full-photo--bw img { filter: grayscale(1); }

.attire { padding: clamp(50px, 7vw, 90px) var(--pad); }
.attire-group + .attire-group { margin-top: 1.8rem; }
.attire-group h3 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-bottom: .6rem; }
.attire .reminder { max-width: 620px; margin: 2.8rem auto 0; text-align: center; font-size: .8rem; line-height: 1.7; }
.attire .reminder strong { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; font-size: 1rem; }
.attire .reminder p + p { margin-top: .8rem; }

.attire-list { display: grid; gap: .7rem; margin-bottom: 0; }
.attire-list div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; font-size: .78rem; }
.attire-list dt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }

.swatches { display: flex; gap: 14px; margin-top: 1.2rem; }
.swatches i { width: 74px; height: 22px; display: block; border-radius: 4px; }
.swatches figure { display: grid; gap: .45rem; justify-items: start; margin: 0; }
.swatches figcaption { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.timeline { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.timeline .mono { margin-bottom: .6rem; }
.timeline ul { 
  max-width: 640px; 
  margin: 2.2rem auto 3rem; 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  padding: 0;
}
.timeline svg { 
  width: 54px; 
  height: 54px; 
  margin: 0 auto .7rem; 
  stroke: var(--ink); 
  fill: none; 
  stroke-width: 1.2; 
  stroke-linecap: round; 
  stroke-linejoin: round; 
}
.timeline li strong { display: block; font-size: .78rem; font-weight: 600; }
.timeline li span { font-size: .74rem; font-weight: 300; }
.timeline .diamond { margin: 0 auto 2.4rem; }
.timeline-note { max-width: 460px; margin: -1rem auto 2.6rem; font-size: .78rem; color: #4b5f72; }

.location { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.map { max-width: 720px; margin: 2rem auto 1.6rem; aspect-ratio: 16 / 8; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location strong { display: block; font-size: .95rem; font-weight: 700; }
.location span { font-size: .82rem; font-weight: 300; }
.venues { max-width: 900px; margin: 2.2rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.venue-card .map { margin: 0 0 1rem; max-width: none; aspect-ratio: 4 / 3; }
.venue-card p { font-size: .82rem; font-weight: 300; }

/* SECTIONS */
.banner-image { height: 100vh; height: 100svh; overflow: hidden; }
.banner-image img { width: 100%; height: 100%; object-fit: cover; display: block; }   

.welcome { padding: clamp(100px, 11vw, 100px) var(--pad) clamp(60px, 3vw, 60px); text-align: center; max-width: 760px; margin: 0 auto; }
.welcome h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--dusty-dk); margin-bottom: 1.4rem; }
.welcome .lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; margin-bottom: 1rem; }
.welcome p { font-size: .95rem; color: #4b5f72; max-width: 560px; margin: 0 auto; }
.welcome p.lead { max-width: none; color: var(--ink); margin-bottom: 1rem; }

.love-story { padding: clamp(60px, 9vw, 120px) var(--pad); background: var(--light-dust); }
.love-story .inner { max-width: 640px; margin: 0 auto; }
.love-story h2 { text-align: center; font-size: clamp(3rem, 7vw, 5rem); color: var(--ink-deep); }
.love-story .dek { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: .8rem 0 .4rem; }
.love-story .sub { text-align: center; font-size: .85rem; color: var(--ink-deep); margin-bottom: 2.6rem; }
.love-story p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.3rem; }
.love-story p.pull { font-style: italic; font-size: 1.3rem; line-height: 1.5; text-align: center; color: var(--ink-deep); margin: 2.2rem 0; }
.love-story .finale { text-align: center; font-family: var(--script); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.2; margin-top: 2.4rem; }

.unplugged { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.unplugged .copy { max-width: 560px; margin: 1.4rem auto 0; font-size: .9rem; line-height: 1.8; color: #3d5164; }
.unplugged .copy p + p { margin-top: 1rem; }
.unplugged .closing { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--dusty-dk); margin-top: 1.6rem; }

.faq { padding: clamp(50px, 7vw, 90px) var(--pad); background: var(--pale); }
.faq-list { max-width: 680px; margin: 2rem auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--dusty-dk); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2rem 1.2rem 0; font-size: .88rem; line-height: 1.75; color: #3d5164; margin: 0; }

.gift-sec { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.gift-sec p { max-width: 440px; margin: 1.2rem auto 0; font-size: .88rem; line-height: 1.75; color: #4b5f72; }

.contact { padding: clamp(50px, 7vw, 90px) var(--pad) clamp(40px, 6vw, 70px); text-align: center; }
.contact p { font-size: .88rem; margin: 0; }
.contact .people { display: grid; gap: .2rem; margin: 1.6rem 0 1rem; font-family: var(--serif); font-size: 1.15rem; }
.contact .nums { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; font-size: .9rem; }
.contact .nums a { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact .mono { margin-bottom: 1.6rem; }

/* MODALS & INTRO SCREEN */
dialog.rsvp-modal {
  border: 0;
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--ink);
  width: 90%;
  max-width: 500px;
  margin: auto;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

dialog.rsvp-modal::backdrop {
  background: rgba(20, 32, 44, 0.88);
}

.rsvp-modal h2 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--dusty-dk);
  margin-bottom: 20px;
  margin-top: 0;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out, visibility 1s;
}

.intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.envelope-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 20px;
}

.invite-heading {
  font-family: "Great Vibes", cursive;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.envelope-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.envelope-image:hover {
  transform: scale(1.03);
}

.invite-instruction {
  font-family: "EB Garamond", "Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--ink);
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

/* CAROUSEL & ANIMATIONS */
.story-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-left-slow 25s linear infinite; 
}

.carousel-track img {
  width: 250px; 
  height: 340px;
  object-fit: cover;
  padding-right: 20px;
  border-radius: 12px;
}

@keyframes scroll-left-slow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gift-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}
.gift-images img {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 768px) {
  .gift-images {
    flex-direction: row; 
    justify-content: center;
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
/* ==========================================================
   RSVP PAGE (rsvp.html) & MODAL FORM
   ========================================================== */
.rsvp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 120px 20px 80px;
  overflow: hidden;
  isolation: isolate;
}

.rsvp-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.rsvp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 38, 49, 0.65),
    rgba(43, 63, 82, 0.45) 55%,
    rgba(26, 38, 49, 0.75)
  );
  z-index: -1;
}

.rsvp-hero > div {
  max-width: 580px;
  width: 100%;
  animation: rise 1.2s ease both;
}

.rsvp-hero h1.script {
  font-size: clamp(3.8rem, 11vw, 6.2rem);
  margin: 0 0 1.5rem;
  color: #fff;
}

.btn--big {
  font-size: 0.8rem;
  padding: 1.1em 3.2em;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rsvp-hero .lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 0.6rem;
}

.rsvp-hero .due {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--mist);
}

.rsvp-hero .fine {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
  margin: 0;
}

/* Modal Close Button & Form Internals */
dialog.rsvp-modal {
  position: relative;
}

.rsvp-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--dusty-dk);
  padding: 4px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rsvp-modal .close-btn:hover {
  color: var(--ink-deep);
  transform: scale(1.1);
}

.rsvp-form {
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group > label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-deep);
  background: var(--pale);
  border: 1px solid var(--light-dust);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dusty-dk);
  box-shadow: 0 0 0 3px rgba(145, 172, 200, 0.25);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--ink-deep);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.rsvp-form button[type="submit"] {
  margin-top: 0.5rem;
  padding: 1em 2.6em;
  font-size: 0.75rem;
  cursor: pointer;
}

.rsvp-form button[type="submit"]:hover {
  background: var(--dark-dust) !important;
  border-color: var(--dark-dust);
}

.rsvp-success {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
}

/* ==========================================================
   RSVP PAGE (rsvp.html) & MODAL FORM
   ========================================================== */
.rsvp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 120px 20px 80px;
  overflow: hidden;
  isolation: isolate;
}

.rsvp-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.rsvp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 38, 49, 0.65),
    rgba(43, 63, 82, 0.45) 55%,
    rgba(26, 38, 49, 0.75)
  );
  z-index: -1;
}

.rsvp-hero > div {
  max-width: 580px;
  width: 100%;
  animation: rise 1.2s ease both;
}

.rsvp-hero h1.script {
  font-size: clamp(3.8rem, 11vw, 6.2rem);
  margin: 0 0 1.5rem;
  color: #fff;
}

.btn--big {
  font-size: 0.8rem;
  padding: 1.1em 3.2em;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rsvp-hero .lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 0.6rem;
}

.rsvp-hero .due {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--mist);
}

.rsvp-hero .fine {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
  margin: 0;
}

/* Modal Container */
dialog.rsvp-modal {
  position: relative;
  border: 1px solid rgba(145, 172, 200, 0.35);
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--ink-deep);
  width: min(92vw, 500px);
  max-height: 90vh;
  max-height: 90svh;
  margin: auto;
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 38px);
  box-shadow: 0 24px 60px rgba(20, 32, 44, 0.35);
  overflow-y: auto;
}

dialog.rsvp-modal::backdrop {
  background: rgba(20, 32, 44, 0.82);
  backdrop-filter: blur(4px);
}

.rsvp-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--dusty-dk);
  font-size: 1.75rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rsvp-modal .close-btn:hover {
  background: var(--pale);
  color: var(--ink-deep);
}

.rsvp-modal h2 {
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  text-align: center;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

/* Matches form.style.display = "flex" in script.js */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group > label {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-deep);
  background: var(--pale);
  border: 1px solid var(--light-dust);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--dusty-dk);
  box-shadow: 0 0 0 3px rgba(145, 172, 200, 0.28);
}

.form-group textarea {
  resize: vertical;
  min-height: 84px;
}

/* Radio Option Cards */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 11px 14px;
  background: var(--pale);
  border: 1px solid var(--light-dust);
  border-radius: 8px;
  font-size: 1.02rem;
  color: var(--ink-deep);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-group label:hover {
  border-color: var(--dusty-dk);
  background: #fff;
}

.radio-group label:has(input:checked) {
  background: rgba(145, 172, 200, 0.16);
  border-color: var(--ink);
  font-weight: 500;
}

.radio-group input[type="radio"] {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* Submit Button */
.rsvp-form button[type="submit"] {
  width: 100%;
  margin-top: 0.4rem;
  padding: 1.05em 2em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.25s ease, opacity 0.2s ease;
}

.rsvp-form button[type="submit"]:hover:not(:disabled) {
  background: var(--dark-dust) !important;
  border-color: var(--dark-dust) !important;
}

.rsvp-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Success Message */
.rsvp-success {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
}

/* ==========================================================
   WEDDING ENTOURAGE SECTION
   ========================================================== */
.entourage {
  padding: clamp(70px, 10vw, 120px) var(--pad);
  text-align: center;
  background-color: var(--ink); /* Deep slate header background */
}

.entourage-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.entourage-header .mono {
  margin: 0 auto 1.2rem;
  opacity: 0.9;
}

.entourage-header h2.script {
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  color: var(--pale);
  margin: 0;
  line-height: 1.05;
}

/* Framed Card Container (Matches peg double-border look) */
.entourage-card {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--pale); /* Soft dusty-white card interior */
  color: var(--ink-deep);
  padding: clamp(8px, 1.8vw, 14px);
  border: 1.5px solid var(--light-dust);
  box-shadow: 0 20px 50px rgba(15, 24, 34, 0.45);
}

.entourage-card-inner {
  border: 2px solid var(--ink);
  padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 56px);
  background-color: var(--pale);
}

/* Typography Inside Card */
.entourage-eyebrow {
  font-family: var(--serif);
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-dust);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.entourage-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.entourage-group {
  margin-bottom: 2rem;
}

.entourage-subtitle {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dusty-dk);
  margin: 0 0 0.65rem;
}

.entourage-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.entourage-list li {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-deep);
  font-weight: 400;
}

.entourage-divider {
  border: 0;
  height: 1px;
  background: var(--light-dust);
  max-width: 220px;
  margin: 2.6rem auto;
}

/* Responsive Grids for Sponsors & Attendants */
.entourage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.entourage-grid--roles,
.entourage-grid--three {
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.entourage-grid--roles .entourage-group,
.entourage-grid--three .entourage-group {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .entourage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .entourage-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}