/* ===================================================
   ERFGO3D – Base: Reset, Typografie, Fonts
   =================================================== */

/* ---- @font-face ---- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--color-ink);
  background-color: var(--color-paper);
  overflow-x: hidden;
}

/* ---- Heading defaults ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink-deep);
}

/* ---- Links ---- */
a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition:
    text-decoration-thickness var(--dur-short) var(--ease-soft),
    text-underline-offset var(--dur-short) var(--ease-soft);
}

a:hover {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---- Focus visible ---- */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Donker-thema focusring */
.section--dark :focus-visible,
.nav-overlay :focus-visible {
  outline-color: var(--color-brand-light);
}

/* ---- Images ---- */
img, video {
  max-width: 100%;
  display: block;
}

/* ---- Lists ---- */
ul, ol {
  list-style: none;
}

/* ---- Scroll-margin voor anker-navigatie ---- */
section[id], footer[id] {
  scroll-margin-top: var(--header-height);
}

/* ---- Mono-klasse ---- */
.font-mono {
  font-family: 'Space Mono', monospace;
}

/* ---- Utility: visueel verborgen ---- */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Skip-link (toegankelijkheid) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--color-brand);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: var(--t-small);
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

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