/* =========================================================================
   Femke Doornenbosch — Persoonlijke site
   Ontwerpsysteem: Mercury-stijl (donker, verfijnd fintech)
   ========================================================================= */

:root {
  /* Brand / Accent */
  --mercury-blue: #5266eb;
  --ghost-blue: #cdddff;

  /* Neutrals */
  --ink: #171721;
  --deep-slate: #1e1e2a;
  --starlight: #ededf3;
  --lead: #70707d;

  /* Afgeleiden */
  --lead-border: rgba(112, 112, 125, 0.35);
  --lead-border-strong: rgba(112, 112, 125, 0.6);
  --surface-raise: rgba(237, 237, 243, 0.03);
  --surface-raise-2: rgba(237, 237, 243, 0.05);
  --ghost-soft: rgba(205, 221, 255, 0.08);

  /* Typografie — Major Second (1.125) vanaf 20px */
  --fs-base: 1.0625rem;   /* body */
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-h6: 1.1875rem;
  --fs-h5: 1.375rem;
  --fs-h4: clamp(1.5rem, 2vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 3vw, 2.25rem);
  --fs-h2: clamp(2.1rem, 4vw, 3rem);
  --fs-h1: clamp(2.6rem, 6vw, 4.4rem);

  /* Ruimte */
  --space-section: clamp(72px, 10vw, 128px);
  --radius-pill: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --maxw: 1180px;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ---- Koppen: light gewicht (verfijnd) ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--starlight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.01em; }

h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 1.1em; }

strong { font-weight: 500; color: var(--starlight); }

.muted { color: var(--lead); }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section--slate {
  background-color: var(--deep-slate);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ghost-blue);
  margin: 0 0 18px;
  display: inline-block;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--starlight);
  max-width: 60ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 56px;
}

/* =========================================================================
   Buttons — signature pill (40px radius)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

/* Primaire CTA — uitsluitend Mercury Blue */
.btn--primary {
  background-color: var(--mercury-blue);
  color: #ffffff;
}
.btn--primary:hover {
  background-color: #6577f0;
}

/* Secundaire knop — sober, met Lead-rand */
.btn--ghost {
  background-color: transparent;
  color: var(--starlight);
  border-color: var(--lead-border-strong);
}
.btn--ghost:hover {
  border-color: var(--ghost-blue);
  color: var(--ghost-blue);
}

.btn--sm {
  padding: 11px 20px;
  font-size: var(--fs-xs);
}

/* =========================================================================
   Header / navigatie
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(23, 23, 33, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lead-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ghost-blue);
  display: grid;
  place-items: center;
  color: var(--ghost-blue);
  font-size: 0.8125rem;
  font-weight: 500;
}

.brand__name { color: var(--starlight); }
.brand__role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lead);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: var(--fs-sm);
  color: var(--starlight);
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--ghost-blue);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--lead-border-strong);
  border-radius: 12px;
  color: var(--starlight);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: clamp(64px, 9vw, 120px) 0 var(--space-section);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(82, 102, 235, 0.16), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title { margin-bottom: 22px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--lead-border);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--starlight);
  line-height: 1;
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--lead);
  margin-top: 8px;
}

/* Foto-plek 1 */
.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--lead-border);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--deep-slate), var(--ink));
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(23, 23, 33, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: var(--fs-xs);
}
.hero__badge strong { color: var(--ghost-blue); }

/* Placeholder voor foto's */
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--lead);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  padding: 24px;
}

/* =========================================================================
   Expertise-grid
   ========================================================================= */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background-color: var(--surface-raise);
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover {
  border-color: var(--lead-border-strong);
  background-color: var(--surface-raise-2);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--lead-border);
  display: grid;
  place-items: center;
  color: var(--ghost-blue);
  margin-bottom: 20px;
}
.card h4 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--lead); font-size: var(--fs-sm); }

/* =========================================================================
   Checklist / rode vlaggen
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background-color: var(--surface-raise);
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lead-border);
  font-size: var(--fs-sm);
}
.check-list li:last-child { border-bottom: none; }
.check-list .tick,
.check-list .flag {
  flex: none;
  margin-top: 2px;
}
.tick { color: var(--ghost-blue); }
.flag { color: #e5738a; }

/* =========================================================================
   Betaal-tabel
   ========================================================================= */
