/* ==========================================================================
   Justin & Jillian — global stylesheet
   One coordinated stationery suite: tokens first, then base, components,
   and page sections.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ivory: #F8F4EC;
  --ivory-deep: #EFE8DB;
  --powder: #C3CFDD;
  --powder-soft: #DCE4EE;
  --harbor: #375275;
  --harbor-deep: #26405F;
  --sea: #2E5D8C;
  --hairline: #D3DBE5;
  --muted: #5C6F88;          /* deepened from #6B7F99 for AA on ivory */
  --white: #FFFFFF;
  --linen: #FBFAF7;
  --dusty: #57708C;          /* dusty band; ivory text passes AA (4.7:1) */
  --gold: #B8975A;

  /* Type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.25rem, 2.2rem + 5.4vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --fs-script-xl: clamp(3.5rem, 2.4rem + 5.5vw, 7.5rem);
  --fs-script-l: clamp(2.5rem, 2rem + 2.6vw, 4.25rem);
  --fs-script-m: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
  --fs-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);   /* 17–19px */
  --fs-small: .9375rem;
  --fs-eyebrow: .8125rem;

  --track-eyebrow: .26em;
  --track-caps: .1em;

  /* Spacing (4/8/12/16/24/32/48/64/96/128) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 5vw + 40px, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  /* Shape & depth */
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow-soft: 0 10px 30px rgba(38, 64, 95, .08);
  --shadow-paper: 0 1px 1px rgba(38, 64, 95, .06), 0 6px 14px rgba(38, 64, 95, .10), 0 24px 48px rgba(38, 64, 95, .14);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-reveal: 650ms;

  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--harbor);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* very subtle paper grain on ivory */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--harbor-deep); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--harbor); color: var(--ivory); padding: 12px 20px; border-radius: var(--radius-s);
  font-size: var(--fs-small); text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 400;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; line-height: 1.5;
}
.caps {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--track-caps); line-height: 1.1;
}
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 1.15; }
.display { font-size: var(--fs-display); }
.placeholder { color: var(--muted); font-style: italic; }
.on-dark .placeholder { color: inherit; opacity: .85; }
.center { text-align: center; }
.prose { max-width: 65ch; }
.prose p + p { margin-top: 1.1em; }

/* Section header pattern: eyebrow → title → divider */
.section-head { text-align: center; margin-bottom: var(--s-7); }
.section-head .eyebrow { display: block; margin-bottom: var(--s-3); }
.section-head .title-caps { font-family: var(--font-display); font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; }
.section-head .title-script { font-family: var(--font-script); font-size: var(--fs-script-l); line-height: 1.1; }
.divider { display: block; margin: var(--s-5) auto 0; width: 120px; height: 14px; color: var(--powder); }
.on-dark .divider { color: currentColor; opacity: .6; }

