/* ==========================================================================
   Lydia & Stijn — 2 April 2027, Maastricht
   Colour from the moodboard; type per Stijn & Lydia's feedback:
     titles = Symphony, body = The Seasons / Cormorant Garamond.
   ========================================================================== */

/* Symphony and The Seasons are Canva fonts, so they aren't on Google Fonts.
   Drop the licensed webfont files into assets/fonts/ and uncomment the block
   below — they take over automatically, nothing else needs to change. Until
   then the stacks fall back to Pinyon Script and Cormorant Garamond.

@font-face {
  font-family: "Symphony";
  src: local("Symphony"), url("assets/fonts/Symphony.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "The Seasons";
  src: local("The Seasons"), url("assets/fonts/TheSeasons.woff2") format("woff2");
  font-display: swap;
}
*/

:root {
  /* Colour — burgundy primary, green secondary, gold accent */
  --burgundy:       #490D13;
  --burgundy-deep:  #2E070C;
  --burgundy-mid:   #7B1E28;
  --emerald:        #166D3B;
  --emerald-deep:   #0C3F23;
  --sage:           #98AE87;
  --gold:           #C4A95B;
  --gold-bright:    #E3CE8E;
  --gold-deep:      #8A6E2A;
  --ivory:          #F8F4E3;
  --ivory-warm:     #F1EAD5;
  --charcoal:       #3D3D3D;
  --rose:           #B77C87;

  --font-script: "Symphony", "Pinyon Script", "Snell Roundhand", cursive;
  --font-body:   "The Seasons", "Cormorant Garamond", "Times New Roman", Times, serif;

  --wrap: 1080px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* the script faces have long swashes — never let one create a sideways scroll */
  overflow-x: hidden;
  /* Without a background here, body's ivory propagates to the page canvas and
     shows up as a pale band when you rubber-band past the footer. Keeping the
     canvas dark means overscroll blends into the hero at the top and the
     footer at the bottom. */
  background: var(--burgundy-deep);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  /* Cormorant runs small and light, so it sits a step larger than a Times would */
  font-size: clamp(1.1rem, 1.02rem + .42vw, 1.3rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.is-sealed { overflow: hidden; }
body.is-sealed .nav { opacity: 0; pointer-events: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--burgundy); color: var(--ivory); padding: .75rem 1.25rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

img, svg { max-width: 100%; }

/* ==========================================================================
   THE LETTER — landing gate
   ========================================================================== */

.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  background:
    radial-gradient(125% 95% at 50% 34%, #481017 0%, #2C080D 46%, #150407 100%);
  overflow: hidden;
}

.gate__grain {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay; pointer-events: none;
}

.gate__stage {
  position: relative;
  display: grid; justify-items: center; gap: clamp(1.1rem, 3.4vw, 2rem);
  width: min(100%, 520px); min-width: 0;
  transition: opacity .5s ease, transform .8s var(--ease);
}

.gate__eyebrow {
  margin: 0; max-width: 100%; text-align: center;
  color: var(--gold); font-weight: 500;
  font-size: clamp(.6rem, .5rem + .38vw, .8rem);
  letter-spacing: clamp(.16em, .06em + 1.2vw, .34em); text-transform: uppercase;
  transition: opacity .45s ease;
}

/* --- Envelope ------------------------------------------------------------ */

.envelope {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1.44;
  perspective: 1400px;
  transform-style: preserve-3d;
  /* The drop shadow lives on .env__body as a box-shadow. A filter here would
     apply to the whole subtree and be recomputed on every animation frame,
     which is what made the opening stutter. */
}

.env__body,
.env__front,
.env__flap { position: absolute; }

/* the paper itself */
.env__body {
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(158deg, #12482A 0%, #072616 100%);
  box-shadow: 0 28px 44px rgba(0, 0, 0, .58);
}

/* the pocket, with the two folded side flaps meeting in a V */
.env__front {
  inset: 0; z-index: 6;
  border-radius: 4px;
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(165deg, #165431 0%, #0A3320 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .3);
}
/* the folded-up bottom flap */
.env__front::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.16));
  border-top: 0;
}
/* highlight along the two upper fold edges */
.env__front::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(255,255,255,.10) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom left,  transparent calc(50% - 1px), rgba(255,255,255,.10) 50%, transparent calc(50% + 1px));
}

