/* ---------- Theme ---------- */
:root {
  --burgundy: #6b2737;
  --burgundy-dark: #4a1a26;
  --gold: #c9a961;
  --gold-soft: #d8bd84;
  --gold-text: #8a6d2f; /* darker bronze — gold with enough contrast for text on cream */
  --forest: #3d4a3d;
  --cream: #f7f3ec;
  --cream-dark: #ede5d6;
  --ink: #2c2620;
  --muted: #6b6055;
  --terracotta: #b5651d;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --maxw: 960px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--burgundy); color: var(--cream); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  /* A whisper of paper grain so the cream never reads as flat white */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .22 0 0 0 .05 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--burgundy); text-decoration: none; }
img { max-width: 100%; display: block; }


/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  color: var(--burgundy);
  letter-spacing: .2em;
  justify-self: start;
  white-space: nowrap;
}
.nav__brand .amp { color: var(--gold); font-style: italic; }
.nav__links {
  display: flex; flex-wrap: nowrap;
  gap: clamp(.6rem, 2.1vw, 2.2rem);
  list-style: none; margin: 0; padding: 0;
  justify-self: center; grid-column: 2;
  /* Last-resort valve: nudge the row sideways rather than let it stack up */
  min-width: 0; overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
/* Without this the items shrink below their text and every label wraps */
.nav__links li { flex: none; }
.nav__links a {
  display: block;
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: clamp(.7rem, 1.45vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav__links a:hover { color: var(--burgundy-dark); border-bottom-color: var(--gold); }
/* Day/night switch, top right. The icon shows the mode you would switch TO:
   a moon on the light look, a sun on the dark look (script.js swaps it). */
.mode-toggle {
  grid-column: 3;
  justify-self: end;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-text);
  font-size: .95rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mode-toggle:hover { color: var(--burgundy); border-color: var(--burgundy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Deliberately short of a full screen: the top of the next section has to
     peek over the fold, otherwise the banner reads as the whole page. */
  min-height: calc(100vh - 14rem);
  min-height: calc(100svh - 14rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 7rem;
  color: var(--cream);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(201,169,97,.14), transparent 60%),
    linear-gradient(160deg, #211318 0%, #331820 30%, var(--burgundy-dark) 55%, var(--burgundy) 80%, #552130 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 44rem;
  padding: 3rem 2rem;
}
/* Soft vignette behind the text: the darkening + blur fades out radially
   instead of ending in a hard-edged band across the bokeh. */
.hero__inner::before {
  content: "";
  position: absolute; inset: -3rem -5rem;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(33, 19, 24, 0.66) 0%, rgba(51, 24, 32, 0.48) 55%, transparent 78%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
}
.hero__bokeh { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
/* Candles flowing down a river: six meandering paths for varied, random streaming */
@keyframes flow-1 {
  0%   { opacity: 0; transform: translate(0, -12vh) scale(.7); }
  10%  { opacity: var(--peak, .9); }
  30%  { transform: translate(-50px, 25vh) scale(1.15); }
  55%  { transform: translate(45px, 48vh) scale(1); }
  80%  { opacity: calc(var(--peak, .9) * .85); transform: translate(-25px, 70vh) scale(1.1); }
  100% { opacity: 0; transform: translate(20px, 90vh) scale(.8); }
}
@keyframes flow-2 {
  0%   { opacity: 0; transform: translate(0, -12vh) scale(.7); }
  12%  { opacity: var(--peak, .9); }
  35%  { transform: translate(60px, 22vh) scale(1.2); }
  60%  { transform: translate(-40px, 47vh) scale(.95); }
  82%  { opacity: calc(var(--peak, .9) * .8); transform: translate(30px, 72vh) scale(1.05); }
  100% { opacity: 0; transform: translate(-20px, 90vh) scale(.85); }
}
@keyframes flow-3 {
  0%   { opacity: 0; transform: translate(0, -10vh) scale(.8); }
  14%  { opacity: var(--peak, .85); }
  40%  { transform: translate(-30px, 32vh) scale(1.1); }
  65%  { transform: translate(20px, 55vh) scale(1); }
  85%  { opacity: calc(var(--peak, .85) * .75); transform: translate(-30px, 75vh) scale(1.05); }
  100% { opacity: 0; transform: translate(15px, 88vh) scale(.8); }
}
@keyframes flow-4 {
  0%   { opacity: 0; transform: translate(0, -10vh) scale(.75); }
  11%  { opacity: var(--peak, .9); }
  25%  { transform: translate(35px, 18vh) scale(1.1); }
  50%  { transform: translate(-55px, 42vh) scale(1.25); }
  75%  { opacity: calc(var(--peak, .9) * .8); transform: translate(25px, 65vh) scale(.95); }
  100% { opacity: 0; transform: translate(-15px, 88vh) scale(.85); }
}
@keyframes flow-5 {
  0%   { opacity: 0; transform: translate(0, -14vh) scale(.85); }
  16%  { opacity: var(--peak, .8); }
  45%  { transform: translate(-70px, 28vh) scale(1.05); }
  70%  { transform: translate(40px, 55vh) scale(1.15); }
  88%  { opacity: calc(var(--peak, .8) * .7); transform: translate(-20px, 76vh) scale(1); }
  100% { opacity: 0; transform: translate(10px, 90vh) scale(.75); }
}
@keyframes flow-6 {
  0%   { opacity: 0; transform: translate(0, -12vh) scale(.7); }
  13%  { opacity: var(--peak, .95); }
  30%  { transform: translate(25px, 20vh) scale(1.2); }
  50%  { transform: translate(-35px, 45vh) scale(1); }
  70%  { transform: translate(50px, 62vh) scale(1.1); }
  88%  { opacity: calc(var(--peak, .95) * .75); transform: translate(-10px, 80vh) scale(1); }
  100% { opacity: 0; transform: translate(20px, 90vh) scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .bokeh { animation: none; opacity: .5; }
  .hero__scroll-arrow { animation: none; }
}
.hero__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; letter-spacing: .04em; opacity: .85; margin-bottom: 1rem; }
.hero__names { font-size: clamp(3rem, 9vw, 6.5rem); margin: 0; font-weight: 500; letter-spacing: .02em; }
.hero__names .amp { color: var(--gold); font-style: italic; font-weight: 400; }.hero__date { font-family: var(--font-display); font-size: 1.4rem; margin-top: 1rem; letter-spacing: .05em; }
.hero__loc { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 2rem; }
/* Pinned to the bottom edge of the banner, so it sits right on the fold */
.hero__scroll {
  position: absolute; z-index: 3;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  color: var(--cream);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s;
}
.hero__scroll:hover { color: var(--gold-soft); }
.hero__scroll-arrow {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  font-size: 1.15rem; line-height: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: scroll-hint 2.4s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
.hero .btn { margin-top: .5rem; background: var(--burgundy); border-color: var(--gold-soft); }
.hero .btn:hover { background: var(--burgundy-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 2.2rem;
  font-family: var(--font-body);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--gold); color: var(--burgundy-dark); }

/* ---------- Sections ---------- */
.section {
  padding: 6rem 1.5rem;
  scroll-margin-top: 5rem;
  position: relative;
  overflow: hidden;
  /* Candlelight on the day page: gold falling from the top of each section,
     a whisper of burgundy rising from the foot. The night page swaps in its
     own quieter version at the bottom of this file. */
  background-image:
    radial-gradient(60% 24rem at 50% 0%, rgba(201, 169, 97, 0.24), transparent 75%),
    radial-gradient(110% 32rem at 50% 100%, rgba(107, 39, 55, 0.10), transparent 70%);
}
.section--alt {
  background-color: var(--cream-dark);
  background-image:
    radial-gradient(60% 24rem at 50% 0%, rgba(201, 169, 97, 0.26), transparent 75%),
    radial-gradient(110% 32rem at 50% 100%, rgba(107, 39, 55, 0.11), transparent 70%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .22 0 0 0 .05 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}
.section--center { text-align: center; }

/* Watermark in the quiet side space of Gifts */
#gifts::after {
  content: "&";
  position: absolute;
  z-index: -1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24rem;
  line-height: 1;
  color: var(--gold);
  opacity: .08;
  pointer-events: none;
  right: 0;
  bottom: -7rem;
}
@media (max-width: 1100px) {
  #gifts::after { display: none; }
}
/* Keep centered-section content constrained; more specific rules below
   (.lede, .divider, .location__photo, .grid) still set their own widths. */
.section--center > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; color: var(--burgundy); }
.lede { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.link { border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.link:hover { color: var(--burgundy); }

/* ---------- Divider ---------- */
.divider { color: var(--gold); max-width: 220px; margin: 1.5rem auto 2.5rem; }
.divider svg { width: 100%; height: auto; }

/* ---------- Card ---------- */
.card {
  background: #fff;
  padding: 2rem;
  text-align: left;
  border-radius: 2px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(74, 26, 38, 0.1);
}
.card h3 { color: var(--burgundy); font-size: 1.4rem; }
.card--centred { text-align: center; }
/* The card's own top rule is the line, with the drawing sitting in a gap
   punched out of it — so there is one line, not a border plus a divider.
   The top rule stays 1.5px (drawn by the topper halves below); the sides and
   bottom are a shade thinner at 1px. */
.card--icon {
  position: relative;
  border: 1px solid var(--gold);
  /* No top rule of its own: the two halves below draw it, so the gap around
     the drawing is a real gap and not a patch of colour over the background */
  border-top: none;
  padding-top: 2.6rem;
}
.card__topper {
  position: absolute;
  top: 0;
  /* Reach past the 1px side borders, so the top rule runs from the card's
     outer left edge to its outer right edge */
  left: -1px;
  right: -1px;
  display: flex;
  align-items: center;
  gap: .85rem;
  transform: translateY(-50%);
  line-height: 0;
  color: var(--gold);
}
.card__topper::before, .card__topper::after {
  content: "";
  flex: 1 1 auto;
  height: 1.5px;
  background: currentColor;
}
/* Font Awesome glyphs, so size is font-size rather than a height */
.card__icon { flex: none; font-size: 24px; line-height: 1; }

/* List whose bullets are little hearts. The shape is a mask rather than a
   coloured image, so the colour still comes from the palette above. */
.hearts-list { list-style: none; margin: 0; padding: 0; }
/* Email addresses are long unbroken strings — let them break rather than
   push out past the edge of a narrow card */
.hearts-list li { position: relative; padding-left: 1.45em; margin-bottom: .8em; overflow-wrap: anywhere; }
.hearts-list li:last-child { margin-bottom: 0; }
/* Set down a step so the longest address still sits on one line in the card */
.hearts-list .email { font-size: .85rem; }
.hearts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: .72em;
  height: .66em;
  background-color: var(--gold-text);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'><path d='M12 21C12 21 1 13.5 1 7.2 1 3.6 3.8 1 7 1c2.3 0 4 1.4 5 3 1-1.6 2.7-3 5-3 3.2 0 6 2.6 6 6.2C23 13.5 12 21 12 21z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'><path d='M12 21C12 21 1 13.5 1 7.2 1 3.6 3.8 1 7 1c2.3 0 4 1.4 5 3 1-1.6 2.7-3 5-3 3.2 0 6 2.6 6 6.2C23 13.5 12 21 12 21z'/></svg>") center / contain no-repeat;
}

/* An icon sitting in a running line of text. A glyph rides the baseline on its
   own, so no vertical nudging needed. */
.icon-inline {
  font-size: .92em;
  color: var(--gold-text);
}

/* Beside a timeline heading there is room to be far more generous than in a
   running line of text, and these drawings need it to be readable — but a
   shade below the heading size keeps them from competing with the words */
.timeline__body h3 .icon-inline { font-size: .8em; }

/* ---------- Location photo ---------- */
.location__photo {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 0;
}
.location__photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(74, 26, 38, 0.18);
}

/* ---------- Grid ---------- */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--maxw); margin: 0 auto;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  /* Full width of the section now that nothing stands beside it — that is what
     gives the notes room to sit on one line */
  max-width: none;
  position: relative;
}
/* The thread of the day: a gold hairline connecting each moment */
.timeline::before {
  content: "";
  position: absolute; left: 112px; top: 1.5rem; bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 7%, var(--gold-soft) 93%, transparent);
}
.timeline li {
  display: grid; grid-template-columns: 90px 1fr; gap: 3.25rem;
  padding: 1.2rem 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute; left: 112px; top: 2.05rem;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1.5px solid var(--gold-text);
}
.timeline__time { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-text); text-align: right; }
.timeline__body h3 { margin-bottom: .25rem; color: var(--burgundy); font-size: 1.5rem; }
.timeline__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.timeline__body p + p { margin-top: .4em; }

/* Polaroid: white border deeper at the foot, tipped a few degrees as if
   it were left lying on the table */
.polaroid {
  margin: 0;
  /* Polaroid proportions: even margin on three sides, a deep chin at the foot */
  padding: .9rem .9rem 4rem;
  max-width: 300px;
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(74, 26, 38, .22), 0 2px 4px rgba(74, 26, 38, .12);
  transform: rotate(3deg);
}
.polaroid img {
  width: 100%;
  height: auto;
  /* No filter: the photo shows in its own colours */
}

/* ---------- Planning: schedule left, photo to the right of it ---------- */
.planning__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
/* Against the left edge of its column rather than centred in it */
.planning__layout .timeline { margin-top: 0; margin-left: 0; margin-right: auto; }

/* Below this the two columns get too narrow — stack, photo underneath */
@media (max-width: 860px) {
  .planning__layout { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
  .planning__layout .timeline { width: 100%; }
  .polaroid { transform: rotate(1.5deg); }
}

/* The whole deadline line carries the emphasis, not just the date */
.rsvp__deadline {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
}

/* ---------- RSVP form ---------- */
.rsvp { max-width: 640px; margin: 2rem auto 0; text-align: left; }
.field { margin-bottom: 1.5rem; }
/* The kopjes boven een veld of een groepje knoppen. `>` houdt de pill-labels
   erbuiten: die zijn zelf de knop en dragen hun eigen opmaak. */
.field > label, .field .field__label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
/* An aside inside a label: dropped out of the uppercase so it reads as a note */
.field > label .hint { text-transform: none; letter-spacing: 0; font-size: 1.05em; }
.field > label .hint--block { display: block; margin-top: .25rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .8rem; color: var(--ink);
  background: #fff; border: 1px solid var(--cream-dark); border-radius: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

/* One block per person: name, whether they are coming, and which parts of the
   day. A rule separates the second person from the first. */
.guest + .guest { padding-top: 1.15rem; border-top: 1px solid var(--cream-dark); }
/* Tighter under the last answer of a block than between the fields inside it */
.guest .field:last-child { margin-bottom: .9rem; }
/* ---------- Pills: de tikbare keuzeknoppen van het RSVP ----------
   Radio's en checkboxes getekend als afgeronde chips: je tikt op het woord,
   niet op een piepklein rondje. De echte input is onzichtbaar maar behoudt
   focus, dus toetsenbord en schermlezer blijven gewoon werken. */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.pill span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .48rem 1.05rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .18s, color .18s, border-color .18s;
}
.pill span i { color: var(--gold-text); font-size: .95em; }
.pill span:hover { border-color: var(--burgundy); }
.pill input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.pill input:checked + span i { color: var(--gold-soft); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* De dagdelen klappen dicht op "nee"; de dinerdetails (menukeuze + dieet)
   zolang "diner" niet is aangetikt. [hidden] moet van de flex hierboven
   winnen. */
.dagdelen[hidden], .diner-detail[hidden] { display: none; }
/* Menukeuze en dieetwensen horen bij het diner: ingesprongen onder de
   dagdelen, met een gouden draadje dat ze eraan vastknoopt */
.diner-detail {
  margin: .9rem 0 0 .35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gold-soft);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.diner-detail .field__label { margin-bottom: 0; }
.rsvp .btn { background: var(--burgundy); border-color: var(--burgundy); }
.rsvp .btn:hover { background: var(--burgundy-dark); color: var(--cream); }
.rsvp .btn:disabled { opacity: .6; cursor: default; }

/* Persoonlijke uitnodiging: de naam staat boven het blok in plaats van in een
   invulveld, met eventueel een noot eronder (bv. "welkom vanaf 20:00"). */
.guest__naam { font-size: 1.4rem; color: var(--burgundy); margin-bottom: .15em; }
.guest__noot { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted); margin: 0 0 1em; }
/* Melding boven de verstuurknop als het versturen misgaat */
.rsvp__status { color: #9c3325; font-size: .9rem; }
/* Bovenaan het formulier wanneer er al een reactie in de sheet staat en het
   formulier dus vooringevuld is */
.rsvp__eerder { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--muted); margin-bottom: 1.6rem; }
/* Vervangt het hele formulier zodra de reactie echt is aangekomen */
.rsvp__done { text-align: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--burgundy); margin: 2.5rem 0; }

/* ---------- Gift cards (Cadeaus) ---------- */
.gift-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
/* Five cards: three on the first row, the remaining two centred beneath.
   The icon rides in the top rule, drawn by .card__topper just like the other
   cards — hence the missing top border and the room above the photo. */
.gift {
  position: relative;
  flex: 1 1 260px;
  max-width: 330px;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--gold);
  border-top: none;
  border-radius: 2px;
  padding-top: 2.2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(74, 26, 38, 0.1); }
/* Any photo size works: cropped to 3:2 by the browser. The background fills
   the gap while the photo loads (or is still missing). */
.gift__foto { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream-dark); }
.gift__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.35rem 1.5rem; }
.gift__body h3 { color: var(--burgundy); font-size: 1.35rem; margin-bottom: .35rem; }
/* flex: 1 pushes the button to the same height in every card of a row */
.gift__body p { color: var(--muted); font-size: .92rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.gift .btn { align-self: center; background: var(--burgundy); border-color: var(--burgundy); padding: .65rem 1.8rem; }
.gift .btn:hover { background: var(--burgundy-dark); color: var(--cream); }
.gift-fallback { margin-top: 2.25rem; max-width: 36rem; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 4rem 1.5rem; background: var(--burgundy-dark); color: var(--cream); }
.footer .divider { max-width: 170px; margin: 0 auto 1.75rem; color: var(--gold-soft); opacity: .8; }
.footer__names { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: .5rem; }
.footer__names .amp { color: var(--gold); font-style: italic; }
.footer .muted { color: rgba(247,243,236,.6); margin-bottom: .3rem; }

/* ---------- Floating RSVP button ---------- */
/* Added by script.js: keeps the call-to-action within reach once the hero
   (with its own RSVP button) has scrolled away, and hides again while the
   form itself is on screen. Until a response is in (class has-rsvpd on
   <body>), it shimmies now and then. */
.rsvp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  /* A pill, unlike the square-cornered buttons in the page flow: floating
     over the content it reads as its own little object, not as a box */
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--burgundy);
  border-color: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(74, 26, 38, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.rsvp-fab i { font-size: 1rem; }
.rsvp-fab:hover { background: var(--burgundy-dark); color: var(--cream); }
.rsvp-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.has-rsvpd) .rsvp-fab.is-visible {
    animation: rsvp-nudge 9s ease-in-out 4s infinite;
  }
}
/* The shimmy lives in the first ~0.7s of each 9s loop; the rest is rest */
@keyframes rsvp-nudge {
  0%, 8%, 100% { transform: none; }
  1.5% { transform: rotate(-2.5deg) scale(1.05); }
  3% { transform: rotate(2.5deg) scale(1.05); }
  4.5% { transform: rotate(-1.5deg) scale(1.03); }
  6% { transform: rotate(1deg) scale(1.01); }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: .7rem 1rem; grid-template-columns: auto 1fr auto; gap: .5rem; }
  .nav__brand { font-size: 1.1rem; letter-spacing: .12em; }
  .nav__links { gap: .55rem; grid-column: 2; justify-self: end; }
  .nav__links a { font-size: .7rem; letter-spacing: .03em; padding: .2rem 0; }
  .mode-toggle { width: 1.9rem; height: 1.9rem; font-size: .8rem; }
  .section { padding: 4rem 1.25rem; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 2.25rem; }
  .timeline::before, .timeline li::before { left: 82px; }
  /* Back down a step: the enlarged times do not fit the narrow time column */
  .timeline__time { font-size: 1.45rem; }
  .timeline__body h3 { font-size: 1.25rem; }
  .hero { padding: 2.5rem 1.5rem 6.5rem; }
  .hero__inner { padding: 1.5rem 1rem; }
  .hero__names .amp { display: block; line-height: 1; margin: .1em 0; }
  .hero__scroll { font-size: .7rem; letter-spacing: .12em; }
}