/* Mixed caps + script title ("OUR WEDDING timeline") */
.mixed-title { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mixed-title .caps { font-size: var(--fs-h1); letter-spacing: .08em; }
.mixed-title .script { font-size: var(--fs-script-l); margin-top: -.18em; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-white { background: var(--white); }
.bg-dusty { background: var(--dusty); color: var(--ivory); }
.bg-harbor { background: var(--harbor-deep); color: var(--ivory); }
.bg-linen {
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(55, 82, 117, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(55, 82, 117, .018) 0 1px, transparent 1px 4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .21 0 0 0 0 .32 0 0 0 0 .46 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 14px 28px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: .875rem; font-weight: 400; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1px solid var(--harbor); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--harbor); color: var(--ivory); }
.btn-primary:hover { background: var(--harbor-deep); border-color: var(--harbor-deep); color: var(--ivory); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--harbor); }
.btn-secondary:hover { background: var(--harbor); color: var(--ivory); transform: translateY(-1px); }
.on-dark .btn-secondary { color: var(--ivory); border-color: rgba(248, 244, 236, .85); }
.on-dark .btn-secondary:hover { background: var(--ivory); color: var(--harbor-deep); border-color: var(--ivory); }
.btn-pill { border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; }
.back-top { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }

/* ---------- Monogram (logo used as a mask so it takes any token color) ---------- */
.monogram {
  display: inline-block; width: 44px; aspect-ratio: 1; background-color: currentColor;
  -webkit-mask: url("../img/monogram.png") center / contain no-repeat;
  mask: url("../img/monogram.png") center / contain no-repeat;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  color: var(--harbor);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid, .site-header.scrolled {
  background: rgba(248, 244, 236, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
}
/* overlay mode: header floats over the hero */
.has-overlay-header .site-header { position: fixed; left: 0; right: 0; }
.has-overlay-header .site-header:not(.scrolled) { color: var(--ivory); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { color: inherit; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.brand .monogram { width: 46px; }
.nav-links { display: none; list-style: none; padding: 0; margin: 0; align-items: center; gap: clamp(16px, 1.9vw, 32px); }
.nav-links a {
  color: inherit; text-decoration: none; font-family: var(--font-display); font-size: .8125rem;
  letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; display: inline-block; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-rsvp {
  color: inherit; border: 1px solid currentColor; border-radius: 999px; text-decoration: none;
  font-family: var(--font-body); font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase;
  min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center;
  transition: background-color .2s ease, color .2s ease;
}
.nav-rsvp:hover { background: var(--harbor); border-color: var(--harbor); color: var(--ivory); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.menu-toggle {
  color: inherit; background: none; border: 0; width: 48px; height: 48px; display: inline-grid; place-items: center; cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }
@media (min-width: 1180px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ivory); color: var(--harbor);
  display: flex; flex-direction: column; padding: 16px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.mobile-menu .menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mobile-menu nav { flex: 1; display: flex; align-items: center; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mobile-menu ul a {
  display: block; padding: 10px 0; color: var(--harbor); text-decoration: none;
  font-family: var(--font-display); font-size: clamp(1.75rem, 7vw, 2.5rem); text-transform: uppercase; letter-spacing: .06em; line-height: 1.2;
}
.mobile-menu ul a[aria-current="page"] { color: var(--sea); }
.mobile-menu .menu-foot { text-align: center; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Footer band ---------- */
.site-footer { background: var(--dusty); color: var(--ivory); padding: var(--s-8) 0 var(--s-6); }
.footer-mono { display: flex; justify-content: center; margin-bottom: var(--s-5); }
.footer-mono .monogram { width: 54px; }
.footer-band {
  display: grid; gap: var(--s-4); text-align: center; align-items: center;
}
.footer-band .f-date, .footer-band .f-place { font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; }
.footer-band .f-names { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.footer-links { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.footer-links a { color: var(--ivory); text-decoration: none; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; display: inline-block; padding: 12px 0; }
.footer-links a:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .footer-band { grid-template-columns: 1fr auto 1fr; text-align: initial; }
  .footer-band .f-date { justify-self: start; }
  .footer-band .f-place { justify-self: end; text-align: right; }
  .footer-band .f-place span { display: block; }
  .footer-band .f-place .dot { display: none; }
}

/* ---------- Photos ---------- */
.frame {
  background: var(--white); padding: 8px; border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-arch { border-radius: 999px 999px 0 0; padding: 8px; }
.frame-arch img { border-radius: 999px 999px 0 0; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-11 { aspect-ratio: 1; }
.ratio-45 > img, .ratio-32 > img, .ratio-34 > img, .ratio-11 > img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  background: var(--powder-soft); display: grid; place-items: center; color: var(--muted);
  font-size: var(--fs-small); letter-spacing: .04em; text-align: center; padding: var(--s-4);
}
.bleed { position: relative; overflow: hidden; }
.bleed > img, .bleed > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reveal (one-time fade-up) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.fade-in-load { animation: fadeUp 600ms var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   HOME
   ========================================================================== */

/* Hero: full-bleed on phones, stationery split on desktop */
.hero-home { position: relative; min-height: 100svh; display: grid; }
.hero-home .hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-home .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-home .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38, 64, 95, .62) 0%, rgba(38, 64, 95, .34) 38%, rgba(38, 64, 95, 0) 56%);
}
.hero-home .hero-text {
  position: relative; z-index: 1; color: var(--ivory); text-align: center;
  align-self: start; padding: calc(var(--header-h) + 8px) var(--gutter) 0;
}
.hero-welcome { display: inline-block; padding: 4px 8px; min-height: 44px; color: inherit; text-decoration: none; font-family: var(--font-script); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.2; }
.hero-welcome:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.hero-names { display: flex; flex-direction: column; align-items: center; margin: .1em 0 .3em; font-weight: 400; font-size: clamp(3.1rem, 2.2rem + 4.6vw, 5.75rem); line-height: .95; }
.hero-names .name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.hero-names .amp { font-family: var(--font-script); font-size: 1.15em; line-height: 1; margin: -.3em 0 -.38em; opacity: .9; }
.hero-meta { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1.9; }
.hero-meta span { display: block; }
.hero-meta .dot { display: none; }
.hero-btn { margin-top: var(--s-4); color: var(--ivory); border-color: rgba(248, 244, 236, .9); background: transparent; }
.hero-btn:hover { background: var(--ivory); color: var(--harbor-deep); border-color: var(--ivory); }

@media (max-height: 700px) and (max-width: 899px) {
  .hero-names { font-size: 2.9rem; }
  .hero-welcome { font-size: 1.7rem; }
}

/* Desktop: the wide panorama fills the screen; the couple sits left of
   center and the names are set in navy over the open sky and sand. */
@media (min-width: 900px) {
  /* keep roughly the panorama's own shape so the couple stays left and the open beach stays right */
  .hero-home { min-height: max(520px, min(100svh, 50vw)); grid-template-columns: 1fr minmax(0, 46%); }
  .hero-home .hero-photo img { object-position: 100% 50%; }
  .hero-home .hero-photo::after {
    background: radial-gradient(ellipse 46% 70% at 77% 50%, rgba(248, 244, 236, .62) 0%, rgba(248, 244, 236, .32) 55%, rgba(248, 244, 236, 0) 100%);
  }
  .hero-home .hero-text {
    grid-column: 2; grid-row: 1; color: var(--harbor-deep); align-self: center;
    padding: calc(var(--header-h) + 8px) clamp(24px, 4vw, 72px) 64px 0;
  }
  .hero-names { font-size: clamp(3.4rem, 1.6rem + 3.6vw, 5.5rem); }
  .hero-meta { color: var(--harbor-deep); }
  .hero-meta span { display: inline; }
  .hero-meta .m-date { display: block; }
  .hero-meta .dot { display: inline; }
  .hero-btn { color: var(--harbor-deep); border-color: var(--harbor-deep); }
  .hero-btn:hover { background: var(--harbor-deep); color: var(--ivory); border-color: var(--harbor-deep); }
  /* header over a split hero: navy on ivory, readable over the pale sky */
  .home.has-overlay-header .site-header:not(.scrolled) { color: var(--harbor); }
}

/* Embossed welcome on linen */
.emboss-section { overflow: hidden; text-align: center; }

.emboss-content { position: relative; z-index: 1; text-align: center; }
/* Blind-embossed title: paper-colored letters raised by a highlight and a soft shadow */
.emboss-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.6rem, 1.6rem + 8vw, 9.5rem); line-height: 1.05; }
.emboss-title a {
  color: #F2EFE9; text-decoration: none;
  text-shadow: -1px -1px 0 #FFFFFF, 1px 1px 1px rgba(38, 64, 95, .30), 2px 3px 8px rgba(38, 64, 95, .08);
}
.emboss-title a:hover { color: #ECE7DE; }
.emboss-content .lead { margin-top: var(--s-5); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
.emboss-content .sub { margin-top: var(--s-3); font-style: italic; color: var(--muted); }

/* Stationery collage over a photo */
.collage { position: relative; display: grid; }
.collage .collage-photo { position: relative; min-height: 420px; overflow: hidden; }
.collage .collage-photo img, .collage .collage-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 80%; }
.collage .stack { position: relative; padding: 0 var(--gutter) var(--s-8); margin-top: -90px; display: grid; justify-items: center; }
.collage .collage-photo + .stack { z-index: 2; }
@media (min-width: 900px) {
  .collage { min-height: 760px; }
  .collage .collage-photo { position: absolute; inset: 0; min-height: 0; }
  /* keep the photo's crop proportional to the width so heads never slide under the menu */
  .collage.collage-left { min-height: max(640px, 52vw); }
  .collage-left .collage-photo img { object-position: 50% 62%; }
  .collage.collage-left .stack { justify-items: start; }
  .collage.collage-left .stack-inner { margin-right: 0; margin-left: clamp(0px, 6vw, 120px); }
  .collage .stack { position: relative; margin: 0; padding: var(--s-8) var(--gutter); align-self: center; justify-items: end; }
  .collage .stack-inner { margin-right: clamp(0px, 6vw, 120px); }
}
.stack-inner { position: relative; width: min(100%, 440px); }
.envelope {
  position: relative; width: 100%; aspect-ratio: 1.42; background: var(--powder); border-radius: 3px;
  box-shadow: var(--shadow-paper);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
}
.envelope::before { /* flap */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56%;
  background: linear-gradient(180deg, #CAD5E2, #BCC9D8);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 2px rgba(38, 64, 95, .12));
}
.envelope .press { /* monogram blind-pressed on the flap */
  position: absolute; left: 50%; top: 22%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -30%);
}
.envelope .press span {
  position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("../img/monogram.png") center / contain no-repeat; mask: url("../img/monogram.png") center / contain no-repeat;
}
.envelope .press .hi { color: rgba(255, 255, 255, .55); transform: translate(-1px, -1px); }
.envelope .press .lo { color: rgba(38, 64, 95, .22); transform: translate(1px, 1px); }
.envelope .press .face { color: #BFCBDA; }
.card {
  position: relative; background: var(--ivory); border-radius: 2px; box-shadow: var(--shadow-paper);
  text-align: center; padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 40px);
}
.card .shell-icon { width: 30px; height: 30px; margin: 0 auto var(--s-3); color: var(--gold); }
.card .script-head { font-family: var(--font-script); font-size: var(--fs-script-l); line-height: 1.05; }
.card p { margin-top: var(--s-3); }
.card .btn { margin-top: var(--s-5); }
.stack-inner .envelope { width: 92%; margin-left: auto; transform: rotate(3deg); }
.stack-inner .card { width: 90%; margin-top: -42%; transform: rotate(-1.5deg); }

/* Quiet countdown */
.countdown-section { background: var(--white); text-align: center; }
.countdown-section .kicker { font-family: var(--font-script); font-size: var(--fs-script-m); line-height: 1.2; display: block; }
.countdown-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); margin-top: var(--s-2); }
.countdown {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4);
  max-width: 900px; margin: var(--s-7) auto 0; list-style: none; padding: 0;
}
.countdown .num {
  display: block; font-family: var(--font-display); font-weight: 400; font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 7rem); line-height: 1; letter-spacing: .02em;
}
.countdown .unit { display: block; margin-top: var(--s-3); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.countdown-note { margin-top: var(--s-7); font-style: italic; color: var(--muted); }

/* "The Details" teaser */
.details-teaser { position: relative; min-height: clamp(520px, 70vw, 760px); display: grid; place-items: center; overflow: hidden; }
.details-teaser > video, .details-teaser > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.details-teaser::after { content: ""; position: absolute; inset: 0; background: rgba(38, 64, 95, .18); }

/* Triptych */
.triptych { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.triptych::-webkit-scrollbar { display: none; }
.triptych figure { scroll-snap-align: center; aspect-ratio: 2 / 3; overflow: hidden; }
.triptych img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .triptych { grid-auto-flow: initial; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.story-teaser { padding-bottom: 0; }
.story-teaser .container-narrow { text-align: center; margin-bottom: var(--s-7); }
.story-teaser .first-line { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); margin-top: var(--s-4); }
.story-teaser .btn { margin-top: var(--s-5); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; min-height: clamp(440px, 72svh, 720px); display: grid; align-items: end; overflow: hidden; color: var(--ivory); }
.page-hero > img, .page-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 35, 55, .45) 0%, rgba(20, 35, 55, .12) 40%, rgba(20, 35, 55, .5) 100%); }
.page-hero .inner { position: relative; z-index: 1; text-align: center; padding: calc(var(--header-h) + 24px) var(--gutter) clamp(40px, 7vw, 88px); width: 100%; }
.page-hero .back { color: var(--ivory); text-decoration: none; font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.page-hero .back:hover { text-decoration: underline; }
.page-hero .eyebrow { display: block; margin-top: var(--s-4); }
.page-hero h1 { font-family: var(--font-script); font-size: var(--fs-script-xl); line-height: 1; text-shadow: 0 2px 24px rgba(10, 20, 35, .35); }
.page-hero .eyebrow + h1 { margin-top: -.05em; }
.grain::before { /* soft film grain on inner heroes */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Invitation & RSVP ---------- */
.invite-open { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px)); }
.invite-grid { display: grid; gap: var(--s-7); align-items: center; }
.invite-photos { position: relative; padding-bottom: 40%; }
.invite-photos .lead-photo { width: 88%; }
.invite-photos .support-photo { position: absolute; right: 0; bottom: 0; width: 42%; }
.invite-text { text-align: center; }
.invite-text .names { font-family: var(--font-display); font-size: var(--fs-display); text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.invite-text .names .amp { display: block; font-family: var(--font-script); text-transform: none; font-size: .9em; line-height: .8; margin: -.12em 0 -.06em; }
.invite-text .welcome { font-family: var(--font-script); font-size: var(--fs-script-m); margin-top: var(--s-5); line-height: 1.2; }
.invite-text .when { margin-top: var(--s-5); display: grid; gap: 2px; }
.invite-text .when .date { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: .14em; }
.invite-text .when .month, .invite-text .where span { font-size: .875rem; letter-spacing: .24em; text-transform: uppercase; }
.invite-text .where { margin-top: var(--s-4); display: grid; gap: 2px; }
.invite-text .actions { margin-top: var(--s-6); display: grid; gap: var(--s-3); justify-items: center; }
.tap-rsvp { display: inline-grid; gap: 2px; padding: 16px 40px; }
.tap-rsvp .l1 { font-size: .75rem; letter-spacing: .3em; }
.tap-rsvp .l2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .24em; }
@media (min-width: 900px) {
  .invite-grid { grid-template-columns: 6fr 5fr; gap: clamp(48px, 6vw, 96px); }
}

.landscape-photo { height: clamp(320px, 60vw, 760px); }
.landscape-photo img { object-position: 50% 60%; }

.rsvp-card {
  background: var(--powder-soft); border-radius: var(--radius-m); max-width: 640px; margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px); position: relative;
}
.rsvp-card .section-head { margin-bottom: var(--s-6); }
.field { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.field > label, .field > legend { display: block; font-size: 1rem; font-weight: 500; color: var(--harbor-deep); margin-bottom: var(--s-3); padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 1.0625rem; color: var(--harbor-deep);
  background: var(--white); border: 1px solid #B4C2D3; border-radius: var(--radius-s);
}
.input:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
textarea.input { min-height: 132px; resize: vertical; }
.input-number { max-width: 160px; }
.choices { display: grid; gap: var(--s-3); }
.choices.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choices.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer;
  background: var(--white); border: 1px solid #B4C2D3; border-radius: var(--radius-s); line-height: 1.35;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--harbor);
  background: var(--white); transition: box-shadow .15s ease;
}
.choice input:checked + span { border-color: var(--harbor); background: #F3F6FA; box-shadow: inset 0 0 0 1px var(--harbor); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--harbor); }
.choice input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.choice span:hover { border-color: var(--harbor); }
.form-actions { text-align: center; margin-top: var(--s-6); }
.form-actions .btn { min-width: 220px; }
.form-status { margin-top: var(--s-4); text-align: center; min-height: 1.5em; }
.form-status.error { color: #8A2E2E; }
.rsvp-done { text-align: center; padding: var(--s-6) 0; }
.rsvp-done .check { width: 56px; height: 56px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--harbor); font-size: 1.5rem; }
.rsvp-done p { font-family: var(--font-script); font-size: var(--fs-script-m); line-height: 1.2; }

/* ---------- Our Story ---------- */
.story-flow { display: grid; gap: clamp(48px, 7vw, 112px); }
.story-row { display: grid; gap: var(--s-6); align-items: center; }
.story-row .prose p + p { margin-top: 1.1em; }
.story-row .photo { width: min(100%, 440px); justify-self: center; }
@media (min-width: 900px) {
  .story-row { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 96px); }
  .story-row.flip { grid-template-columns: 5fr 7fr; }
  .story-row.flip .photo { order: -1; }
}
.story-intro { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.35; text-align: center; max-width: 30ch; margin-inline: auto; }
.pull { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; border-left: 1px solid var(--powder); padding-left: var(--s-5); }
.story-close { text-align: center; }

/* ---------- Timeline ---------- */
.timeline-band { background: var(--dusty); color: var(--ivory); }
/* Vertical timeline: one continuous line, an illustrated node per event.
   Phones: line on the left, text to the right.
   Desktop: line in the center, time and event alternate sides. */
.tl { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; position: relative; }
.tl::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 39px; width: 1px;
  background: linear-gradient(180deg, rgba(248, 244, 236, 0), rgba(248, 244, 236, .7) 6%, rgba(248, 244, 236, .7) 94%, rgba(248, 244, 236, 0));
}
.tl-item {
  position: relative; display: grid; grid-template-columns: 80px 1fr; column-gap: var(--s-5);
  grid-template-areas: "node time" "node what"; align-items: center; padding-block: clamp(18px, 3vw, 28px);
}
.tl-node {
  grid-area: node; justify-self: center; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dusty); border: 1px solid rgba(248, 244, 236, .7);
  box-shadow: 0 0 0 6px var(--dusty);
}
.tl-node svg { width: 58px; height: 58px; color: var(--ivory); }
.tl-time { grid-area: time; align-self: end; font-family: var(--font-display); font-size: clamp(1rem, .9rem + .4vw, 1.2rem); letter-spacing: .2em; text-transform: uppercase; }
.tl-what { grid-area: what; align-self: start; font-family: var(--font-script); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1.15; }