/* the flap that swings up */
.env__flap {
  top: 0; left: 0; width: 100%; height: 52%; z-index: 7;
  transform-origin: top center;
  transform: rotateX(0deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #1B6339 0%, #14512F 55%, #0D3D24 100%);
  backface-visibility: hidden;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
  will-change: transform;
  transition: transform 1.15s var(--ease), z-index 0s linear .5s;
}

.env__letter {
  position: absolute;
  left: 50%; bottom: 4%;
  width: 92%; height: 92%;
  z-index: 5;
  transform: translateX(-50%) translateY(0) scale(1);
  transform-origin: center center;
  background: linear-gradient(168deg, #5C1119 0%, #470C12 55%, #380A0F 100%);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  will-change: transform, opacity;
  transition:
    transform 1.15s var(--ease),
    opacity .5s ease;
  display: grid; place-items: center;
  padding: 4%;
  overflow: hidden;
}
.env__letter::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)'/%3E%3C/svg%3E");
  opacity: .08; mix-blend-mode: overlay;
}

.letter__edge {
  position: relative;
  width: 100%; height: 100%;
  border: 1px solid rgba(196, 169, 91, .42);
  display: grid; align-content: center; justify-items: center;
  gap: .35em; padding: 6% 8%; text-align: center;
  color: var(--gold-bright);
}
.letter__eyebrow {
  margin: 0; font-size: clamp(.5rem, .36rem + .55vw, .68rem); font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(227, 206, 142, .8);
}
.letter__names {
  margin: 0; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2rem, 1rem + 6.4vw, 3.6rem); line-height: 1.05;
  color: var(--gold-bright);
}
.letter__rule { width: clamp(70px, 22%, 110px); color: rgba(196, 169, 91, .8); }
.letter__invite {
  margin: 0; font-size: clamp(.78rem, .62rem + .62vw, 1rem);
  line-height: 1.6; color: rgba(248, 244, 227, .94);
}
.letter__meta {
  margin: .45em 0 0; font-size: clamp(.66rem, .55rem + .45vw, .82rem);
  letter-spacing: .14em; color: rgba(248, 244, 227, .72); line-height: 1.9;
  text-transform: uppercase;
}

/* --- Wax seal ------------------------------------------------------------
   Lydia's note: the wax must not split in half. So it is one piece that gets
   lifted off the paper whole once the code is right.
   ------------------------------------------------------------------------ */

.seal {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(92px, 30%, 148px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .9s var(--ease), opacity .7s ease, filter .35s ease;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55));
  will-change: transform, opacity;
  border-radius: 50%;
}
.seal:focus { outline: none; }
.seal:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 8px; }
.seal:hover  { transform: translate(-50%, -50%) scale(1.055); transition-duration: .35s; }
.seal:active { transform: translate(-50%, -50%) scale(.97); transition-duration: .15s; }
.seal svg { display: block; width: 100%; height: 100%; }

/* the monogram pressed into the wax */
.seal__mark { color: #6E5316; opacity: .95; }

/* the soft sheen of pressed wax — kept low so it reads as wax, not as a bauble */
.seal::after {
  content: ""; position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(46% 40% at 32% 24%, rgba(255, 250, 230, .17), transparent 70%);
  pointer-events: none;
  transition: opacity .5s ease;
}

/* --- The passcode -------------------------------------------------------- */

.lock {
  display: grid; justify-items: center; gap: .55rem;
  width: 100%; margin: 0;
  transition: opacity .4s ease;
}
.lock__label {
  font-size: clamp(.58rem, .5rem + .3vw, .72rem); font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(227, 206, 142, .74); text-align: center;
}
.lock__row { display: flex; align-items: stretch; gap: .55rem; }
.lock__input {
  width: 9.5rem; padding: .5rem .3rem;
  font-family: var(--font-body); font-size: 1.5rem; line-height: 1.4;
  /* letter-spacing pushes centred text left, the matching indent puts it back */
  letter-spacing: .42em; text-indent: .42em; text-align: center;
  color: var(--gold-bright); background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(196, 169, 91, .55); border-radius: 2px;
}
.lock__input::placeholder { color: rgba(196, 169, 91, .38); }
.lock__input:focus { outline: none; border-color: var(--gold-bright); background: rgba(0, 0, 0, .45); }
.lock__go {
  padding: 0 1.3rem; cursor: pointer;
  font-family: var(--font-body); font-size: .72rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-bright); background: none;
  border: 1px solid rgba(196, 169, 91, .55); border-radius: 2px;
  transition: background .25s ease, border-color .25s ease;
}
.lock__go:hover { background: rgba(196, 169, 91, .16); border-color: var(--gold-bright); }
.lock__msg {
  margin: 0; min-height: 1.5em; text-align: center;
  font-size: clamp(.74rem, .68rem + .3vw, .86rem);
  color: rgba(227, 206, 142, .62); font-style: italic;
}
.lock__msg.is-wrong { color: var(--rose); font-style: normal; }