/* On the narrowest phones the five links need the whole bar to themselves.
   The monogram goes — the names are right below it in the banner anyway. */
@media (max-width: 460px) {
  .nav { grid-template-columns: 1fr auto; padding: .6rem .75rem; }
  .nav__brand { display: none; }
  .nav__links { grid-column: 1; justify-self: stretch; justify-content: space-between; gap: .4rem; }
  .nav__links a { font-size: .66rem; letter-spacing: .02em; }
  .mode-toggle { grid-column: 2; }
}

/* ---------- Nachtversie (avond.html) ---------- */
/* avond.html zet class="night" op <body>; alles hieronder geldt alleen daar,
   de dagversie blijft onaangeroerd. Zelfde ontwerptaal, maar dan bij
   kaarslicht: diep pruimdonker, crème tekst, goud blijft goud. */
body.night {
  background-color: #221219;
  /* These tokens serve (nearly) only as text and line colours, so on dark they
     may simply step up a shade — surfaces are overridden individually below */
  --ink: #f0e7d8;
  --muted: #c2b1a3;
  --gold-text: #d8bd84;
}
.night .nav {
  background: rgba(26, 13, 19, 0.92);
  border-bottom-color: rgba(201, 169, 97, 0.25);
}
.night .nav__brand, .night .nav__links a { color: var(--gold-soft); }
.night .nav__links a:hover { color: var(--gold); }
.night .mode-toggle { color: var(--gold-soft); border-color: rgba(201, 169, 97, 0.4); }
.night .mode-toggle:hover { color: var(--gold); border-color: var(--gold); }
.night a { color: var(--gold-soft); }
.night .link:hover { color: var(--gold); }
/* .night a outranks .btn on specificity, so hand the buttons their cream back */
.night .btn { color: var(--cream); }
/* The burgundy shadow disappears on dark; a plain black one keeps the lift */
.night .rsvp-fab { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.night .section__title { color: var(--gold-soft); }
/* De dagpagina kreeg fellere gradiënten; op donker is de oorspronkelijke
   zachte goudgloed precies goed, dus die komt hier terug */
.night .section {
  background-image: radial-gradient(60% 24rem at 50% 0%, rgba(201, 169, 97, 0.09), transparent 75%);
}
.night .section--alt {
  background-color: #2a1720;
  background-image:
    radial-gradient(60% 24rem at 50% 0%, rgba(201, 169, 97, 0.09), transparent 75%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .22 0 0 0 .05 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}
.night .card { background: #2e1b24; }
.night .card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.night .card h3 { color: var(--gold-soft); }
.night .timeline__body h3 { color: var(--gold-soft); }
/* The dot's fill must match the night surfaces, not the daytime cream */
.night .timeline li::before { background: #2e1b24; }
.night .location__photo img { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.night .polaroid { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3); }
/* The big & needs a step more presence against the dark */
.night #gifts::after { opacity: .13; }
.night .field input:not([type="radio"]):not([type="checkbox"]), .night .field textarea {
  background: #1c0f15;
  border-color: #4d3843;
}
/* Een bordeauxrode chip verdrinkt op donker — de gekozen pill wordt goud */
.night .pill span { background: #1c0f15; border-color: #4d3843; }
.night .pill span:hover { border-color: var(--gold); }
.night .pill input:checked + span { background: var(--gold); border-color: var(--gold); color: #221219; }
.night .pill input:checked + span i { color: inherit; }
.night .guest + .guest { border-top-color: rgba(201, 169, 97, 0.25); }
.night .rsvp .btn { border-color: var(--gold-soft); }
.night .guest__naam { color: var(--gold-soft); }
/* De dagkleuren voor deze meldingen verdrinken op donker — een tint lichter */
.night .rsvp__status { color: #e39b8a; }
.night .rsvp__done { color: var(--gold-soft); }
.night .gift { background: #2e1b24; border-color: rgba(201, 169, 97, 0.45); }
.night .gift:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.night .gift__foto { background: #1c0f15; }
.night .gift__body h3 { color: var(--gold-soft); }
.night .gift .btn { color: var(--cream); border-color: var(--gold-soft); }
