/* vandenakker.tech | single-column consultant site, same identity as the CV (Inter, petrol accent)
   Layout: one reading column (max 1040px) with label/content rows; hairlines instead of cards. */

@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --band: #F3F6F7;          /* faint petrol-tinted band behind hero and contact */
  --ink: #1F2328;
  --muted: #5C6670;
  --hairline: #CBD3D8;
  --accent: #0F4C5C;
  --accent-ink: #FFFFFF;    /* text on accent buttons */
  --accent-soft: #E3EEF0;   /* availability badge */
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --measure: 66ch;
  --wrap: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1416; --band: #141C1F; --ink: #E6EBED; --muted: #9AA7AE; --hairline: #2B373C;
    --accent: #79C0CF; --accent-ink: #0B1F25; --accent-soft: #17323A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1416; --band: #141C1F; --ink: #E6EBED; --muted: #9AA7AE; --hairline: #2B373C;
  --accent: #79C0CF; --accent-ink: #0B1F25; --accent-soft: #17323A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "calt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* ------------------------------------------------------------ top bar */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.mark span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.lang { color: var(--muted); white-space: nowrap; }
.lang strong { color: var(--ink); font-weight: 600; }
.lang .sep { padding-inline: 0.35em; }
.nav .lang a { color: var(--muted); }
@media (max-width: 429px) { .nav .nav-keep:not([aria-current]) { display: none; } }
@media (max-width: 719px) { .mark { white-space: nowrap; font-size: 0.95rem; } .nav { gap: 14px; } }
@media (max-width: 719px) { .nav > a:not(.nav-contact):not(.nav-keep) { display: none; } }

/* ------------------------------------------------------------ hero */
.hero {
  --hero-bg: var(--band);
  position: relative; overflow: hidden; background: var(--hero-bg); color: var(--ink); border-bottom: 1px solid var(--hairline);
}
.hero-text { min-width: 0; display: grid; gap: 18px; max-width: 34rem; }
.badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: var(--step--1);
  padding: 5px 12px; border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: var(--step-3); line-height: 1.08; font-weight: 300; letter-spacing: -0.02em; }
.hero h1 strong { font-weight: 600; }
.tagline { font-size: var(--step-1); font-weight: 500; color: var(--accent); line-height: 1.35; }
.lede { max-width: var(--measure); color: var(--ink); }
.lede em { font-style: normal; font-weight: 600; }
.facts { font-size: var(--step--1); color: var(--muted); }
.sep { color: var(--hairline); padding-inline: 0.5em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 6px;
  font-weight: 500; font-size: 0.975rem; text-decoration: none; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* Hero visual: terminal running a live Thompson-sampling bandit (assets/bandit.js) + portrait */
.hero-vis { position: relative; width: 100%; max-width: 520px; justify-self: center; margin-top: 28px; }
.term {
  background: #0B1F25; color: #CFE3E8; border: 1px solid #1E3A42; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(8, 38, 46, .22);
  font: 13px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0E2830; border-bottom: 1px solid #1E3A42; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2B4A52; display: block; }
.term-bar span { margin-left: 10px; color: #7E9AA2; font-size: 12px; }
.term-body { padding: 14px 18px 16px; }
.term-body p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp { color: #79C0CF; } .tc { color: #6F8A92; } .ts { color: #E9C46A; }
.bandit { display: block; width: 100%; height: auto; aspect-ratio: 880 / 470; margin: 10px 0 6px; }
.term-stats { display: flex; gap: 18px; color: #7E9AA2; font-size: 12px; margin-bottom: 8px !important; }
.term-stats b { color: #E6EBED; font-weight: 500; }
.cur { display: inline-block; width: 8px; height: 15px; margin-left: 6px; background: #79C0CF; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cur { animation: none; } }
.term-body { position: relative; }
.hero-photo {
  position: absolute; right: 16px; top: 14px; width: 58px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid #2B4A52; box-shadow: 0 0 0 3px rgba(121,192,207,.18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.term-body > p:nth-of-type(-n+2) { padding-right: 70px; }
.hero .wrap { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: 44px 48px; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 48px; padding-block: 72px 72px; }
  .hero-vis { margin-top: 0; }
  .hero-photo { width: 64px; }
  .term-body > p:nth-of-type(-n+2) { padding-right: 78px; }
}

/* ------------------------------------------------------------ sections */
.section .wrap { padding-block: 64px 24px; display: grid; gap: 28px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.section h2 { font-size: var(--step-2); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; max-width: 30ch; }
.section-head { display: grid; gap: 10px; }
.intro { max-width: var(--measure); color: var(--muted); }

/* label | text rows (expertise, experience) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: grid; gap: 4px 32px; padding-block: 14px; border-top: 1px solid var(--hairline); }
.rows li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 720px) { .rows li { grid-template-columns: 240px minmax(0, 1fr); } }
.rows .label { font-weight: 600; }
.rows .meta { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.rows p { min-width: 0; }

/* services */
.services { display: grid; gap: 28px; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.service { display: grid; gap: 10px; align-content: start; }
.service h3 { font-size: var(--step-1); font-weight: 600; }
.service ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.service li::marker { color: var(--accent); }

/* sub-page header */
.page-head { background: var(--band); border-bottom: 1px solid var(--hairline); }
.page-head .wrap { padding-block: 56px 60px; display: grid; gap: 16px; }
.page-head h1 { font-size: var(--step-3); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; max-width: 22ch; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* papers */
.paper-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.paper-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--hairline); }
.paper-list li:last-child { border-bottom: 1px solid var(--hairline); }
.paper-list .py { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--step--1); padding-top: 2px; }
.paper-list .pt { display: block; font-weight: 500; }
.paper-list .pt a { color: var(--ink); text-decoration: none; }
.paper-list .pt a:hover { color: var(--accent); text-decoration: underline; }
.paper-list .pa, .paper-list .pv { display: block; font-size: var(--step--1); color: var(--muted); }
.page-head .lede { max-width: 60ch; font-size: var(--step-1); line-height: 1.5; }

/* publications */
.pubs { margin: 0; padding-left: 1.3em; display: grid; gap: 14px; max-width: 80ch; }
.pubs li::marker { color: var(--accent); }
.pubs .venue { color: var(--muted); }

.clients { font-size: var(--step--1); color: var(--muted); max-width: 40rem; }
.clients strong { color: var(--ink); font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* expertise topics */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 720px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topics li { padding-block: 14px; border-top: 1px solid var(--hairline); font-weight: 500; font-size: var(--step-1); }

/* quotes */
.quotes { display: grid; gap: 28px; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.quotes figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.quotes blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.quotes figcaption { font-size: var(--step--1); color: var(--muted); }
.more { font-size: var(--step--1); }

/* contact */
.contact { background: var(--band); border-top: 1px solid var(--hairline); }
.contact .wrap { padding-block: 56px 64px; display: grid; gap: 24px; }
.contact-grid { display: grid; gap: 18px 40px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 0; font-size: var(--step-1); font-weight: 500; overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.business { font-size: var(--step--1); color: var(--muted); }

footer { background: var(--band); border-top: 1px solid var(--hairline); }
footer .wrap { padding-block: 22px 28px; font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