@media (min-width: 760px) {
  .tl::before { left: 50%; }
  .tl-item {
    grid-template-columns: 1fr 120px 1fr; column-gap: clamp(24px, 4vw, 48px);
    grid-template-areas: "time node what";
  }
  .tl-node { width: 112px; height: 112px; }
  .tl-node svg { width: 80px; height: 80px; }
  .tl-time, .tl-what { align-self: center; }
  .tl-time { justify-self: end; text-align: right; }
  .tl-what { justify-self: start; text-align: left; }
  .tl-item:nth-child(even) { grid-template-areas: "what node time"; }
  .tl-item:nth-child(even) .tl-time { justify-self: start; text-align: left; }
  .tl-item:nth-child(even) .tl-what { justify-self: end; text-align: right; }
}
.timeline-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); }

/* ---------- Wedding party ---------- */
.party-groups { display: grid; gap: var(--s-8); }
.party-group h2 { text-align: center; margin-bottom: var(--s-6); }
.party-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(12px, 3vw, 32px); }
@media (min-width: 640px) { .party-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .party-groups { grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 80px); }
}
.person { text-align: center; }
.person .frame-arch { aspect-ratio: 4 / 5; }
.person .frame-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.person figcaption { margin-top: var(--s-4); }
.person .pname { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.625rem); line-height: 1.2; }
.person .prole { display: block; margin-top: 4px; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Travel & Stay ---------- */
.destination { position: relative; overflow: hidden; color: var(--ivory); text-align: center; }
.destination > video, .destination > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destination::after { content: ""; position: absolute; inset: 0; background: rgba(20, 35, 55, .58); }
.destination .container { position: relative; z-index: 1; }
.destination h2 { font-family: var(--font-script); font-size: var(--fs-script-l); line-height: 1.1; }
.destination .btn-row { margin-top: var(--s-6); }
.hotels { display: grid; gap: var(--s-6); }
.hotel-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-m);
  padding: clamp(24px, 4vw, 48px); scroll-margin-top: calc(var(--header-h) + 16px);
}
.hotel-card .eyebrow { color: var(--muted); display: block; margin-bottom: var(--s-2); }
.hotel-card h3 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.15; }
.hotel-card .addr { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s-3); }
.hotel-card .addr svg { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--sea); }
.hotel-card .drive { margin-top: var(--s-2); color: var(--muted); }
.hotel-card .body { margin-top: var(--s-5); }
.hotel-card .body p + p { margin-top: 1em; }
.hotel-card .contact { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hotel-card .contact .btn { text-transform: none; letter-spacing: .02em; font-size: .9375rem; max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
.hotel-card .contact .btn .lbl { text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; }
.hotel-card .group-code { margin-top: var(--s-3); font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; }
.hotel-card .group-code .placeholder { text-transform: none; letter-spacing: .02em; font-size: 1rem; }
.hotel-card h4 { font-family: var(--font-display); font-size: 1.35rem; margin-top: var(--s-6); margin-bottom: var(--s-3); }
.other-grid { display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .other-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.other-grid .hotel-card { padding: clamp(22px, 3vw, 36px); }
.other-grid h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.rate-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 4px; }
.rate-list li { font-variant-numeric: tabular-nums; }

/* rate table: real table on wide screens, stacked blocks on narrow */
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.rates thead th { background: var(--powder-soft); font-weight: 500; font-size: .9375rem; color: var(--harbor-deep); }
.rates td.price { text-align: right; }
.rates thead th.price { text-align: right; }
.rates tbody th { font-weight: 500; }
@media (max-width: 620px) {
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; }
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates tr { border: 1px solid var(--hairline); border-radius: var(--radius-s); margin-bottom: var(--s-4); overflow: hidden; }
  .rates tbody th { background: var(--powder-soft); border-bottom: 0; }
  .rates td { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hairline); }
  .rates td:last-child { border-bottom: 0; }
  .rates td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}