.lock.is-shaking { animation: lock-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes lock-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
@media (prefers-reduced-motion: reduce) { .lock.is-shaking { animation: none; } }

/* --- Opening sequence ---------------------------------------------------- */

.gate.is-opening .gate__grain { opacity: 0; transition: opacity .5s ease; }
.gate.is-opening .seal { pointer-events: none; }
.gate.is-opening .seal::after { opacity: 0; }

/* 1. the seal is lifted off the paper in one piece */
.gate.is-opening .seal {
  transform: translate(-50%, -186%) rotate(-13deg) scale(.86);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .7s ease .24s;
}

/* 2. the flap swings up behind it */
.gate.is-opening .env__flap {
  transform: rotateX(-172deg);
  transition-delay: .42s, .92s;
  z-index: 1;
}

/* 3. the letter rises out, then fills the screen */
.gate.is-opening .env__letter {
  transform: translateX(-50%) translateY(-46%) scale(1.02);
  transition-delay: .95s;
}
/* 4. the letter comes toward you and becomes the page */
.gate.is-full .env__letter {
  z-index: 20;
  transform: translateX(-50%) translateY(-46%) scale(12);
  transition: transform 1.15s cubic-bezier(.5, 0, .78, .38), opacity .6s ease .5s;
  opacity: 0;
}
.gate.is-full .env__body,
.gate.is-full .env__front,
.gate.is-full .env__flap {
  opacity: 0; transition: opacity .4s ease;
}
.gate.is-opening .gate__eyebrow,
.gate.is-opening .lock { opacity: 0; pointer-events: none; }
.gate.is-full { pointer-events: none; }
.gate.is-gone { opacity: 0; transition: opacity .45s ease; }

/* Reduced motion: no theatre, just a courteous fade. */
@media (prefers-reduced-motion: reduce) {
  .seal, .env__flap, .env__letter { transition: none !important; }
  .gate.is-opening .seal,
  .gate.is-opening .env__flap,
  .gate.is-opening .env__letter,
  .gate.is-full .env__letter { transform: none; }
  .gate.is-opening { opacity: 0; transition: opacity .4s ease; }
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--pad);
  transition: opacity .6s ease .3s;
}
/* The bar's own background sits on a pseudo-element rather than on .nav.
   backdrop-filter makes an element the containing block for its fixed-position
   descendants, and that collapsed the full-screen mobile menu down to the
   height of the bar as soon as the nav went sticky. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(46, 7, 12, 0);
  transition: background .4s ease, box-shadow .4s ease;
}
.nav.is-stuck::before {
  background: rgba(46, 7, 12, .95);
  box-shadow: 0 1px 0 rgba(196, 169, 91, .28);
  backdrop-filter: blur(6px);
}

.nav__mark {
  display: inline-flex; align-items: center;
  color: var(--gold-bright); text-decoration: none;
}
.nav__mark svg { display: block; width: auto; height: 38px; }

/* the classic invitation ampersand: italic serif inside a script line */
.amp {
  font-family: var(--font-body); font-style: italic;
  font-size: .62em; padding: 0 .16em; vertical-align: .06em;
}

