/* ==========================================================================
   Sidony & Jourdan
   Palette pulled straight out of the photographs: cream paper, deep garden
   green, and the antique gold of low sun through leaves.
   ========================================================================== */

:root {
  --cream:        #FAF5EC;
  --cream-deep:   #F2E9DA;
  --cream-warm:   #EFE3CF;
  --ink:          #2B2721;
  --ink-soft:     #5C544A;
  --forest:       #22342A;
  --forest-deep:  #1A281F;
  --sage:         #8C9C86;
  --gold:         #A98341;
  --gold-light:   #D9BE8A;
  --blush:        #C8705A;
  --line:         rgba(169, 131, 65, .28);
  --line-light:   rgba(250, 245, 236, .22);

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shell:  min(1240px, 90vw);
  --narrow: min(720px, 90vw);
  --ease:   cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky nav is ~72px; keep anchored headings clear of it. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }

/* Several components below set `display`, which would otherwise beat the user
   agent's [hidden] rule and leave them on screen (invisible, but still
   intercepting clicks). Keep the attribute authoritative. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: var(--cream);
  padding: .8rem 1.4rem; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- Type ----------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: .004em;
  margin: 0;
}
.display--sm { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--gold-light); }

.lede {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 1.4rem auto 0;
}
.section--forest .lede { color: rgba(250, 245, 236, .74); }

.subhead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 5rem 0 2.2rem;
}

.link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--ink); border-color: currentColor; }
.section--forest .link, .foot .link { color: var(--gold-light); }
.section--forest .link:hover, .foot .link:hover { color: var(--cream); }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: var(--shell); margin-inline: auto; }
.wrap--narrow { width: var(--narrow); }
.center { text-align: center; }

.section { padding: clamp(5rem, 3rem + 8vw, 9rem) 0; }
.section--tight { padding: clamp(4rem, 3rem + 5vw, 6.5rem) 0; }
.section--cream { background: var(--cream-deep); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest .display { color: var(--cream); }

.sectionHead { margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }

/* Little botanical rule used to open a section and close the page. */
.sprig {
  width: 120px; height: 24px;
  margin: 0 auto 1.8rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: .8;
}
.sprig--light { stroke: var(--gold-light); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background .38s var(--ease), color .38s var(--ease), border-color .38s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--cream); }

.btn--sm { padding: .68rem 1.5rem; letter-spacing: .2em; font-size: .7rem; }
.btn--solid { background: var(--gold); color: var(--cream); border-color: var(--gold); }
.btn--solid:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost {
  border-color: rgba(250, 245, 236, .6);
  color: var(--cream);
  margin-top: 2.6rem;
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }

.btn--quiet {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: .3rem 0 .5rem;
  margin-top: 2.4rem;
  letter-spacing: .22em;
}
.btn--quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* --- Blur-up placeholder -------------------------------------------------- */
/* images.css sets --lqip per photo. The tiny blurred copy sits behind the real
   file so an image never resolves against an empty rectangle. */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--cream-warm);
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
}
.ph picture, .hero__media picture { display: block; width: 100%; height: 100%; }
.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.ph img.is-loaded { opacity: 1; }
/* Never leave a photo invisible if the load event was missed. */
.no-js .ph img { opacity: 1; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
.nav__inner {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0;
  transition: padding .45s var(--ease);
}
.nav__mark {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: var(--cream);
  text-decoration: none;
  transition: color .45s var(--ease);
}
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  transition: color .45s var(--ease), opacity .3s var(--ease);
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .btn { border-color: rgba(250, 245, 236, .55); color: var(--cream); }
.nav__links .btn:hover { background: var(--cream); color: var(--forest); }

/* Once past the hero the bar goes solid and the type flips to ink. */
.nav.is-stuck {
  background: rgba(250, 245, 236, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-stuck .nav__inner { padding: .9rem 0; }
.nav.is-stuck .nav__mark,
.nav.is-stuck .nav__links a { color: var(--ink); }
.nav.is-stuck .nav__links .btn { border-color: var(--gold); color: var(--gold); }
.nav.is-stuck .nav__links .btn:hover { background: var(--gold); color: var(--cream); }
.nav.is-stuck .nav__toggle span { background: var(--ink); }

.nav__toggle {
  display: none;
  width: 34px; height: 24px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 0;
  display: block; width: 100%; height: 1px;
  background: var(--cream);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .45s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 8px; }
.nav__toggle span:nth-child(2) { top: 16px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.menu__links a {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--cream);
  text-decoration: none;
}
.menu__links a:hover { color: var(--gold-light); }
.menu__date {
  font-size: .74rem; letter-spacing: .3em;
  color: var(--gold-light); margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* A very slow drift. Static for anyone who asked for reduced motion. */
  animation: drift 34s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -1.4%, 0); }
}

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 40, 31, .48) 0%, rgba(26, 40, 31, .12) 34%,
                            rgba(26, 40, 31, .30) 68%, rgba(26, 40, 31, .62) 100%);
}