/* ---------- FAQ ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 860px) { .photo-strip { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.faq-list { display: grid; gap: clamp(40px, 5vw, 64px); text-align: center; }
.faq-list .q { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.25; letter-spacing: .01em; }
.faq-list .a { margin-top: var(--s-3); letter-spacing: .02em; max-width: 62ch; margin-inline: auto; }
.faq-intro { text-align: center; max-width: 40ch; margin: var(--s-4) auto 0; }
.glance-card {
  background: var(--powder); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 48px);
  max-width: 760px; margin-inline: auto;
}
.glance-card h2 { text-align: center; font-family: var(--font-script); font-size: var(--fs-script-l); line-height: 1.1; margin-bottom: var(--s-5); }
.glance-rows { display: grid; }
.glance-rows > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(55, 82, 117, .25); }
.glance-rows > div:first-child { border-top: 0; }
.glance-rows dt { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--harbor-deep); }
.glance-rows dd { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.glance-rows dd .placeholder { color: var(--harbor-deep); opacity: .8; font-family: var(--font-body); font-size: 1.0625rem; }
@media (min-width: 640px) {
  .glance-rows > div { grid-template-columns: 160px 1fr; align-items: baseline; gap: var(--s-5); }
}
.know-grid { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .know-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.know { text-align: center; }
.know svg { width: 52px; height: 52px; margin: 0 auto var(--s-3); color: var(--harbor); }
.know h3 { font-family: var(--font-script); font-size: var(--fs-script-m); line-height: 1.15; }
.know p { margin-top: var(--s-3); max-width: 34ch; margin-inline: auto; }

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


.closing .card .script-head { font-size: var(--fs-script-m); line-height: 1.2; }

/* "The Details": a single tilted card over the harbor video */
.details-card {
  position: relative; z-index: 1; display: block; width: min(82vw, 380px); color: var(--harbor);
  text-decoration: none; transform: rotate(-5deg); padding: 44px 28px 36px;
  transition: transform .3s var(--ease-out);
}
.details-card:hover { color: var(--harbor); transform: rotate(-4deg) translateY(-4px); }
.details-card .script-head { display: block; font-size: clamp(2.75rem, 2.2rem + 2.5vw, 4rem); }
.details-card .eyebrow { display: block; margin-top: var(--s-3); }