.nav__menu { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav__menu a {
  color: rgba(248, 244, 227, .86); text-decoration: none; font-weight: 500;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav__menu a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.nav__rsvp {
  border: 1px solid rgba(196, 169, 91, .7) !important;
  padding: .4rem .95rem !important; color: var(--gold-bright) !important;
}
.nav__rsvp:hover { background: rgba(196, 169, 91, .16); }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; padding: 0;
    background: none; border: 1px solid rgba(196, 169, 91, .45); border-radius: 2px;
    cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 18px; height: 1px; background: var(--gold-bright);
    transition: transform .3s var(--ease), opacity .2s ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; }
  .nav__bars::after  { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

  .nav__mark, .nav__toggle { position: relative; z-index: 2; }
  .nav__mark svg { height: 30px; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--burgundy-deep);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu a { font-size: 1rem; letter-spacing: .24em; }
}

/* ==========================================================================
   SHARED TYPE & LAYOUT
   ========================================================================== */

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { width: min(760px, 100%); }
.center { text-align: center; }

.band {
  padding-block: clamp(3.5rem, 8vw, 7rem); position: relative;
  scroll-margin-top: 6rem; /* clear the fixed nav when jumping to an anchor */
}
.band--tight { padding-block: clamp(2.75rem, 6vw, 5rem); }
.band--ivory { background: var(--ivory); color: var(--charcoal); }
.band--burgundy { background: var(--burgundy); color: var(--ivory); }
.band--green { background: var(--emerald-deep); color: var(--ivory); }

/* hairline gold seam between bands */
.band + .band::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 2 * var(--pad))); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 169, 91, .5), transparent);
}

/* Cormorant defaults to old-style figures, which are lovely in running text but
   read as a wobble inside letter-spaced capitals. Lining figures for the labels. */
.eyebrow, .sub, .hero__meta, .letter__meta, .venue-head, .tl__time, .tl__tag,
.split__head, .card__kicker, .card__addr, .dresscode, .code-line, .iban b,
.cd__cell b, .cd__cell span, .foot__line, .foot__meta, .btn,
.nav__menu a, .lock__label, .lock__input {
  font-variant-numeric: lining-nums;
}

.eyebrow {
  margin: 0 0 .9rem; font-weight: 500;
  font-size: clamp(.66rem, .6rem + .25vw, .78rem);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--light { color: var(--gold); }

.script {
  margin: 0;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem);
  line-height: 1.08; color: var(--burgundy);
}
.script--light { color: var(--gold-bright); }

.rule { display: block; width: 130px; margin: 1.1rem auto 1.6rem; color: var(--gold-deep); }
.rule--light { color: var(--gold); }

.lede { font-size: 1.14em; line-height: 1.8; }
.lede--light { color: rgba(248, 244, 227, .92); }

.signed {
  margin: .8rem 0 0; font-style: italic;
  font-size: .95em; color: rgba(248, 244, 227, .66);
}

.sub {
  margin: 2.8rem 0 1rem; font-weight: 500;
  font-size: clamp(.8rem, .74rem + .3vw, .92rem);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--burgundy-mid);
  padding-bottom: .6rem; border-bottom: 1px solid rgba(138, 110, 42, .32);
}
.sub--light { color: var(--gold); border-bottom-color: rgba(196, 169, 91, .32); }

.link {
  color: var(--burgundy-mid); text-decoration: none;
  border-bottom: 1px solid rgba(123, 30, 40, .4);
}
.link:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }

.btn {
  display: inline-block; margin-top: 1.4rem;
  padding: .82rem 2.1rem; font-weight: 500;
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 1px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn--gold {
  background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--outline {
  color: var(--gold-bright); border-color: rgba(196, 169, 91, .65);
}
.btn--outline:hover { background: rgba(196, 169, 91, .16); }

.todo {
  border: 1px dashed rgba(138, 110, 42, .55);
  background: rgba(196, 169, 91, .09);
  padding: .85rem 1.1rem; border-radius: 2px;
  font-size: .9em; color: var(--charcoal);
}
.todo--light { color: rgba(248, 244, 227, .9); border-color: rgba(196, 169, 91, .5); }
.todo b { color: var(--burgundy-mid); letter-spacing: .04em; }
.todo--light b { color: var(--gold); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem var(--pad) 4rem;
  color: var(--ivory); text-align: center;
  overflow: hidden;
}
/* Drop a faded photo of Delbrock in as assets/delbrock.jpg and it appears here;
   without it the gradient below stands on its own. */
.hero__bg {
  position: absolute; inset: 0;
  background:
    url("assets/delbrock.jpg") center / cover no-repeat,
    radial-gradient(120% 100% at 50% 30%, #5A1119 0%, #3A0A11 50%, #1C060A 100%);
  opacity: .9;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,6,10,.86) 0%, rgba(46,7,12,.72) 45%, rgba(28,6,10,.94) 100%);
}
.hero__inner {
  position: relative; display: grid; justify-items: center;
  width: 100%; max-width: min(var(--wrap), 100%); min-width: 0;
}
.hero__inner > * { max-width: 100%; }

.hero__names {
  margin: .1em 0 0;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, .9rem + 7.6vw, 7.5rem); line-height: 1.05;
  color: var(--gold-bright);
  text-shadow: 0 4px 26px rgba(0, 0, 0, .45);
}
.hero__invite {
  margin: .7rem 0 0;
  font-size: clamp(1rem, .9rem + .55vw, 1.32rem); line-height: 1.6;
  color: rgba(248, 244, 227, .95);
}
.hero__meta {
  margin: 0; font-weight: 500;
  font-size: clamp(.76rem, .68rem + .4vw, .95rem);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(248, 244, 227, .82);
}
.hero__meta .dot { padding: 0 .5em; color: var(--gold); }
.br-mob { display: none; }
@media (max-width: 560px) {
  .br-mob { display: block; }
  .hero__meta .dot { display: none; }
}

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1.4rem);
  margin: clamp(2rem, 5vw, 3rem) 0 .5rem;
  width: min(560px, 100%);
}
.cd__cell {
  padding: .9rem .4rem;
  border: 1px solid rgba(196, 169, 91, .38);
  background: rgba(28, 6, 10, .35);
}
.cd__cell b {
  display: block; font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem); line-height: 1.1;
  color: var(--gold-bright); font-variant-numeric: lining-nums tabular-nums;
}
.cd__cell span {
  display: block; margin-top: .35rem; font-weight: 500;
  font-size: clamp(.52rem, .46rem + .25vw, .68rem);
  letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 244, 227, .7);
}
.cd__today {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--font-script); font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  color: var(--gold-bright);
}

/* ==========================================================================
   OUR STORY
   ========================================================================== */

.story {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr auto 1fr;
  margin-top: 1rem;
}
.story__col p { margin: 0 0 1.1em; color: rgba(248, 244, 227, .9); }
.story__col p:last-child { margin-bottom: 0; }
.story__who {
  margin: 0 0 1rem;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1;
  color: var(--gold-bright);
}
.story__divide { width: 1px; background: linear-gradient(transparent, rgba(196,169,91,.45), transparent); }

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; }
  .story__divide { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(196,169,91,.45), transparent); }
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.venue-head {
  margin: 2.6rem 0 1.4rem; text-align: center; font-weight: 500;
  font-size: clamp(.76rem, .7rem + .3vw, .88rem);
  letter-spacing: .26em; text-transform: uppercase; color: var(--burgundy-mid);
}
.venue-head__label { color: var(--burgundy); font-weight: 700; }
.venue-head::after {
  content: ""; display: block; width: 46px; height: 1px;
  margin: .9rem auto 0; background: rgba(138, 110, 42, .6);
}

.tl { list-style: none; margin: 0; padding: 0; }
.tl__item {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 1px solid rgba(138, 110, 42, .3);
}
.tl__item::before {
  content: ""; position: absolute; left: -4.5px; top: 2.1rem;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-deep);
}
.tl__time {
  margin: 0; font-size: .82rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--burgundy-mid);
}
.tl__time i { font-style: italic; letter-spacing: .05em; text-transform: none; opacity: .8; }
.tl__title {
  margin: .3rem 0 .5rem;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.1;
  color: var(--burgundy);
}
.tl__body { margin: 0 0 .7em; }
.tl__body:last-child { margin-bottom: 0; }
.tl__tag {
  margin: .9rem 0 0; display: inline-block;
  padding: .45rem .9rem; font-weight: 500;
  border: 1px solid rgba(138, 110, 42, .4);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy-mid);
}

.note {
  margin: 2.4rem 0 0; padding: 1.2rem 1.4rem;
  background: rgba(196, 169, 91, .13);
  border-left: 2px solid var(--gold-deep);
  font-style: italic;
}
.note--slim { margin-top: 1.6rem; padding: .85rem 1.1rem; font-size: .95em; }
.note--light {
  margin-top: 2rem; background: rgba(196, 169, 91, .1);
  border-left-color: var(--gold); color: rgba(248, 244, 227, .9);
}
.note--light b { font-style: normal; color: var(--gold-bright); font-weight: 400; }

/* ==========================================================================
   CARDS / SPLIT / FEATURE
   ========================================================================== */

