/* ============================================================
   base.css — tokens, reset, typografie, knoppen, hulpmiddelen
   Simoni PR · donker cinematisch, één warm accent
   ============================================================ */

/* ---------- fonts (lokaal, geen externe CDN) ---------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Oppervlakken */
  --ink: #0b0a09;
  --ink-2: #12100e;
  --ink-3: #1a1613;
  --paper: #f4eee7;
  --paper-2: #eee5da;
  --paper-3: #e6dacb;

  /* Inkt */
  --text: #ece7e1;
  --text-dim: #b3aaa1;
  --text-faint: #8d857d;
  --on-paper: #17120d;
  --on-paper-dim: #5d5348;

  /* Accent: één warme kleur, overal dezelfde */
  --accent: #ef8354;
  --accent-soft: #f7b48f;
  --accent-deep: #a8492a;
  --accent-ink: #170c06;

  /* Lijnen */
  --line: rgba(236, 231, 225, 0.14);
  --line-strong: rgba(236, 231, 225, 0.26);
  --line-dark: rgba(23, 18, 13, 0.16);

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Maatvoering */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 148px);
  --radius: 2px;
  --header-h: 76px;

  /* Beweging */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video { height: auto; }

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

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

[hidden] { display: none !important; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8.4vw, 7.1rem); }
h2 { font-size: clamp(2.35rem, 5.2vw, 4.35rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.08; }

p { text-wrap: pretty; }

em, .italic {
  font-style: italic;
  color: var(--accent-soft);
}

.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 62ch;
}

.small {
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- hulpmiddelen ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section + .section { border-top: 1px solid var(--line); }

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- knoppen ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn svg { width: 15px; height: 15px; flex: none; }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-line: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.btn--accent:hover {
  --btn-bg: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); background: rgba(236, 231, 225, 0.06); }

.btn--dark {
  --btn-bg: var(--on-paper);
  --btn-fg: var(--paper);
  --btn-line: var(--on-paper);
  border-color: var(--on-paper);
}

.btn--dark:hover { --btn-bg: #2a2118; border-color: #2a2118; }

.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 0.8rem; }

/* pijl die meebeweegt */
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- scroll-reveal (alleen als JS leeft) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

/* ---------- taalwissel: NL-teksten zijn standaard verborgen ---------- */

html[lang="en"] [data-only="nl"] { display: none !important; }
html[lang="nl"] [data-only="en"] { display: none !important; }

/* ---------- grain-overlay (cinematisch, gratis) ---------- */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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