:root {
  --ink: #1F2D6B;          /* donkerblauw handschrift van de uitnodiging */
  --text: #2B2B33;
  --muted: #5d5a6b;
  --red: #D7263D;
  --paper: #F1E8DC;          /* papiertint van de illustratie */
  --pencil: #1E1E1E;
  --pink: #F6C3CF;
  --yellow: #FBE17A;
  --lilac: #D9C6EA;
  --green: #CDEAC2;
  --white: #FBF6EE;
  --focus: #965EC7;
  --radius: 18px;
  --script: "Playwrite NL", "Segoe Print", cursive;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper) var(--noise);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; text-align: center; }
h2 { font-size: clamp(1.3rem, 5vw, 1.85rem); line-height: 1.6; margin-bottom: .2em; }
h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
p { margin: .4em 0; }

.script { font-family: var(--script); font-weight: 300; color: var(--ink); }
.center { text-align: center; }
p.script { font-size: .95rem; line-height: 1.9; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.heart { color: var(--red); font-family: var(--sans); font-size: .85em; }
.hearts { text-align: center; color: var(--red); letter-spacing: .4em; margin: 0; }

.link {
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  padding: .85em 1.7em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #8f1324;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #8f1324; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f1324; }
.btn .heart { color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- kaarten met bloemenrand ---------- */
.card {
  --bw: 34px;
  position: relative;
  border-style: solid;
  border-width: 34px;
  border-image: url("img/vine-frame.svg") 50 / 34px round;
  padding: 18px 10px 22px;
  background-image: var(--noise);
  box-shadow: 0 10px 24px -14px rgba(60, 30, 50, .45);
}
.card--yellow { background-color: var(--yellow); }
.card--lilac  { background-color: var(--lilac); }
.card--green  { background-color: var(--green); }
.card--pink   { background-color: var(--pink); }
.card--white  { background-color: var(--white); }

@media (min-width: 600px) {
  .card { --bw: 44px; border-width: 44px; border-image-width: 44px; padding: 26px 28px 30px; }
}

.card-pair { display: grid; gap: 22px; }
@media (min-width: 720px) {
  .card-pair { grid-template-columns: 1fr 1fr; }
  .card-pair .card { padding-left: 14px; padding-right: 14px; }
}

/* ---------- hero (boogvorm, zoals de uitnodiging) ---------- */
.hero {
  position: relative;
  background: var(--pink) var(--noise);
  border-radius: 50% 50% 14px 14px / 190px 190px 14px 14px;
  padding: 0 16px 44px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 14px 30px -16px rgba(60, 30, 50, .5);
}
.hero::after {             /* bloemenrand langs zijkanten en onderkant */
  content: "";
  position: absolute;
  inset: 120px 8px 8px;
  border-style: solid;
  border-width: 0 26px 26px;
  border-image: url("img/vine-frame.svg") 50 / 0 26px 26px round;
  pointer-events: none;
}
.hero__bunting { display: block; width: 112%; margin: 18px -6% 0; height: auto; }
.hero__inner { position: relative; z-index: 1; padding: 6px 22px 0; }
.hero__kicker { font-size: clamp(1.15rem, 5.4vw, 1.8rem); margin-top: 8px; white-space: nowrap; }
.hero p.hero__intro { font-size: clamp(.82rem, 3.4vw, 1rem); line-height: 1.9; }

.hero__heart {
  position: relative;
  width: min(320px, 88%);
  margin: 18px auto 4px;
}
.heart-shape { display: block; width: 76%; margin: 0 auto; filter: drop-shadow(0 4px 0 rgba(215, 38, 61, .15)); }
.firework { position: absolute; width: 30%; top: 4%; }
.firework--l { left: -14%; }
.firework--r { right: -14%; top: 10%; }

.ribbon {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 118%;
  padding: .25em .4em .35em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  white-space: nowrap;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 3px, transparent 3px 9px),
    linear-gradient(#FFC9A3, #F9A97A);
  border: 2px solid #E8743B;
  border-radius: 6px;
  box-shadow: 0 3px 0 rgba(200, 90, 40, .25);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}

.date {
  font-family: var(--script);
  font-weight: 300;
  font-size: clamp(1.9rem, 9vw, 3.2rem);
  white-space: nowrap;
  color: var(--text);
  margin: 10px 0 22px;
  letter-spacing: .04em;
}
.date .heart { font-size: .45em; vertical-align: middle; }

/* ---------- lijn-iconen & doodles (stijl van de illustratie) ---------- */
.ico { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.doodle {
  position: absolute;
  top: calc(-1 * var(--bw) - var(--s) * .7);
  width: var(--s); height: var(--s);
  fill: none; stroke: var(--pencil); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.doodle .fill, .ico .fill { fill: var(--pencil); }
.doodle--left  { left:  calc(var(--x) - var(--bw)); transform: rotate(-8deg); }
.doodle--right { right: calc(var(--x) - var(--bw)); transform: rotate(10deg); }

/* ---------- getekend bruidspaar ---------- */
.couple { margin: -6px 0 0; text-align: center; }
.couple img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 14px rgba(80, 60, 40, .16));
}
.couple figcaption { font-size: clamp(1.2rem, 5vw, 1.6rem); margin-top: -.2em; }

/* ---------- tijdlijn ---------- */
.timeline { list-style: none; margin: .4em auto 0; padding: 0; max-width: 460px; }
.timeline li {
  display: grid;
  grid-template-columns: 2.1em 4.6em 1fr;
  align-items: start;
  gap: .5em;
  padding: .45em 0;
}
.timeline li + li { border-top: 1px dashed rgba(31, 45, 107, .25); }
.tl-icon { color: var(--ink); line-height: 1; text-align: center; }
.timeline time { font-size: .95rem; padding-top: .15em; }

/* ---------- ontbijt ---------- */
.croissant { text-align: center; margin: 0; color: #C25A00; }
.croissant .ico { width: 3rem; height: 3rem; stroke-width: 1.5; }
.facts { list-style: none; padding: 0; margin: 1em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: .92rem; }
.facts .ico { display: block; margin: 0 auto 4px; width: 2rem; height: 2rem; color: var(--ink); }
.facts small { display: block; color: var(--muted); }

/* ---------- overnachten ---------- */
.stays { list-style: none; padding: 0; margin: 1.2em auto .8em; max-width: 480px; display: grid; gap: 12px; }
.stay {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: #fff;
  border: 2px solid var(--pencil);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;   /* net iets 'getekend' */
  box-shadow: 3px 4px 0 var(--yellow);
}
.stay + .stay { box-shadow: 3px 4px 0 var(--lilac); }
.stay__icon { width: 36px; height: 36px; fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stay__name h3 { margin: 0; text-align: left; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.stay__name p { margin: 0; color: var(--muted); font-size: .9rem; }
.stay__price { margin: 0; font-weight: 700; font-size: 1.2rem; color: var(--ink); white-space: nowrap; text-align: right; line-height: 1.2; }
.stay__price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }

/* ---------- album (polaroids) ---------- */
.album { position: relative; padding: 18px 0 4px; }
.album__strip {
  list-style: none;
  margin: 18px -16px 0;
  padding: 14px 16px 26px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.album__strip::-webkit-scrollbar { display: none; }
.album__strip li { flex: 0 0 62%; max-width: 240px; scroll-snap-align: center; }
.polaroid {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 10px 4px;
  background: #fff;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  box-shadow: 0 8px 18px -8px rgba(60, 40, 30, .4);
  transform: rotate(var(--r, -2deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.polaroid:hover { transform: rotate(0) scale(1.03); box-shadow: 0 14px 26px -10px rgba(60, 40, 30, .45); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid span { display: block; padding: 8px 0 6px; font-size: .95rem; }
.polaroid::before {             /* stukje washi-tape */
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 70px; height: 20px;
  background: var(--tape, rgba(222, 128, 190, .6));
  transform: translateX(-50%) rotate(-4deg);
}
.album__strip li:nth-child(4n+1) .polaroid { --r: -2.5deg; --tape: rgba(255, 209, 0, .55); }
.album__strip li:nth-child(4n+2) .polaroid { --r: 2deg;    --tape: rgba(146, 193, 233, .65); }
.album__strip li:nth-child(4n+3) .polaroid { --r: -1deg;   --tape: rgba(222, 128, 190, .6); }
.album__strip li:nth-child(4n+4) .polaroid { --r: 3deg;    --tape: rgba(107, 165, 57, .5); }

@media (min-width: 720px) {
  .album__strip { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 18px 0 0; gap: 26px 22px; }
  .album__strip li { flex: 0 0 160px; }
}

.lightbox {
  border: 0;
  padding: 12px 12px 6px;
  background: #fff;
  max-width: min(92vw, 720px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.lightbox::backdrop { background: rgba(40, 30, 25, .75); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lightbox p { text-align: center; margin: .5em 0 .2em; font-size: 1.1rem; }
.lightbox__close {
  position: absolute; top: 6px; right: 6px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text);
}

/* ---------- dresscode palet ---------- */
.dresscode-line { font-size: 1.15rem; }
.palette {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 14px 8px;
}
.swatch { text-align: center; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.swatch svg { display: block; width: 62px; height: 62px; margin: 0 auto 4px; transition: transform .3s ease; }
.swatch:hover svg { transform: rotate(25deg) scale(1.06); }
.swatch b { display: block; color: var(--text); font-weight: 600; }

/* ---------- formulier ---------- */
.form { max-width: 460px; margin: 1.2em auto 0; display: grid; gap: 18px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: .45em;
  padding: 0;
}
.optional { font-family: var(--sans); font-size: .8rem; color: var(--muted); }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;            /* voorkomt inzoomen op iOS */
  color: var(--text);
  background: var(--white);
  border: 2px solid rgba(31, 45, 107, .35);
  border-radius: 12px;
  padding: .7em .85em;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 5em; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(150, 94, 199, .2); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  text-align: center;
  padding: .75em .5em;
  background: var(--white);
  border: 2px solid rgba(31, 45, 107, .35);
  border-radius: 12px;
  font-weight: 600;
  transition: all .15s;
}
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.error { display: none; color: #A3001F; font-size: .88rem; font-weight: 600; margin: .35em 0 0; }
.field.invalid .error { display: block; }
.field.invalid input[type="text"], .field.invalid .choice span { border-color: #A3001F; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { justify-self: center; margin-top: 4px; }
.form-status { text-align: center; min-height: 1.4em; font-weight: 600; margin: 0; }
.form-status.is-error { color: #A3001F; }

.thanks { text-align: center; padding: 1.4em 0 .4em; animation: pop .5s ease; }
.thanks:focus { outline: none; }
.thanks__big { font-size: 2.6rem; margin: 0; color: var(--red); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

.divider { display: block; width: 220px; max-width: 70%; margin: 1.8em auto .6em; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 26px 16px 40px; color: var(--muted); font-size: .9rem; }
.footer .script { font-size: 1.4rem; margin: 0; }

/* confetti bij aanmelden */
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 50; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 105vh, 0) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti { display: none; }
}