.hero__body { position: relative; z-index: 2; }

.hero__names {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.2rem, 1.4rem + 9vw, 7.6rem);
  line-height: .96;
  letter-spacing: .01em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(26, 40, 31, .35);
}
.hero__names em {
  display: block;
  font-size: .42em;
  font-style: italic;
  color: var(--gold-light);
  margin: .1em 0;
}

.hero__meta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.1rem;
  margin-top: 2.2rem;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); }

.hero__scroll {
  position: absolute; bottom: 2.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 56px;
  display: grid; place-items: center;
}
.hero__scrollLine {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--cream));
  animation: sink 2.6s var(--ease) infinite;
}
@keyframes sink {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1);  transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(.2); transform-origin: bottom; opacity: 0; }
}

/* Drifting light motes: the one openly enchanted flourish on the page. */
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes i {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  filter: blur(1.4px);
  opacity: 0;
  animation: float 16s linear infinite;
}
.motes i:nth-child(1) { left:  8%; animation-delay:  0s; animation-duration: 19s; }
.motes i:nth-child(2) { left: 19%; animation-delay:  4s; animation-duration: 15s; }
.motes i:nth-child(3) { left: 31%; animation-delay:  9s; animation-duration: 22s; }
.motes i:nth-child(4) { left: 44%; animation-delay:  2s; animation-duration: 17s; }
.motes i:nth-child(5) { left: 56%; animation-delay: 12s; animation-duration: 20s; }
.motes i:nth-child(6) { left: 67%; animation-delay:  6s; animation-duration: 16s; }
.motes i:nth-child(7) { left: 78%; animation-delay: 14s; animation-duration: 23s; }
.motes i:nth-child(8) { left: 88%; animation-delay:  3s; animation-duration: 18s; }
.motes i:nth-child(9) { left: 96%; animation-delay: 10s; animation-duration: 21s; }
@keyframes float {
  0%   { transform: translateY(102vh) translateX(0)     scale(.5); opacity: 0; }
  12%  { opacity: .85; }
  50%  { transform: translateY(50vh)  translateX(26px)  scale(1); }
  88%  { opacity: .5; }
  100% { transform: translateY(-6vh)  translateX(-14px) scale(.6); opacity: 0; }
}

/* The couple sit centre-right in the landscape frame, so on wide screens the
   type moves into the soft bokeh on the left rather than across their faces. */
@media (min-width: 861px) {
  .hero { align-items: flex-start; text-align: left; padding-left: 0; }
  .hero__body { width: var(--shell); margin-inline: auto; }
  .hero__names { max-width: 9ch; }
  .hero__meta { justify-content: flex-start; }
}

