/* ============================================
   GELDISTIJD.NL — GEDEELD STIJLBLAD
   ============================================ */

:root {
  --paper:        #F6F1E7;
  --paper-deep:    #EFE8D8;
  --ink:          #2B2520;
  --ink-soft:      #6B6256;
  --clay:         #B5562C;
  --clay-deep:     #8A3F1E;
  --moss:         #2F4A3E;
  --moss-soft:     #4C6B5C;
  --gold:         #C99A3E;
  --line:         #DAD2C2;
  --line-soft:     #E8E1D2;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --content-width: 680px;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--moss); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ---------- Het motief: tijd-geld-teken ---------- */
.mark {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
  flex-shrink: 0;
}
.mark::before, .mark::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
}
.mark::before { width: 13px; height: 1.4px; transform: translate(-50%,-50%) translateY(-3.5px); }
.mark::after  { width: 13px; height: 1.4px; transform: translate(-50%,-50%) translateY(3.5px); }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark .tag {
  font-weight: 400; color: var(--ink-soft); font-size: 13px;
  border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px;
}
nav.site-nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 14px; flex-wrap: wrap; }
nav.site-nav a { color: var(--ink-soft); text-decoration: none; }
nav.site-nav a:hover, nav.site-nav a.active { color: var(--ink); }
nav.site-nav a.active { border-bottom: 1.5px solid var(--clay); padding-bottom: 2px; }

/* ---------- Layout: tekst + zijbalk inhoudsopgave ---------- */
.layout {
  max-width: 1040px; margin: 0 auto;
  padding: 56px 32px 100px;
  display: grid;
  grid-template-columns: 200px minmax(0, var(--content-width));
  gap: 64px;
}
.layout.no-toc { grid-template-columns: minmax(0, var(--content-width)); justify-content: center; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

.toc { position: sticky; top: 90px; align-self: start; font-family: var(--sans); }
.toc .toc-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 14px;
}
.toc .toc-group + .toc-group { margin-top: 22px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: section; }
.toc li { counter-increment: section; margin-bottom: 10px; }
.toc a {
  display: flex; gap: 8px;
  font-size: 13.5px; line-height: 1.4;
  color: var(--ink-soft); text-decoration: none;
}
.toc a::before {
  content: counter(section, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--line);
  flex-shrink: 0;
}
.toc a.current { color: var(--clay-deep); font-weight: 500; }
.toc a.current::before { color: var(--clay); }
.toc a:hover { color: var(--ink); }
.toc .toc-flat { list-style: none; margin: 0; padding: 0; }
.toc .toc-flat li { counter-increment: none; margin-bottom: 8px; }
.toc .toc-flat a::before { content: '—'; }

/* ---------- Artikel typografie ---------- */
article { min-width: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--moss-soft); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--moss-soft); }

h1.page-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.18; letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

.lede {
  font-size: 20px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

article h2 {
  font-family: var(--serif); font-weight: 600; font-size: 25px;
  margin: 52px 0 18px; color: var(--ink);
}
article h3 {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  margin: 34px 0 12px; color: var(--ink);
}
article p { margin: 0 0 22px; color: var(--ink); }
article p.muted { color: var(--ink-soft); font-size: 16px; }
article ul, article ol.plain { margin: 0 0 22px; padding-left: 22px; }
article li { margin-bottom: 8px; }

article > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600;
  font-size: 3.4em; line-height: 0.85;
  float: left; padding: 4px 8px 0 0;
  color: var(--clay);
}

/* ---------- Formule-/figuurkader ---------- */
figure.formula {
  margin: 32px 0; padding: 28px 24px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
figure.formula img { max-width: 100%; height: auto; }
figure.formula figcaption {
  margin-top: 14px; font-family: var(--sans);
  font-size: 12.5px; color: var(--ink-soft);
}
figure.formula figcaption .fnum {
  font-variant-numeric: tabular-nums; color: var(--moss-soft); font-weight: 500;
}
figure.formula.placeholder {
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Pull quote ---------- */
blockquote {
  margin: 36px 0; padding: 4px 0 4px 24px;
  border-left: 2px solid var(--clay);
  font-style: italic; font-size: 19px; color: var(--ink);
}

/* ---------- Volgende/vorige sectie ---------- */
.section-nav {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--sans);
}
.section-nav a {
  flex: 1; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.section-nav .dir {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.section-nav .title { font-family: var(--serif); font-size: 16.5px; }
.section-nav .next { text-align: right; align-items: flex-end; }
.section-nav a:hover .title { color: var(--clay-deep); }
.section-nav .spacer { flex: 1; }

/* ---------- Downloadkaarten ---------- */
.downloads-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 28px 0;
}
.download-card {
  font-family: var(--sans);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--paper-deep);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.download-card:hover { border-color: var(--clay); }
.download-card .filetype {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clay-deep); font-weight: 600;
}
.download-card .name { font-size: 14.5px; font-weight: 500; }
.download-card .meta { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Homepage hero ---------- */
.hero {
  max-width: 1040px; margin: 0 auto;
  padding: 70px 32px 50px;
  text-align: left;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 22px; max-width: 760px;
}
.hero .lede { max-width: 640px; border-bottom: none; padding-bottom: 0; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; font-family: var(--sans); font-size: 14.5px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px;
  border-radius: var(--radius); text-decoration: none;
  font-weight: 500;
}
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: var(--clay-deep); color: var(--paper); }
.btn-secondary { border: 1px solid var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.home-section {
  max-width: 1040px; margin: 0 auto;
  padding: 8px 32px 56px;
}
.home-section .inner { max-width: var(--content-width); }
.home-section h2 {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  margin: 0 0 16px;
}
.home-section p { margin: 0 0 18px; }

.theory-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1040px; margin: 0 auto; padding: 0 32px 64px;
}
@media (max-width: 720px) { .theory-cards { grid-template-columns: 1fr; } }
.theory-card {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 28px; background: var(--paper-deep);
  text-decoration: none; color: var(--ink);
}
.theory-card:hover { border-color: var(--clay); }
.theory-card .eyebrow { margin-bottom: 10px; }
.theory-card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; }
.theory-card p { font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 36px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  flex-wrap: wrap; gap: 16px;
}
.footer-inner a { color: var(--ink-soft); }

/* ---------- Contactformulier ---------- */
form.contact-form { font-family: var(--sans); margin-top: 8px; }
form.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 540px) { form.contact-form .row { grid-template-columns: 1fr; } }
form.contact-form label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 11px 12px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form .field { margin-bottom: 16px; }
form.contact-form .required-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
