/* raymonsomford.nl — basisstijl
   Rustig, technisch, veel wit. Licht en donker thema. */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,800&f[]=satoshi@400,500,700&display=swap');

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --radius: 3px;
}

:root, [data-theme="light"] {
  --bg: oklch(99% 0.003 240);
  --surface: oklch(97% 0.004 240);
  --surface-2: oklch(94.5% 0.006 240);
  --border: oklch(88% 0.008 240);
  --text: oklch(24% 0.015 250);
  --text-muted: oklch(48% 0.014 250);
  --accent: oklch(46% 0.09 235);
  --accent-soft: oklch(93% 0.03 235);
  --grid-line: oklch(90% 0.01 240);
}

[data-theme="dark"] {
  --bg: oklch(19% 0.012 250);
  --surface: oklch(22.5% 0.014 250);
  --surface-2: oklch(26% 0.016 250);
  --border: oklch(33% 0.016 250);
  --text: oklch(93% 0.006 250);
  --text-muted: oklch(72% 0.012 250);
  --accent: oklch(78% 0.09 225);
  --accent-soft: oklch(30% 0.04 235);
  --grid-line: oklch(27% 0.014 250);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(19% 0.012 250);
    --surface: oklch(22.5% 0.014 250);
    --surface-2: oklch(26% 0.016 250);
    --border: oklch(33% 0.016 250);
    --text: oklch(93% 0.006 250);
    --text-muted: oklch(72% 0.012 250);
    --accent: oklch(78% 0.09 225);
    --accent-soft: oklch(30% 0.04 235);
    --grid-line: oklch(27% 0.014 250);
  }
}

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

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

body {
  margin: 0;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 var(--space-4); }
h1 { font-size: var(--text-2xl); font-weight: 800; }
h2 { font-size: var(--text-xl); font-weight: 700; margin-top: var(--space-12); }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; margin-top: var(--space-8); }
p, li { max-width: var(--measure); }
p { margin: 0 0 var(--space-4); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg);
  padding: var(--space-2) var(--space-4); z-index: 20;
}
.skip:focus { left: var(--space-4); top: var(--space-2); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand svg { color: var(--accent); flex: none; }
.brand span { font-size: var(--text-sm); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0; }
nav.primary { margin-left: auto; }
nav.primary ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0; padding: 0; }
nav.primary a { font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius); padding: var(--space-1) var(--space-2); cursor: pointer; line-height: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* Hero */
.hero { position: relative; padding-block: clamp(var(--space-12), 8vw, var(--space-24)); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-figure { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
.eyebrow { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--space-4); }
.lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 60ch; }

section[id], article [id] { scroll-margin-top: 96px; }
section { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
section + section { border-top: 1px solid var(--border); }

.grid { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { text-decoration: none; }

.btn {
  display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: var(--text-sm); padding: var(--space-3) var(--space-6); border-radius: var(--radius);
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--accent); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

dl.facts { display: grid; gap: var(--space-4); margin: var(--space-8) 0 0; }
@media (min-width: 720px) { dl.facts { grid-template-columns: repeat(3, 1fr); } }
dl.facts dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
dl.facts dd { margin: var(--space-1) 0 0; font-weight: 500; }

/* Tijdlijn loopbaan */
.timeline { list-style: none; padding: 0; margin: var(--space-8) 0 0; border-left: 2px solid var(--border); }
.timeline > li { position: relative; padding: 0 0 var(--space-10) var(--space-6); max-width: none; }
.timeline > li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--accent); border-radius: 50%;
}
.timeline h3 { margin-top: 0; }
.timeline .period { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: var(--space-2); }

/* Tabellen */
.table-scroll { overflow-x: auto; margin-top: var(--space-8); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
caption { text-align: left; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-3); }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; }
tbody tr:hover { background: var(--surface); }

/* Artikelen */
.article-list { list-style: none; padding: 0; margin: var(--space-8) 0 0; }
.article-list > li { border-top: 1px solid var(--border); padding-block: var(--space-6); max-width: none; }
.article-list > li:last-child { border-bottom: 1px solid var(--border); }
.article-list h2, .article-list h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; }
.article-list h2 a, .article-list h3 a { color: var(--text); text-decoration: none; }
.article-list h2 a:hover, .article-list h3 a:hover { color: var(--accent); text-decoration: underline; }
.meta { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--space-2); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: var(--space-4) 0 0; }
.tags li { font-size: var(--text-xs); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px var(--space-2); max-width: none; }

article.prose h2 { margin-top: var(--space-12); }
article.prose ul, article.prose ol { padding-left: var(--space-6); }
article.prose li { margin-bottom: var(--space-2); }
article.prose blockquote { margin: var(--space-8) 0; padding-left: var(--space-6); border-left: 3px solid var(--accent); color: var(--text-muted); }
article.prose code { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.9em; background: var(--surface-2); padding: 1px 4px; border-radius: 2px; }
article.prose table { margin: var(--space-8) 0; }
.article-header { border-bottom: 1px solid var(--border); padding-bottom: var(--space-8); margin-bottom: var(--space-8); }
.byline { font-size: var(--text-sm); color: var(--text-muted); }

.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--space-6); margin-top: var(--space-8); }
.callout p:last-child { margin-bottom: 0; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: var(--space-16); padding-block: var(--space-12); }
footer.site-footer .grid { gap: var(--space-8); }
footer.site-footer h2 { font-size: var(--text-sm); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin: 0 0 var(--space-3); font-weight: 500; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: var(--space-2); font-size: var(--text-sm); }
footer.site-footer a { color: var(--text); text-decoration: none; }
footer.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.colophon { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }
.colophon p { max-width: none; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
