/* ==========================================================================
   Basis: reset, typografie, focus, toegankelijkheid
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--color-bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body.is-locked {
  overflow: hidden;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-text-strong);
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-md);
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-gold-soft);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--color-text-strong); }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}
ul[role="list"], .list-plain { list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

small { font-size: var(--text-sm); }

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

::selection {
  background: var(--color-gold);
  color: #1a1409;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-gold);
  color: #1a1409;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Label-typografie: kleine sans-serif kickers in kapitalen */
.label,
.kicker {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-gold);
}

.script {
  font-family: var(--font-script);
  font-size: 1.5em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-gold-soft);
}

.lead {
  font-size: var(--text-md);
  color: var(--color-muted-strong);
  max-width: 60ch;
}

.muted { color: var(--color-muted); }

.only-desktop { display: none !important; }
@media (min-width: 1024px) {
  .only-desktop { display: initial !important; }
  .only-mobile { display: none !important; }
}

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