.cards {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 1rem;
}
.card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(196, 169, 91, .34);
  background: rgba(0, 0, 0, .16);
  text-align: center;
}
.cards--start { align-items: start; }   /* each card only as tall as its own list */
.card--list { text-align: left; }
.card--list .card__title { text-align: center; margin-bottom: 1.2rem; }
.card__kicker {
  margin: 0 0 .7rem; font-size: .7rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.card__title {
  margin: 0 0 .8rem;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.1;
  color: var(--gold-bright);
}
.card__addr { font-style: normal; line-height: 1.9; color: rgba(248, 244, 227, .88); }
.band--ivory .card__addr { color: var(--charcoal); }
.split {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.split__head {
  margin: 1.4rem 0 .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--burgundy);
}
.split > div > .split__head:first-child { margin-top: 0; }
.split p { margin: 0 0 .7em; }

.feature {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(138, 110, 42, .32);
  background: rgba(196, 169, 91, .08);
}
.feature__title {
  margin: 0 0 .9rem;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); line-height: 1.1;
  color: var(--burgundy);
}
.feature p { margin: 0 0 1em; }
.feature p:last-child { margin-bottom: 0; }

/* the Vaeshartelt booking code — meant to be read off the screen and typed */
.code-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .9rem;
  margin: 1.2rem 0 0 !important; padding: .9rem 1.1rem;
  background: rgba(196, 169, 91, .16);
  border: 1px dashed rgba(138, 110, 42, .5); border-radius: 2px;
}
.code-line__label {
  font-size: .7rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep);
}
.code-line b {
  font-size: 1.02em; letter-spacing: .06em; color: var(--burgundy);
  user-select: all; /* one tap/click selects the whole code */
}

/* --- Attire / Gifts ------------------------------------------------------ */

.dresscode {
  margin: 0 0 1.1rem; font-weight: 500;
  font-size: clamp(1rem, .88rem + .5vw, 1.25rem);
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright);
}

.iban {
  margin: 1.6rem auto 0; display: inline-block;
  padding: 1rem 1.6rem; line-height: 1.9;
  border: 1px solid rgba(138, 110, 42, .4); border-radius: 2px;
  background: rgba(196, 169, 91, .1);
}
.iban b {
  font-size: 1.06em; letter-spacing: .09em; color: var(--burgundy);
  user-select: all;
}

.tips { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tips li {
  position: relative; padding: 0 0 0 1.6rem; margin-bottom: 1.1rem;
  color: rgba(248, 244, 227, .9);
}
.tips li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold);
}
.tips b { color: var(--gold-bright); font-weight: 400; }
.card--list .tips { margin-top: 0; }
.card--list .tips li:last-child { margin-bottom: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { margin-top: 1rem; }
.qa { border-bottom: 1px solid rgba(138, 110, 42, .3); }
.qa:first-child { border-top: 1px solid rgba(138, 110, 42, .3); }
.qa summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-size: 1.05em; color: var(--burgundy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: .45rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa summary:hover { color: var(--burgundy-mid); }
.qa__body { padding: 0 0 1.35rem; }
.qa__body p { margin: 0 0 .8em; }
.qa__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   RSVP
   ========================================================================== */

.rsvp-slot { margin-top: 1rem; }
.rsvp-note {
  margin: .9rem 0 0; font-size: .86em; font-style: italic;
  color: rgba(248, 244, 227, .62);
}
.form-embed {
  margin-top: 2rem;
  background: var(--ivory); border: 1px solid rgba(196, 169, 91, .4);
  padding: .5rem;
}
.form-embed iframe {
  display: block; width: 100%; height: 1200px; border: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.foot {
  background: var(--burgundy-deep); color: rgba(248, 244, 227, .8);
  text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-top: 1px solid rgba(196, 169, 91, .3);
}
.foot__mark { width: 84px; height: auto; color: var(--gold-bright); opacity: .92; }
.foot__line {
  margin: 1rem 0 .4rem; font-size: .76rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.foot__names {
  margin: 0; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem); line-height: 1.1;
  color: var(--gold-bright);
}
.foot__meta {
  margin: .6rem 0 0; font-size: .78rem; letter-spacing: .18em;
  color: rgba(248, 244, 227, .65);
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

@media print {
  .gate, .nav, .btn { display: none !important; }
  body { overflow: visible !important; background: #fff; color: #000; }
}
