/*
 * Kees van Wanrooij, persoonlijke merksite.
 * Volgt het Belegger Kees ontwerpsysteem (03-visueel-ontwerpsysteem.md):
 * wit en Apple-grijs, deep carbon, execution red als zeldzaam accent,
 * Inter voor tekst en JetBrains Mono voor cijfers, geen donkere modus.
 * Lettertypen worden zelf gehost: er gaat geen verzoek naar Google.
 */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --carbon: #1d1d1f;
  --muted: #68686d;
  --line: #d2d2d7;
  --red: #c4303c;
  --red-hover: #a92934;
  --data: #2563eb;
  --mindset: #059669;
  --radius: 8px;
  --max: 1120px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--carbon);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--carbon);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* Typografie */

h1, h2, h3 { margin: 0; font-style: normal; }

h1 {
  font-size: clamp(2.25rem, 6.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: 800px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 300; line-height: 1.5; color: var(--carbon); }

.label {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.small { font-size: 0.9375rem; color: var(--muted); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* Indeling */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }

.section { padding-block: 60px; }
@media (min-width: 900px) { .section { padding-block: 100px; } }
.section--tint { background: var(--gray); }
.section--tight { padding-block: 40px; }
@media (min-width: 900px) { .section--tight { padding-block: 60px; } }

.section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 16px; }
@media (min-width: 900px) { .section-head { margin-bottom: 48px; } }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Koptekst van de site */

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 18px; }
.brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand .dot { color: var(--red); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-block; padding: 6px 0; font-size: 1rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); }

/* Hero */

.hero { padding-block: 48px 60px; }
@media (min-width: 900px) { .hero { padding-block: 88px 100px; } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 0.65fr; gap: 72px; } }

.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }

.portrait {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 16px 40px -12px rgba(29, 29, 31, 0.22);
  aspect-ratio: 4 / 5;
  background: var(--gray);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 900px) { .portrait { max-width: none; margin-inline: 0; } }

.page-hero { padding-block: 48px 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero { padding-block: 80px 72px; } }
.page-hero h1 { margin-bottom: 24px; max-width: 24ch; }
.page-hero .lead { max-width: 760px; margin-bottom: 32px; }

/* Knoppen */

.actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--red); }
.btn--primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn--secondary { background: var(--carbon); }
.btn--secondary:hover { background: #000; transform: translateY(-1px); }
@media (max-width: 480px) { .btn { width: 100%; } }

/* Kaarten */

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--gray);
  border-radius: var(--radius);
}
@media (min-width: 768px) { .card { padding: 40px; } }
.card h3 { margin-bottom: 16px; }
.card p { margin-bottom: 1em; }
.card .card-foot { margin-top: auto; padding-top: 16px; }

.section--tint .card { background: var(--white); border: 1px solid var(--line); }

.card--layer { border-top: 4px solid var(--carbon); }
.card--data { border-top-color: var(--data); }
.card--mindset { border-top-color: var(--mindset); }

/* Donkere kaart: alleen om het hoofdonderwerp te tonen */
.card--dark,
.section--tint .card--dark { background: var(--carbon); color: var(--white); border: 0; }
.card--dark .label { color: rgba(255, 255, 255, 0.72); }
.card--dark a { text-decoration-color: rgba(255, 255, 255, 0.5); }
.card--dark a:hover { text-decoration-color: var(--white); }
.card--dark .card-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.card--wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .card--wide p { max-width: 720px; } }

.card--quiet { background: transparent; border: 1px dashed var(--line); }
.section--tint .card--quiet { background: transparent; border: 1px dashed var(--line); }

.pill {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
}

/* Lijsten: een streepje in execution red als aanloop, geen bolletjes */

.dash-list { margin: 0 0 1.1em; padding: 0 0 0 24px; list-style: none; max-width: 800px; }
.dash-list li { position: relative; margin-bottom: 0.5em; }
.dash-list li::before { content: "-"; position: absolute; left: -24px; font-weight: 600; color: var(--red); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: stap; display: grid; gap: 24px; max-width: 800px; }
.steps li { position: relative; padding-left: 64px; counter-increment: stap; }
.steps li::before {
  content: counter(stap, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 8px; font-size: 1.25rem; }
.steps p { margin: 0; }

/* Cijfers in JetBrains Mono */

.stat { padding: 24px 0; border-top: 1px solid var(--line); }
.stat-number { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-text { display: block; font-size: 1rem; color: var(--muted); line-height: 1.4; }

/* Tijdlijn en feiten */

.facts { margin: 0; padding: 0; max-width: 800px; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; gap: 24px; } .facts dt { padding-top: 0.3em; } }
.facts .mono { font-size: 0.95rem; }

/* Citaat en kader, zoals in het ontwerpsysteem */

blockquote {
  margin: 32px 0;
  padding: 24px;
  max-width: 800px;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gray);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
}
.section--tint blockquote { background: var(--white); }
blockquote p { margin: 0; }

.notice {
  margin: 32px 0 0;
  padding: 24px;
  max-width: 800px;
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.section--tint .notice { background: var(--white); }
.notice strong { display: block; margin-bottom: 8px; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.notice p { max-width: none; }

/* Prose voor lange teksten */

.prose h2 { margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; }

.faq { max-width: 800px; }
.faq h3 { margin: 40px 0 12px; font-size: 1.375rem; }
.faq h3:first-child { margin-top: 0; }

/* Voettekst */

.site-footer { padding-block: 60px 40px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.footer-brand .dot { color: var(--red); }
.footer-grid h2 { margin-bottom: 16px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a[aria-current] { font-weight: 600; text-decoration-color: var(--red); }
.footer-grid li { margin-bottom: 8px; font-size: 1rem; }
.footer-legal { padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.footer-legal p { margin: 0 0 6px; max-width: none; }

/* Beweging: nooit langer dan 0,2 seconde, en uit bij de voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn--primary:hover, .btn--secondary:hover { transform: none; }
}

@media print {
  .site-nav, .skip, .actions { display: none; }
  .section, .hero, .page-hero { padding-block: 24px; }
  a { text-decoration: none; }
}