/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown {
  display: flex; justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 1rem + 3vw, 3.6rem);
  margin-top: 3rem;
}
.countdown__cell { min-width: 68px; }
.countdown__cell b {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__cell span {
  display: block;
  margin-top: .6rem;
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
/* Replaces the four cells once the date has passed. */
.countdown__married {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--gold);
  margin: 0;
}

.countdown__date {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-style: italic;
  color: var(--ink-soft);
  margin: 2.4rem 0 0;
}
.countdown__date .sep { color: var(--gold); margin: 0 .6rem; font-style: normal; }

/* ==========================================================================
   Our story
   ========================================================================== */
.story { display: grid; gap: clamp(3.5rem, 2rem + 5vw, 6.5rem); }

.story__beat {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
}
.story__beat--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.story__beat--flip .story__text { order: -1; }

.story__beat .ph { aspect-ratio: 4 / 5; }

.story__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 .5rem;
  letter-spacing: .06em;
}
.story__text h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.14;
  margin: 0 0 1.2rem;
}
.story__text p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Full-bleed break
   ========================================================================== */
.break {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid; place-items: center;
  overflow: hidden;
}
.break img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.break::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(26, 40, 31, .42);
}
.break__quote {
  position: relative; z-index: 2;
  margin: 0;
  width: min(640px, 84vw);
  text-align: center;
  color: var(--cream);
}
.break__quote p {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.34;
  margin: 0;
  text-shadow: 0 2px 24px rgba(26, 40, 31, .4);
}
.break__quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--body);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ==========================================================================
   Details
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: clamp(2.2rem, 1.5rem + 2vw, 3.2rem);
  text-align: center;
}
.section--cream .card { background: var(--cream); }
.card__kicker {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.card__venue {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem);
  line-height: 1.16;
  margin: 0 0 1rem;
}
.card__time {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.card__addr { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card__note {
  margin: 1rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: .9rem;
  font-style: italic;
}

.dress {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  margin-top: clamp(4rem, 2rem + 6vw, 7rem);
}
.dress__img { aspect-ratio: 4 / 5; }
.dress__text p:last-child { color: var(--ink-soft); margin: 1.3rem 0 0; }

/* ==========================================================================
   Schedule
   ========================================================================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute; top: .6rem; bottom: .6rem; left: 7px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-light) 12%,
                                      var(--line-light) 88%, transparent);
}
.timeline li {
  position: relative;
  padding: 0 0 2.8rem 3rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute; left: 3px; top: .62rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(217, 190, 138, .14);
}
.timeline time {
  display: block;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .5rem;
}
.timeline h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin: 0 0 .4rem;
  color: var(--cream);
}
.timeline p { margin: 0; color: rgba(250, 245, 236, .68); max-width: 46ch; }

/* ==========================================================================
   Travel
   ========================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.8rem, 1rem + 3vw, 3.2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 1.5rem + 2vw, 3.4rem) 0;
}
.fact h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 .7rem;
}
.fact p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.hotels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 1rem + 2vw, 2.2rem);
}
.hotel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2rem 1.9rem;
  display: flex; flex-direction: column;
}
.hotel__dist {
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem;
}
.hotel h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0 0 .7rem;
}
.hotel p { margin: 0 0 1.4rem; color: var(--ink-soft); font-size: .93rem; }
.hotel .link { align-self: flex-start; margin-top: auto; font-size: .82rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.5rem, .3rem + .6vw, .9rem);
  width: min(1500px, 96vw);
  margin: 0 auto;
  padding-top: 1rem;
}
.grid__item {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: var(--cream-warm);
}
.grid__item.is-wide { grid-column: span 4; aspect-ratio: 3 / 2; }
.grid__item.is-half { grid-column: span 3; aspect-ratio: 3 / 2; }
.grid__item img { transition: transform 1.1s var(--ease), opacity .8s var(--ease); }
.grid__item:hover img { transform: scale(1.05); }

/* ==========================================================================
   RSVP form
   ========================================================================== */
.form {
  width: min(720px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 1.6rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form__conditional { display: grid; gap: 1.6rem; }

.field { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0;
}
.field > span i { font-style: normal; opacity: .6; }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream);
  background: rgba(250, 245, 236, .05);
  border: 1px solid var(--line-light);
  padding: .95rem 1.1rem;
  border-radius: 0;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(250, 245, 236, .38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(250, 245, 236, .09);
}
/* Native select arrow is unreadable on the dark field. */
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%),
                    linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select option { color: var(--ink); background: var(--cream); }

.field--choice { margin-top: .4rem; }
.choices { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.choice { flex: 1 1 200px; cursor: pointer; position: relative; }
/* The real radio is hidden but kept inside its label, so it stays reachable by
   keyboard and its :checked state can style the visible box next to it. */
.choice input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.choice span {
  display: block;
  text-align: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-light);
  font-size: .82rem;
  letter-spacing: .12em;
  transition: all .3s var(--ease);
}
.choice:hover span { border-color: var(--gold-light); }
.choice input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.form .btn { justify-self: center; margin-top: 1rem; }

/* Honeypot: bots fill it, humans never see it. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status {
  margin: 0; text-align: center; min-height: 1.4rem;
  font-size: .92rem; color: var(--gold-light);
}
.form__status.is-error { color: #E8A08C; }

/* ==========================================================================
   Registry
   ========================================================================== */
.registry {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem;
  margin-top: 2.8rem;
}
.registry a { text-align: center; }
.registry small {
  display: block;
  margin-top: .7rem;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink-soft);
  font-style: italic;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 3rem 1.5rem 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: '';
  position: absolute; right: .4rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p {
  margin: 0;
  padding: 0 2rem 1.8rem 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  background: var(--forest-deep);
  color: var(--cream);
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0;
}
.foot__names {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  margin: 0;
  line-height: 1.1;
}
.foot__names em { font-style: italic; color: var(--gold-light); }
.foot__date {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-light); margin: 1.2rem 0 0;
}
.foot__note { margin: 2rem 0 0; font-size: .92rem; color: rgba(250, 245, 236, .6); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 30, 24, .96);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: 100%; max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none; border: 0;
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
  opacity: .72;
  transition: opacity .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1.4rem; right: 1.8rem; font-size: 2.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 1rem; }