/* ==========================================================================
   Review pass (UI/UX Pro Max + 21st.dev patterns)
   ========================================================================== */

/* RSVP form: required marks, inline errors, sending state */
.req { color: var(--sea); margin-left: 2px; }
.req-note { text-align: center; font-size: var(--fs-small); color: var(--muted); margin: calc(-1 * var(--s-4)) 0 var(--s-5); }
.req-note > span:first-child { color: var(--sea); margin-right: 4px; }
.field-error { margin-top: var(--s-2); font-size: .9375rem; color: #8A2E2E; display: flex; gap: 6px; align-items: center; }
.field-error[hidden] { display: none; }
.field-error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.input[aria-invalid="true"] { border-color: #8A2E2E; box-shadow: inset 0 0 0 1px #8A2E2E; }
fieldset.has-error .choice span { border-color: #C9A3A3; }
.attending-only[hidden] { display: none; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(248, 244, 236, .35); border-top-color: var(--ivory); }
.btn.is-sending .spinner { display: inline-block; animation: spin .8s linear infinite; }
.btn.is-sending .btn-label { opacity: .75; }
.btn[disabled] { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Background video pause/play */
.video-toggle {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ivory); background: rgba(20, 35, 55, .35); border: 1px solid rgba(248, 244, 236, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s ease;
}
.video-toggle:hover { background: rgba(20, 35, 55, .55); }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle[hidden] { display: none; }

/* Timeline line that draws itself */
.tl::before { opacity: .35; }
.tl::after {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 39px; width: 1px; background: var(--ivory);
  transform-origin: top; transform: scaleY(var(--tl-progress, 1)); pointer-events: none;
}
@media (min-width: 760px) { .tl::after { left: 50%; } }
.tl-node { position: relative; z-index: 1; }

/* Tap-to-enlarge photos */
[data-gallery] figure, [data-gallery] .frame { position: relative; }
.zoom-hit {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent; cursor: zoom-in;
}
.zoom-hit:focus-visible { outline: 2px solid var(--sea); outline-offset: -4px; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 32, 48, .94); color: var(--ivory);
}
.lightbox::backdrop { background: rgba(20, 32, 48, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; padding: 64px 16px 56px; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-img { max-width: min(100%, 1200px); max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ivory); background: rgba(248, 244, 236, .08); border: 1px solid rgba(248, 244, 236, .4);
}
.lb-btn:hover { background: rgba(248, 244, 236, .18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .8125rem; letter-spacing: .24em; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* Hotel addresses open directions */
.hotel-card .addr a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 4px; }
.hotel-card .addr a:hover { text-decoration-color: currentColor; }

/* Powder-blue card stock (welcome + registry) */
.bg-powder-paper {
  background-color: #D9E2EC;
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(0deg, rgba(38, 64, 95, .03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 4px);
}
/* blind emboss pressed into the blue paper */
.bg-powder-paper .emboss-title a {
  color: #D3DDE8;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .85), 1px 1px 1px rgba(38, 64, 95, .34), 2px 3px 8px rgba(38, 64, 95, .10);
}
.bg-powder-paper .emboss-title a:hover { color: #CCD7E4; }
.bg-powder-paper .divider { color: #A9BBCF; }
.bg-powder-paper .sub { color: var(--harbor); }

/* Collage photo on phones/tablets: keep the photo's proportions so heads are never cropped */
@media (max-width: 899px) {
  .collage .collage-photo { min-height: 0; aspect-ratio: 4 / 5; max-height: 85svh; width: 100%; }
  .collage-left .collage-photo img { object-position: 60% 62%; }
}

/* Registry */
.registry-section .shell-icon { width: 34px; height: 34px; margin: 0 auto var(--s-4); color: var(--gold); }
.registry-title { font-family: var(--font-display); font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: .14em; }
.registry-cta { margin-top: var(--s-6); }
.registry-cta .placeholder { font-size: 1.125rem; }

/* Dress code outfit carousel: manual only, swipe or arrows */
.faq-list > div { min-width: 0; }
.attire { margin-top: var(--s-6); min-width: 0; max-width: 100%; }
.attire-label { color: var(--muted); margin-bottom: var(--s-3); }
.attire-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 62vw, 250px); gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.attire-track::-webkit-scrollbar { display: none; }
.attire-track:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.attire-card {
  margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px;
  background: var(--white); padding: 6px; border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
}
.attire-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.attire-controls { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }
.attire-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--harbor); border: 1px solid var(--harbor); transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.attire-btn:hover:not([disabled]) { background: var(--harbor); color: var(--ivory); }
.attire-btn[disabled] { opacity: .3; cursor: default; }
.attire-btn svg { width: 20px; height: 20px; }

/* Dress code: Gentlemen / Ladies guidelines */
.attire-guide {
  display: grid; gap: var(--s-5); margin: var(--s-6) auto 0; max-width: 640px; text-align: left;
}
@media (min-width: 640px) { .attire-guide { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.attire-guide > div { background: var(--ivory); border: 1px solid var(--hairline); border-radius: var(--radius-m); padding: var(--s-5); }
.attire-who { font-family: var(--font-script); font-weight: 400; font-size: 2.1rem; line-height: 1.1; text-align: center; margin-bottom: var(--s-3); }
.attire-guide ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.attire-guide li { position: relative; padding-left: 20px; line-height: 1.5; }
.attire-guide li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--sea); }

.glance-rows dd a { color: inherit; text-decoration: underline; text-decoration-color: rgba(38, 64, 95, .35); text-underline-offset: 4px; }
.glance-rows dd a:hover { text-decoration-color: currentColor; }

/* RSVP: guests in your party */
.field-hint { margin: -6px 0 var(--s-3); font-size: .9375rem; color: var(--muted); }
.party-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.party-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.party-row .field-error { grid-column: 2 / -1; margin-top: -2px; }
.party-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem;
  border: 1px solid var(--harbor); color: var(--harbor); background: var(--white); font-variant-numeric: tabular-nums;
}
.party-you-name { grid-column: 2 / -1; min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .55); border: 1px dashed #B4C2D3; color: var(--harbor-deep); }
.party-remove {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid #B4C2D3; color: var(--harbor);
}
.party-remove:hover { border-color: var(--harbor); background: var(--white); }
.party-remove svg { width: 16px; height: 16px; }
.btn-add-guest { min-height: 44px; padding: 10px 20px; }
.btn-add-guest[hidden] { display: none; }
.party-count { margin-top: var(--s-4); font-size: .9375rem; }
.party-note {
  margin: 0 0 var(--s-4); padding: 10px 14px; border-left: 2px solid var(--sea); background: rgba(255, 255, 255, .5);
  font-size: .9375rem; font-style: italic; color: var(--harbor-deep); border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
