/* ==========================================================================
   base.css — reset, typografie en de "zachte" basisbeleving
   Werkt op kale WordPress-markup (the_content, widgets, comments).
   ========================================================================== */

/* ---------- Zachte paginaovergangen (cross-document View Transitions) ----------
   In een klassiek thema is elke klik een nieuwe pagina. Hiermee vloeit de ene
   pagina in de andere in plaats van te flitsen. Browsers zonder ondersteuning
   negeren dit gewoon. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: var(--duur-l) var(--curve-adem) both vz-vervaag-uit;
}
::view-transition-new(root) {
  animation: var(--duur-l) var(--curve-adem) both vz-vervaag-in;
}
@keyframes vz-vervaag-uit { to { opacity: 0; filter: blur(6px); } }
@keyframes vz-vervaag-in  { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;   /* ruimer dan de sticky header: focus en ankers nooit eronder (2.4.11) */
  background: var(--kleur-achtergrond);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  font-family: var(--font-tekst);
  font-size: var(--tekst-m);
  font-weight: var(--gewicht-normaal);
  line-height: var(--regel-tekst);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}
a[href^="mailto:"] { overflow-wrap: anywhere; }

img, svg, video, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--teal-200); color: var(--cacao-900); }

/* ---------- Focus: zichtbaar, maar als een zachte gloed ---------- */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--rond-s);
  transition: box-shadow var(--duur-snel) var(--curve-zacht);
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-kop);
  font-weight: var(--gewicht-normaal);  /* Goudy regular: zacht, nooit vet */
  line-height: var(--regel-kop);
  color: var(--kleur-tekst);
  text-wrap: balance;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;   /* lange woorden passen ook bij grote tekst of extra letterafstand */
  hyphens: auto;
}
h1 { font-size: var(--tekst-3xl); line-height: var(--regel-strak); letter-spacing: -0.015em; }
h2 { font-size: var(--tekst-2xl); }
h3 { font-size: var(--tekst-xl); }
h4 { font-size: var(--tekst-l); }
h5, h6 {
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: var(--gewicht-half);
  letter-spacing: var(--spatie-kapitaal);
  text-transform: uppercase;
  color: var(--kleur-goud-tekst);
}

p, ul, ol, dl, blockquote, figure, table { margin: 0; }
p { text-wrap: pretty; }

strong, b { font-weight: var(--gewicht-half); }
small { font-size: var(--tekst-s); }

/* Lopende tekst uit de editor: ritme zonder per-element-marges te stapelen */
.prose, .entry-content {
  max-width: var(--leesbreedte);
  color: var(--kleur-tekst);
}
.prose > * + *, .entry-content > * + * { margin-top: 1.1em; }
.prose > * + :is(h2, h3), .entry-content > * + :is(h2, h3) { margin-top: 1.8em; }
.prose > :is(h2, h3) + *, .entry-content > :is(h2, h3) + * { margin-top: 0.6em; }
.prose ul, .entry-content ul,
.prose ol, .entry-content ol { padding-left: 1.3em; }
.prose li + li, .entry-content li + li { margin-top: 0.35em; }
.prose ul li::marker, .entry-content ul li::marker { color: var(--kleur-goud); }

/* ---------- Links: onderstreping die zacht inkleurt ---------- */
a {
  color: var(--kleur-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(4 112 108 / 0.55);   /* duidelijke onderstreping: link herkenbaar zonder kleur (1.4.1) */
  text-underline-offset: 0.22em;
  transition:
    color var(--duur-m) var(--curve-zacht),
    text-decoration-color var(--duur-m) var(--curve-zacht),
    text-underline-offset var(--duur-m) var(--curve-zacht);
}
a:hover {
  color: var(--kleur-accent-hover);
  text-decoration-color: currentColor;
  text-underline-offset: 0.32em;
}

/* ---------- Overige elementen ---------- */
hr {
  border: 0;
  height: 1px;
  margin-block: var(--ruimte-l);
  background: linear-gradient(90deg, transparent, var(--kleur-lijn-sterk) 20%, var(--kleur-lijn-sterk) 80%, transparent);
}

blockquote {
  font-family: var(--font-kop);
  font-style: italic;
  font-size: var(--tekst-l);
  line-height: 1.5;
  color: var(--kleur-tekst);
  padding-left: var(--ruimte-m);
  border-left: 2px solid var(--zand-400);
  border-radius: 2px;
}

/* ---------- Hulpklassen ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--goot));
  margin-inline: auto;
  padding-inline: var(--goot);
}
.container--smal { max-width: calc(var(--container-smal) + 2 * var(--goot)); }

.sectie { padding-block: var(--ruimte-2xl); position: relative; }
.sectie--warm { background: var(--kleur-achtergrond-warm); }
.sectie--koel { background: var(--kleur-achtergrond-koel); }
.sectie--gloed { background-image: var(--verloop-gloed); }

.label {
  display: inline-block;
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: var(--gewicht-medium);
  letter-spacing: var(--spatie-kapitaal);
  text-transform: uppercase;
  color: var(--kleur-goud-tekst);
  hyphens: manual;   /* labels (ook in de h1) nooit midden in een woord afbreken */
}
.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--kleur-tekst);
}
.intro {
  font-size: var(--tekst-l);
  font-weight: var(--gewicht-licht);
  line-height: 1.6;
  color: var(--kleur-tekst-zacht);
  max-width: 52ch;
}
.tekst-zacht { color: var(--kleur-tekst-zacht); }

.visually-hidden, .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 999;
  width: auto; height: auto; clip: auto;
  padding: 0.75rem 1.25rem;
  background: var(--kleur-oppervlak);
  border-radius: var(--rond-pil);
  box-shadow: var(--focus-ring), var(--schaduw-m);
}

/* ---------- Binnenkomen: secties drijven zacht omhoog ----------
   Rusttoestand is zichtbaar. Alleen als JS draait én beweging mag,
   krijgt <html> de klasse .vz-beweegt en starten elementen licht vervaagd. */
.vz-beweegt [data-zacht] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity var(--duur-l) var(--curve-adem),
    transform var(--duur-l) var(--curve-adem),
    filter var(--duur-l) var(--curve-adem);
  transition-delay: calc(var(--vz-volgorde, 0) * 90ms);
}
.vz-beweegt [data-zacht].is-zichtbaar {
  opacity: 1;
  transform: none;
  filter: none;
}
