:root {
  --ivory: #fbf7f0;
  --ivory-2: #f5ede1;
  --paper: #fffdf9;
  --champagne: #c8aa78;
  --champagne-dark: #9b794a;
  --ink: #332e29;
  --muted: #71695f;
  --line: rgba(155, 121, 74, .25);
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(71, 57, 41, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --script: "Parisienne", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: 76px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(251, 247, 240, .88);
  border-bottom: 1px solid rgba(155, 121, 74, .12);
  backdrop-filter: blur(18px);
}
.brand {
  font-family: var(--serif);
  letter-spacing: .18em;
  font-size: 22px;
  font-weight: 600;
}
.brand span { color: var(--champagne-dark); font-weight: 400; }
.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .03em;
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--champagne-dark);
  transition: right .25s ease;
}
.desktop-nav a:hover::after { right: 0; }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
}
.mobile-nav {
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 49;
  background: rgba(251, 247, 240, .98);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 24px;
  box-shadow: var(--shadow);
}
.mobile-nav a { display: block; padding: 10px 0; font-family: var(--serif); font-size: 20px; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image {
  background-image: url('./assets/hero.jpg');
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.03);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(27,22,17,.72) 0%, rgba(27,22,17,.43) 37%, rgba(27,22,17,.10) 66%, rgba(27,22,17,.18) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 88vw);
  margin-left: clamp(26px, 8vw, 120px);
  color: white;
  padding-top: 72px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 122px);
  font-weight: 400;
  line-height: .76;
  margin: 18px 0 26px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 35px rgba(0,0,0,.25);
}
.hero-copy h1 span { display: block; }
.hero-copy h1 em {
  display: block;
  font-family: var(--script);
  font-size: .52em;
  font-weight: 400;
  margin: .18em 0 .06em .6em;
  color: #f1dfbb;
}
.hero-rule { width: 74px; height: 1px; background: rgba(255,255,255,.65); margin: 30px 0 18px; }
.date { text-transform: uppercase; letter-spacing: .25em; font-size: 14px; margin: 0 0 6px; }
.place { text-transform: uppercase; letter-spacing: .17em; font-size: 12px; opacity: .84; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--champagne-dark);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-weight: 500;
  font-size: 11px;
}
.eyebrow.light { color: #f3dfba; }
.eyebrow.small { font-size: 10px; }
.section-pad { padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 90px); }
h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
h3 { font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1.1; margin: 6px 0 8px; }
.lead { color: var(--muted); font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }
.ornament { color: var(--champagne); font-size: 18px; margin-bottom: 8px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-light { background: rgba(255,255,255,.92); color: var(--ink); }
.button-outline-light { border-color: rgba(255,255,255,.6); color: white; background: rgba(255,255,255,.04); }
.button-gold { background: var(--champagne-dark); color: white; }
.button-gold:hover { background: #88673f; }
.button-outline { border-color: var(--champagne-dark); color: var(--champagne-dark); background: transparent; }

.invitation { text-align: center; background: var(--paper); position: relative; overflow: hidden; }
.invitation::before, .invitation::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  border: 1px solid rgba(200,170,120,.20);
  border-radius: 52% 48% 62% 38%;
  transform: rotate(34deg);
}
.invitation::before { left: -130px; top: -110px; }
.invitation::after { right: -130px; bottom: -120px; }
.invitation h2 { max-width: 880px; margin-inline: auto; }
.countdown {
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 140px));
  gap: 14px;
  justify-content: center;
}
.countdown div { background: var(--ivory-2); padding: 18px 10px; border: 1px solid rgba(155,121,74,.09); }
.countdown strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.countdown span { display: block; margin-top: 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }

.story { background: linear-gradient(180deg, #f8f1e6, #fbf8f2); }
.story-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, .9fr) minmax(220px, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; max-width: 1280px; margin: 0 auto; }
.photo-card { margin: 0; position: relative; }
.photo-card::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(155,121,74,.25); z-index: 0; }
.photo-card img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.story-copy { text-align: center; }
.story-copy p:not(.eyebrow) { color: var(--muted); }
.signature { font-family: var(--script); color: var(--champagne-dark); font-size: 34px; margin-top: 26px; }

.details { text-align: center; background: var(--paper); }
.event-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 44px auto 72px; }
.event-card { padding: 42px 34px; border: 1px solid var(--line); background: #fffdfa; box-shadow: 0 12px 38px rgba(71,57,41,.06); }
.event-icon { font-size: 28px; color: var(--champagne-dark); margin-bottom: 12px; }
.event-card p { color: var(--muted); }
.event-card dl { margin: 24px 0 26px; }
.event-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; text-align: left; padding: 10px 0; border-top: 1px solid rgba(155,121,74,.13); }
.event-card dt { text-transform: uppercase; letter-spacing: .15em; font-size: 9px; color: var(--champagne-dark); }
.event-card dd { margin: 0; font-size: 13px; }
.timeline-wrap { max-width: 1160px; margin: 0 auto; }
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7%; right: 7%; top: 19px; height: 1px; background: var(--line); }
.timeline div { position: relative; padding: 42px 10px 0; }
.timeline div::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--champagne-dark); background: var(--paper); border-radius: 50%; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); }
.timeline span { display: block; color: var(--champagne-dark); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.timeline strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.2; margin-top: 7px; }

