/* ==========================================================================
   Trouwsite Miek + Mathieu — stijlen
   Layout: gecentreerd woordmerk + menu, één tekstkolom van 640px,
   ivory achtergrond met burgundy tekst en een gekleurde band voor de golf.
   Kleuren aanpassen? Wijzig enkel de tokens hieronder.
   ========================================================================== */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Italiana";
  src: url("../fonts/italiana-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Kleuren uit het trouwpalet */
  --bg: #f4e2ca;          /* achtergrond (ivory) */
  --ink: #691b19;         /* tekst, lijnen, knoppen (burgundy) */
  --accent: #556251;      /* gemarkeerde woorden (sage green) */
  --on-accent: #f4e2ca;   /* tekst op gemarkeerde woorden */
  --band-bg: #a84e27;     /* gekleurde band (rust) */
  --band-ink: #f4e2ca;    /* tekst in die band */
  --field: #fffaf2;       /* invulvelden */
  --field-ink: #691b19;   /* tekst in invulvelden */

  /* Letters */
  --font-wordmark: "Italiana", "Bodoni MT", Didot, Georgia, serif;
  --font-display: "Gloock", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Maten */
  --col: 640px;
  --wide: 896px;
  --gutter: clamp(20px, 6vw, 64px);
}

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

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

/* --- Kop en menu ---------------------------------------------------------- */

.site-header {
  padding: 80px var(--gutter) 0;
  text-align: center;
}

.wordmark {
  display: inline-block;
  font-family: var(--font-wordmark);
  font-size: clamp(2.1rem, 9vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: balance;
}
.wordmark .plus { padding: 0 0.18em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 32px;
  padding: 28px var(--gutter) 0;
}
.nav a { text-decoration: none; }
.nav a:hover,
.nav a[aria-current="page"] { text-decoration: underline; }

main { flex: 1; }

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.4vw, 2.5rem); line-height: 1.3; }
h2 { font-size: 1.75rem; line-height: 1.3; margin-top: 44px; }
p  { margin: 16px 0 0; }

.small { font-size: 0.72em; line-height: 1.6; margin-top: 24px; }

/* Gemarkeerde woorden: gebruik <mark>...</mark> in de teksten */
mark {
  display: inline-block;
  padding: 0 0.42em;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  line-height: 1.4;
  border-radius: 3px;
  transform: rotate(-1.6deg);
  box-shadow: 1px 2px 0 color-mix(in srgb, var(--accent) 35%, transparent);
}
mark:nth-of-type(even) { transform: rotate(1.3deg); }

.rich ul { margin: 16px 0 0; padding-left: 1.2em; }
.rich li + li { margin-top: 10px; }

/* Foto's in een tekst: de eerste over de volle breedte, de volgende per twee */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.gallery img:first-child { grid-column: 1 / -1; }

/* Kleurenpalet in een tekst: <ul class="palette"><li><span style="background:#..."></span>Naam</li></ul> */
.rich .palette {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
}
.rich .palette li { margin: 0; width: 84px; font-size: 0.72em; line-height: 1.3; text-align: center; }
.palette span {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent);
}

.schedule { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.schedule li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.rich .schedule { padding-left: 0; }
.rich .schedule li + li { margin-top: 0; }

/* --- Home ---------------------------------------------------------------- */

.hero {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(104px, 21vw, 236px) var(--gutter) clamp(96px, 20vw, 220px);
  text-align: center;
}
.hero-dates { margin-top: 28px; }
.hero-dates > span { display: block; text-wrap: balance; }
.hero-dates > span + span { margin-top: 6px; }
.nb { white-space: nowrap; }

.story {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 14vw, 176px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(32px, 8vw, 80px);
  align-items: center;
}
.story-text p:first-child { margin-top: 0; }

.arches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}
.arch {
  aspect-ratio: 2 / 3;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 16%, var(--bg));
}
/* Foto's in kleur. Liever zwart-wit zoals in het voorbeeld? Voeg dan "filter: grayscale(1);" toe. */
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* --- Band met golvende tekst ---------------------------------------------- */