.lightbox__nav--prev { left: .4rem; }
.lightbox__nav--next { right: .4rem; }
.lightbox__count {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  margin: 0;
  font-size: .7rem; letter-spacing: .28em;
  color: rgba(250, 245, 236, .55);
}
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid__item.is-wide { grid-column: span 4; }
  .grid__item.is-half { grid-column: span 2; aspect-ratio: 3 / 4; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero { justify-content: flex-end; padding-bottom: 7rem; }
  .hero__media img { object-position: center 30%; }
  .hero__meta { font-size: .7rem; letter-spacing: .2em; gap: .8rem; }

  .story__beat, .story__beat--flip { grid-template-columns: 1fr; gap: 2rem; }
  .story__beat--flip .story__text { order: 0; }
  .story__beat .ph { aspect-ratio: 4 / 5; }
  .story__text p { max-width: none; }

  .dress { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid__item, .grid__item.is-wide, .grid__item.is-half { grid-column: span 2; }
  .grid__item.is-wide, .grid__item.is-half { aspect-ratio: 3 / 2; }

  .countdown { gap: 1.4rem; }
  .countdown__cell { min-width: 58px; }

  .lightbox__nav { font-size: 2.4rem; padding: .5rem; }
  .lightbox__nav--prev { left: -.4rem; }
  .lightbox__nav--next { right: -.4rem; }
}

/* ==========================================================================
   Reduced motion: drop everything ambient, keep the page fully usable.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; transform: scale(1.04); }
  .motes { display: none; }
  .hero__scrollLine { animation: none; opacity: .8; }
  .reveal { opacity: 1; transform: none; }
  .grid__item:hover img { transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Print: the details page someone will actually put on the fridge.
   ========================================================================== */
@media print {
  .nav, .menu, .hero__scroll, .motes, .lightbox, .grid, .form, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .section--forest, .section--cream { background: #fff !important; color: #000 !important; padding: 1.5rem 0; }
  .section--forest .display, .timeline h3, .timeline p { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