.dress { background: #f3eadf; text-align: center; }
.dress-inner { max-width: 860px; margin: 0 auto; }
.swatches { display: flex; gap: 12px; justify-content: center; margin: 30px 0; }
.swatches span { width: 48px; height: 48px; border-radius: 50%; background: var(--swatch); border: 4px solid rgba(255,255,255,.75); box-shadow: 0 2px 10px rgba(50,45,38,.08); }

.entourage { text-align: center; background: var(--paper); }
.entourage-grid { max-width: 1080px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entourage-grid div { padding: 28px 18px; border-right: 1px solid var(--line); }
.entourage-grid div:last-child { border-right: 0; }
.entourage-grid span, .entourage-extra span { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; color: var(--champagne-dark); margin-bottom: 10px; }
.entourage-grid strong, .entourage-extra strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.full-entourage { max-width: 760px; margin: 28px auto 0; }
.full-entourage summary { list-style: none; display: inline-flex; cursor: pointer; border: 1px solid var(--champagne-dark); color: var(--champagne-dark); padding: 10px 18px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.full-entourage summary::-webkit-details-marker { display: none; }
.entourage-extra { display: grid; gap: 18px; padding-top: 28px; }

.gallery { background: #f7efe4; text-align: center; }
.gallery-grid { max-width: 1240px; margin: 42px auto 0; display: grid; grid-template-columns: 1.05fr .92fr 1.05fr .92fr 1.05fr; gap: 14px; align-items: center; }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; box-shadow: 0 10px 30px rgba(65,52,38,.10); }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .45s ease; }
.gallery-item:not(.tall) img { aspect-ratio: 4/4.25; }
.gallery-item:hover img { transform: scale(1.035); }

.rsvp { background: var(--paper); }
.rsvp-shell { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: .78fr 1.22fr; border: 1px solid var(--line); background: #fffdf9; box-shadow: var(--shadow); }
.rsvp-intro { padding: clamp(42px, 6vw, 78px); background: linear-gradient(150deg, #efe3d4, #fbf4ea); display: flex; flex-direction: column; justify-content: center; }
.rsvp-intro p:not(.eyebrow) { color: var(--muted); }
.script-note { font-family: var(--script); color: var(--champagne-dark); font-size: 28px; margin-top: 30px; }
.rsvp-form { padding: clamp(36px, 5vw, 64px); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: grid; gap: 7px; color: var(--ink); font-family: var(--serif); font-size: 16px; }
input, select, textarea { width: 100%; border: 1px solid rgba(155,121,74,.22); background: white; padding: 12px 13px; color: var(--ink); border-radius: 0; outline: none; font-family: var(--sans); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--champagne-dark); box-shadow: 0 0 0 3px rgba(155,121,74,.08); }
.rsvp-form > label { margin-top: 20px; }
.submit { width: 100%; margin-top: 22px; }
.form-note { margin: 10px 0 0; font-size: 10px; color: #8d847b; text-align: center; }

.gift-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; background: #f8f0e5; }
.gift, .faq { padding: clamp(58px, 7vw, 100px); }
.gift { text-align: center; border-right: 1px solid var(--line); }
.gift-symbol { color: var(--champagne-dark); font-size: 30px; }
.gift p:not(.eyebrow) { color: var(--muted); max-width: 540px; margin-inline: auto; }
.gift-details { margin: 20px auto 0; max-width: 540px; padding: 18px; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.accordion { margin-top: 28px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); padding: 0; }
.accordion summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--serif); font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--champagne-dark); font-family: var(--sans); }
.accordion details[open] summary::after { content: "–"; }
.accordion p { color: var(--muted); margin: -4px 0 18px; font-size: 13px; }

.closing { min-height: 440px; position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; }
.closing-image, .closing-overlay { position: absolute; inset: 0; }
.closing-image { background: url('./assets/footer-landscape.jpg') center/cover no-repeat; filter: saturate(.72); transform: scale(1.07); }
.closing-overlay { background: rgba(37,31,25,.48); }
.closing-copy { position: relative; z-index: 2; color: white; padding: 30px; }
.closing-copy h2 { font-size: clamp(48px, 7vw, 84px); margin-bottom: 4px; }
.closing-copy h2 em { font-family: var(--script); color: #efd9ae; font-weight: 400; font-size: .62em; }
.closing-copy > p:not(.eyebrow) { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.closing-copy .closing-note { text-transform: none !important; letter-spacing: .02em !important; font-family: var(--serif); font-size: 18px !important; opacity: .9; margin-top: 24px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 5vw, 70px); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; background: #f9f2e8; }

.lightbox, .success-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.lightbox::backdrop, .success-dialog::backdrop { background: rgba(26,22,18,.84); backdrop-filter: blur(8px); }
.lightbox { width: min(92vw, 920px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.lightbox-close { position: fixed; top: 22px; right: 22px; z-index: 3; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: white; padding: 9px 13px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; cursor: pointer; }
.success-dialog { width: min(92vw, 520px); }
.success-inner { background: var(--paper); padding: 54px 42px; text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.success-inner p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-copy { margin-left: 7vw; width: 66vw; }
  .story-grid { grid-template-columns: 1fr 1.1fr; }
  .story-grid .right { display: none; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px 0; }
  .timeline::before { display: none; }
  .timeline div { padding-top: 28px; }
  .timeline div::before { top: 6px; }
  .entourage-grid { grid-template-columns: repeat(2, 1fr); }
  .entourage-grid div:nth-child(2) { border-right: 0; }
  .entourage-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(4), .gallery-item:nth-child(5) { display: none; }
  .rsvp-shell { grid-template-columns: 1fr; }
  .gift-faq { grid-template-columns: 1fr; }
  .gift { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding-inline: 18px; }
  .mobile-nav { top: 64px; }
  section { scroll-margin-top: 68px; }

  /* Mobile hero: keep both faces visible and reduce the oversized crop. */
  .hero { min-height: 82svh; }
  .hero-image { background-position: 49% center; transform: scale(1.01); }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,17,14,.18), rgba(20,17,14,.40) 46%, rgba(20,17,14,.76)); }
  .hero-copy { width: auto; margin: 0; padding: 0 20px 42px; align-self: end; text-align: center; }
  .hero-copy h1 { font-size: clamp(52px, 16.5vw, 82px); line-height: .82; margin-bottom: 20px; }
  .hero-copy h1 em { margin-left: 0; }
  .hero-rule { margin: 24px auto 16px; }
  .hero-actions { justify-content: center; margin-top: 26px; }
  .date { letter-spacing: .16em; }

  /* Keep the luxury whitespace, but remove unnecessary vertical dead zones. */
  .section-pad { padding: 56px 20px; }
  .invitation.section-pad { padding-top: 60px; padding-bottom: 60px; }
  .countdown { grid-template-columns: repeat(2, minmax(110px, 1fr)); max-width: 340px; margin-top: 34px; }

  .story-grid { display: block; }
  .story-copy { padding: 34px 4px 0; }
  .story-grid .right { display: block; margin-top: 30px; }
  .photo-card img { aspect-ratio: 5/6; }

  .event-cards { grid-template-columns: 1fr; margin-top: 34px; margin-bottom: 48px; }
  .event-card { padding: 30px 22px; }
  .event-card dl div { grid-template-columns: 70px 1fr; }

  /* A true vertical event timeline is easier to scan on a phone. */
  .timeline { display: block; max-width: 310px; margin: 28px auto 0; text-align: left; }
  .timeline::before { display: block; left: 17px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline div { padding: 0 0 24px 48px; min-height: 52px; }
  .timeline div:last-child { padding-bottom: 0; }
  .timeline div::before { top: 7px; left: 17px; transform: translateX(-50%); }
  .timeline span { font-size: 10px; }
  .timeline strong { font-size: 18px; margin-top: 3px; }

  .swatches { gap: 8px; margin: 24px 0; }
  .swatches span { width: 34px; height: 34px; border-width: 3px; }

  /* Two compact columns avoid making four primary entourage entries feel endless. */
  .entourage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
  .entourage-grid div { padding: 20px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .entourage-grid div:nth-child(2n) { border-right: 0; }
  .entourage-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .entourage-grid strong { font-size: 16px; line-height: 1.25; }
  .full-entourage { margin-top: 22px; }

  /* Show the complete clean photo set instead of hiding gallery items on mobile. */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
  .gallery-item:nth-child(4), .gallery-item:nth-child(5) { display: block; }
  .gallery-item:nth-child(5) { grid-column: 1 / -1; }
  .gallery-item img,
  .gallery-item:not(.tall) img { aspect-ratio: 4/5; }
  .gallery-item:nth-child(5) img { aspect-ratio: 16/10; object-position: center 42%; }

  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .rsvp-form { padding: 30px 20px; }
  .rsvp-intro { padding: 36px 24px; }
  .gift, .faq { padding: 50px 22px; }
  .closing { min-height: 340px; }
  .footer { flex-direction: column; text-align: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