.band {
  padding: clamp(72px, 12vw, 128px) 0 clamp(88px, 15vw, 160px);
  text-align: center;
}
.band--color {
  background: var(--band-bg);
  color: var(--band-ink);
  --btn-ink: var(--band-ink);
  --btn-bg: var(--band-bg);
}

.wave {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.wave svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}
.wave text {
  font-family: var(--font-display);
  font-size: 40px;
  fill: currentColor;
  white-space: pre;
}
.wave .hand {
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
  font-size: 0.8em;
}

/* Toegangscode in de band op de homepage */
.gate {
  max-width: calc(420px + 2 * var(--gutter));
  margin: 8px auto 0;
  padding: 0 var(--gutter);
}
.gate .step-title { margin-top: 0; }
.gate .field { margin-inline: auto; text-align: left; }
#gate-soon { max-width: calc(var(--col) + 2 * var(--gutter)); }
.soon {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.4vw, 2.6rem);
  line-height: 1.2;
  text-wrap: balance;
}
.gate input[type="text"] { border-color: var(--band-ink); text-align: center; letter-spacing: 0.08em; }

.button {
  display: inline-block;
  padding: 12px 48px;
  border: 1.6px solid currentColor;
  border-radius: 80px;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--btn-ink, var(--ink)); color: var(--btn-bg, var(--bg)); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button:disabled:hover { background: transparent; color: inherit; }
.button--small { padding: 8px 28px; font-size: 1.15rem; }

/* --- Tekstpagina's ------------------------------------------------------- */

.page {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(88px, 17vw, 200px) var(--gutter) clamp(72px, 12vw, 120px);
}

/* --- Formulieren --------------------------------------------------------- */

.step-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 28px;
}

form { margin: 0; }
.field { margin-top: 24px; max-width: 480px; }
.field--wide { max-width: none; }

label,
legend {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.72em;
  font-weight: 600;
}
fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.6px solid var(--ink);
  border-radius: 6px;
  background: var(--field);
  color: var(--field-ink);
  font: inherit;
  font-size: 0.9em;
}
input[type="number"] { max-width: 120px; }
textarea { min-height: 96px; resize: vertical; }
::placeholder { color: color-mix(in srgb, var(--field-ink) 55%, var(--field)); opacity: 1; }

.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choices + .choices { margin-top: 12px; }
.choices--stack { flex-direction: column; align-items: flex-start; }
.choice { position: relative; margin: 0; font-size: 0.9em; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block;
  padding: 8px 24px;
  border: 1.6px solid var(--ink);
  border-radius: 28px;
}
.choice input:checked + span { background: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 4px; }

.songs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.songs .field { max-width: none; }

.actions { margin-top: 32px; }
.message { margin-top: 16px; font-size: 0.8em; font-weight: 700; }
.message:empty { display: none; }
.notice {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 14px;
  border: 1.6px dashed currentColor;
  border-radius: 6px;
  font-size: 0.72em;
}

/* --- Overzicht voor het bruidspaar ---------------------------------------- */

.page--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }

.totals { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.8em; }

.table-wrap { overflow-x: auto; margin-top: 20px; }
.table-wrap table { min-width: 620px; } /* op gsm scrolt de tabel in haar kader i.p.v. samen te drukken */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72em;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: 8px 16px 8px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}
th { font-weight: 700; white-space: nowrap; }
tr.is-old td { opacity: 0.55; text-decoration: line-through; }

.actions--row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* --- Voet ----------------------------------------------------------------- */

.foot { padding: 28px var(--gutter) 48px; text-align: center; }
.linklike {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.72em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* --- Smal scherm --------------------------------------------------------- */

@media (max-width: 719px) {
  body { font-size: 18px; }
  .site-header { padding-top: 64px; }
  .nav { gap: 4px 22px; padding-top: 22px; font-size: 0.92em; }
  .story { grid-template-columns: 1fr; }
  .arches { gap: 12px; }
  .wave { height: 110px; }
  .wave text { font-size: 30px; }
  .button { font-size: 1.4rem; padding: 10px 36px; }
  .button--small { font-size: 1.05rem; padding: 8px 24px; }
  .songs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