.table-wrap {
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.data th,
table.data td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lead-border);
}
table.data thead th {
  font-weight: 500;
  color: var(--ghost-blue);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data td:first-child { font-weight: 500; color: var(--starlight); }

.note {
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: var(--lead);
  display: flex;
  gap: 10px;
}

/* =========================================================================
   Verantwoord spelen
   ========================================================================= */
.responsible {
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(circle at 85% 0%, rgba(82, 102, 235, 0.1), transparent 55%),
    var(--surface-raise);
}
.responsible__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lead-border-strong);
  font-size: var(--fs-sm);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill-link:hover { border-color: var(--ghost-blue); color: var(--ghost-blue); }

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--ghost-blue);
  color: var(--ghost-blue);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* =========================================================================
   Over mij / bio (foto-plek 2)
   ========================================================================= */
.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.bio__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--lead-border);
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--deep-slate), var(--ink));
}
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }

.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li {
  padding: 18px 0;
  border-bottom: 1px solid var(--lead-border);
}
.timeline li:last-child { border-bottom: none; }
.timeline .role { font-weight: 500; }
.timeline .desc { color: var(--lead); font-size: var(--fs-sm); }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag {
  font-size: var(--fs-xs);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lead-border);
  color: var(--starlight);
}

.quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--mercury-blue);
  padding-left: 28px;
  margin: 0;
  color: var(--starlight);
}

/* =========================================================================
   Auteursbox / social
   ========================================================================= */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background-color: var(--surface-raise);
}
.author-box__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--lead-border);
  background: var(--deep-slate);
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* =========================================================================
   Blog
   ========================================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface-raise);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: var(--lead-border-strong); transform: translateY(-3px); }
.post-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #232336, var(--deep-slate));
  position: relative;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  gap: 14px;
  font-size: var(--fs-xs);
  color: var(--lead);
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost-blue);
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.post-card h3 { font-size: var(--fs-h4); margin-bottom: 12px; }
.post-card p { color: var(--lead); font-size: var(--fs-sm); flex: 1; }
.post-card__foot {
  margin-top: 20px;
  font-size: var(--fs-sm);
  color: var(--ghost-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-hero { padding: clamp(56px, 8vw, 96px) 0 40px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.filter-row .tag { cursor: default; }
.filter-row .tag--active { border-color: var(--ghost-blue); color: var(--ghost-blue); }

/* =========================================================================
   Artikel
   ========================================================================= */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__head { padding: clamp(48px, 7vw, 80px) 0 0; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--lead);
  font-size: var(--fs-sm);
  margin: 24px 0 32px;
}
.article__hero-img {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--lead-border);
  background: linear-gradient(150deg, #232336, var(--deep-slate));
  margin-bottom: 48px;
}
.article__body { font-size: 1.09375rem; line-height: 1.75; }
.article__body h2 { margin-top: 48px; }
.article__body h3 { margin-top: 34px; font-size: var(--fs-h4); }
.article__body ul, .article__body ol { padding-left: 22px; margin: 0 0 1.3em; }
.article__body li { margin-bottom: 10px; }
.article__body a { color: var(--ghost-blue); border-bottom: 1px solid var(--lead-border); }
.article__body a:hover { border-color: var(--ghost-blue); }

.callout {
  border: 1px solid var(--lead-border);
  border-left: 2px solid var(--mercury-blue);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 32px 0;
  background-color: var(--surface-raise);
}
.callout--flag { border-left-color: #e5738a; }
.callout p:last-child { margin-bottom: 0; }

.toc {
  border: 1px solid var(--lead-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  background-color: var(--surface-raise);
}
.toc ol { margin: 12px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 8px; font-size: var(--fs-sm); }
.toc a { color: var(--starlight); }
.toc a:hover { color: var(--ghost-blue); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--lead-border);
  padding: 64px 0 40px;
  background-color: var(--deep-slate);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h6 { color: var(--lead); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-xs); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: var(--fs-sm); color: var(--starlight); opacity: 0.82; }
.footer-links a:hover { opacity: 1; color: var(--ghost-blue); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--lead-border);
  font-size: var(--fs-xs);
  color: var(--lead);
}
.footer-bottom .badges { display: flex; gap: 12px; align-items: center; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
  .bio { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --fs-base: 1rem; }
  .nav__links,
  .nav__actions .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--ink);
    border-bottom: 1px solid var(--lead-border);
    padding: 12px 24px 24px;
  }
  .nav.open .nav__links li { padding: 14px 0; border-bottom: 1px solid var(--lead-border); }
  .split, .grid--2, .grid--3, .post-grid { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box__avatar { margin: 0 auto; }
  .social-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
