/* =========================================================
   Joren Veldkamphuis — Ontwerpsysteem "Ventriloc" data-console
   Kleuren, typografie en vormen conform DESIGN-joren-veldkamphuis.md
   ========================================================= */

:root {
  /* Brand */
  --carbon: #1a1a1a;
  --signal: #ff682c;   /* uitsluitend data-accenten */
  --bronze: #816729;   /* secundair data-accent */

  /* Neutrals */
  --white: #ffffff;
  --mist: #efefef;     /* paginacanvas */
  --grey: #6b6b6b;
  --line: #e3e3e3;

  /* Typografie */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Vorm */
  --radius: 20px;
  --radius-pill: 200px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--carbon);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(40px, 7vw, 66px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.0; }
h4 { font-size: 20px; line-height: 1.1; }

p { margin: 0 0 1.1em; }
a { color: var(--carbon); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--signal);
  display: inline-block;
}

.lead { font-size: 19px; color: #333; max-width: 62ch; }
.muted { color: var(--grey); }
.data { color: var(--signal); font-variant-numeric: tabular-nums; font-weight: 500; }
.bronze { color: var(--bronze); }

/* ---------- Navigatie (zwevende pill-capsule) ---------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}
.nav {
  max-width: var(--maxw);
  margin: 16px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--carbon);
}
.nav-links a:hover { background: var(--mist); text-decoration: none; }
.nav-links a.active { background: var(--carbon); color: var(--white); }
.nav-toggle { display: none; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--carbon);
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-fill { background: var(--carbon); color: var(--white); }
.btn-fill:hover { background: #000; color: var(--white); }
.btn-outline { background: transparent; color: var(--carbon); }
.btn-outline:hover { background: var(--carbon); color: var(--white); }

/* ---------- Secties ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
}

/* Statbalk */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat .num {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.stat .lbl { font-size: 14px; color: var(--grey); margin-top: 8px; }

/* ---------- Kaarten grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 22px; }
.card .idx {
  font-family: var(--display);
  font-size: 14px;
  color: var(--signal);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: block;
}
.card p { margin: 0; color: #444; font-size: 15px; }

/* ---------- Data tabel ---------- */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  text-align: left;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
tbody td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 500; }
.rtp { color: var(--signal); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Volatiliteit-badge */
.vol {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.vol-l { color: #2f7d3b; border-color: #cfe6d3; background: #f2f9f3; }
.vol-m { color: var(--bronze); border-color: #e6ddc4; background: #faf7ee; }
.vol-h { color: var(--signal); border-color: #ffd9c7; background: #fff4ee; }

/* ---------- Methode / genummerde lijst ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.method-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
}
.method-item .n {
  font-family: var(--display);
  font-size: 30px;
  color: var(--signal);
  line-height: 1;
  min-width: 46px;
}
.method-item h4 { margin-bottom: 6px; }
.method-item p { margin: 0; font-size: 15px; color: #444; }

/* ---------- Over-sectie met tweede foto ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  aspect-ratio: 3 / 4;
  position: sticky;
  top: 96px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-body p { color: #333; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.pill-list li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
}

/* Kwalificaties */
.quals { list-style: none; padding: 0; margin: 24px 0 0; }
.quals li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.quals li:last-child { border-bottom: none; }
.quals .yr { color: var(--grey); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- "Wiskunde erachter" kader ---------- */
.mathbox {
  background: var(--carbon);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
}
.mathbox .eyebrow { color: #b9b9b9; }
.mathbox h2 { color: var(--white); }
.mathbox .quote {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mathbox .data { color: var(--signal); }

/* ---------- Verantwoord spelen ---------- */
.rg {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.rg h3 { font-size: 24px; }
.rg .rg-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; font-size: 15px; }
.rg .rg-links a { text-decoration: underline; }

/* ---------- Blog kaarten ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .1s ease;
}
.post:hover { transform: translateY(-2px); text-decoration: none; }
.post .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f4f4f4, #e7e7e7);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
}
.post .thumb .cat {
  background: var(--carbon);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.post .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post .meta { font-size: 13px; color: var(--grey); margin-bottom: 12px; display: flex; gap: 12px; }
.post h3 { font-size: 24px; margin-bottom: 10px; }
.post p { color: #444; font-size: 15px; margin: 0 0 20px; }
.post .readmore { margin-top: auto; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; }
.post .readmore .arrow { color: var(--signal); }

.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.featured .thumb { aspect-ratio: auto; min-height: 100%; }
.featured .body { padding: 40px; }
.featured h3 { font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- Artikel ---------- */
.article { padding-top: 40px; }
.article-head { max-width: 760px; margin: 0 auto 40px; }
.article-head .cat {
  background: var(--carbon); color: var(--white);
  font-size: 12px; font-weight: 500; padding: 6px 14px;
  border-radius: var(--radius-pill); display: inline-block; margin-bottom: 20px;
}
.article-head .meta { color: var(--grey); font-size: 14px; margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-hero {
  max-width: 960px; margin: 0 auto 48px;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ededed, #dcdcdc);
  border: 1px solid var(--line);
}
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #2b2b2b; font-size: 17px; line-height: 1.72; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { margin: 28px 0; }
.callout {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 16px;
}
.callout strong { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; font-size: 18px; }

/* Auteursbox */
.author-box {
  max-width: 720px; margin: 56px auto 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 22px; align-items: center;
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; font-size: 14px; color: var(--grey); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.social-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.social-pills a {
  border: 1.5px solid var(--carbon);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
}
.social-pills a:hover { background: var(--carbon); color: var(--white); text-decoration: none; }

/* ---------- Footer ---------- */
footer {
  background: var(--carbon);
  color: #cfcfcf;
  padding: 56px 0 36px;
}
footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .brand { color: var(--white); }
footer h5 { font-family: var(--body); font-weight: 600; font-size: 14px; margin: 0 0 14px; color: var(--white); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  font-size: 13px;
  color: #8f8f8f;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.age { border: 1px solid #444; border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--white); }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { position: static; max-width: 420px; }
  .card-grid, .method, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured .thumb { aspect-ratio: 16/9; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 16px; right: 16px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-toggle {
    display: inline-flex; border: 1px solid var(--line); background: var(--white);
    border-radius: var(--radius-pill); padding: 10px 16px; font-family: var(--body);
    font-weight: 600; font-size: 14px; cursor: pointer;
  }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .mathbox, .rg { padding: 26px; }
}
