/* Basis: reset, typografie, landmarks, knoppen, beweging. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--kleur-perkament);
  color: var(--kleur-inkt);
  font-family: var(--font-tekst);
  font-size: var(--tekst-basis);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--tekst-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--tekst-h2); }
h3 { font-size: var(--tekst-h3); line-height: 1.18; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--kleur-goud); color: var(--kleur-nacht); }

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

/* ---------- Layout ---------- */

.omhulsel {
  width: min(100% - var(--rand) * 2, var(--maat));
  margin-inline: auto;
}

.sectie { padding-block: var(--ruimte-sectie); position: relative; }
.sectie--kort { padding-block: var(--ruimte-sectie-kort); }

.donker {
  background: var(--kleur-nacht);
  color: var(--kleur-creme);
}

.donker h1, .donker h2, .donker h3 { color: var(--kleur-creme); }

/* Op donkere vlakken is goud juist de best zichtbare ring (11,36:1). */
.donker, .kop, .voet, .feiten { --kleur-focus: var(--kleur-goud); }

/* Korrel: een dun laagje ruis zodat de vlakken niet plat ogen. */
.korrel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23r)'/%3E%3C/svg%3E");
}

.sectie > * { position: relative; z-index: 1; }

/* ---------- Kopjes ---------- */

.opschrift {
  font-family: var(--font-tekst);
  font-size: var(--tekst-klein);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--kleur-gilt);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}

.donker .opschrift { color: var(--kleur-goud); }

/* Gecentreerd krijgt het opschrift aan weerszijden een streepje. */
.opschrift--midden { justify-content: center; }

.opschrift--midden::before {
  content: '';
  height: 1px;
  width: clamp(2rem, 8vw, 5rem);
  background: currentColor;
  opacity: 0.5;
  margin-bottom: 0.42rem;
}

.opschrift::after {
  content: '';
  height: 1px;
  width: clamp(2rem, 8vw, 5rem);
  background: currentColor;
  opacity: 0.5;
  margin-bottom: 0.42rem;
}

h1 + .lead,
h2 + .lead { margin-top: 1.15rem; }

.lead {
  font-size: var(--tekst-lead);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--kleur-inkt-zacht);
}

.donker .lead { color: var(--kleur-creme-zacht); }

/* ---------- Knoppen ---------- */

.winkels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.winkel {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1.25rem 0.78rem;
  border-radius: var(--rond);
  text-decoration: none;
  background: var(--kleur-goud);
  color: var(--kleur-nacht);
  border: 1px solid var(--kleur-goud-diep);
  box-shadow: var(--schaduw-laag);
  transition: transform var(--duur-kort) var(--soepel),
    box-shadow var(--duur-kort) var(--soepel),
    background-color var(--duur-kort) var(--soepel);
}

.winkel__merk { width: 1.4rem; height: 1.4rem; flex: none; }

.winkel__tekst { display: grid; line-height: 1.12; text-align: left; }
.winkel__klein { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.winkel__groot { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }

.winkel:hover { transform: translateY(-2px); box-shadow: var(--schaduw-hoog); background: #f7d274; }
.winkel:active { transform: translateY(0); }

.winkel--rand {
  background: transparent;
  color: var(--kleur-creme);
  border-color: rgba(242, 199, 92, 0.5);
  box-shadow: none;
}

.winkel--rand:hover { background: rgba(242, 199, 92, 0.12); box-shadow: none; }

.tekstlink {
  color: var(--kleur-rood);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--duur) var(--soepel), color var(--duur-kort) linear;
}

.donker .tekstlink { color: var(--kleur-goud); }
.tekstlink:hover { background-size: 100% 2px; }

/* ---------- Beweging ---------- */

/* De klasse 'onthullen' wordt door een regel script in de head gezet. Draait dat
   script niet, dan bestaat de klasse niet en blijft de pagina gewoon zichtbaar. */
.onthullen .onthul {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duur-traag) var(--soepel),
    transform var(--duur-traag) var(--soepel);
}

.onthullen .onthul.zichtbaar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onthullen .onthul { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Toegankelijkheid ---------- */

.overslaan {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  background: var(--kleur-goud);
  color: var(--kleur-nacht);
  padding: 0.7rem 1.1rem;
  border-radius: var(--rond-klein);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duur) var(--soepel);
}

.overslaan:focus { top: 0.75rem; }

.alleen-voorlezer {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
