/* ==========================================================================
   Naaihandboek · stylesheet
   Ontwerptokens bewust afwijkend van de andere sites in de reeks:
   linnen-wit + diep spoelgroen + koperdraad, donkere bovenbalk,
   gecentreerde merkregel met menubalk eronder, 4:3 beeldverhouding.
   ========================================================================== */

:root {
  --bg:        #f6f5f1;
  --surface:   #ffffff;
  --ink:       #242a2e;
  --muted:     #6b7278;
  --accent:    #2f6b63;
  --accent-dk: #1d4b45;
  --hot:       #b4593a;
  --line:      #e4dfd5;
  --bar:       #232a2f;
  --bar-ink:   #d8d5cd;
  --radius:    3px;
  --wrap:      1080px;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow:    0 1px 2px rgba(30, 36, 40, .05), 0 6px 18px -12px rgba(30, 36, 40, .35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

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

a { color: var(--accent-dk); text-decoration: none; }
a:hover, a:focus { color: var(--hot); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  margin: 2.1em 0 .55em;
}

h1 { font-size: 2.1rem; margin-top: .2em; letter-spacing: -.01em; }
h2 { font-size: 1.42rem; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }
h4 { font-size: .95rem; margin: 0 0 .5em; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-dk); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ── bovenbalk ─────────────────────────────────────────────── */
.topbar { background: var(--bar); color: var(--bar-ink); font-size: .82rem; }
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  align-items: center; justify-content: space-between;
  min-height: 38px; padding-top: 6px; padding-bottom: 6px;
}
.topbar-note { margin: 0; letter-spacing: .02em; }
.topbar-mail { color: var(--bar-ink); }
.topbar-mail:hover { color: #fff; }

/* ── kop ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;            /* masker-host: géén z-index, géén transform */
  text-align: center;
  padding-top: 26px;
}

.site-title {
  font-family: var(--font-head);
  font-size: 2.35rem; font-weight: 700; letter-spacing: -.015em;
  margin: 0; line-height: 1.1;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--accent); text-decoration: none; }

.site-tagline {
  margin: .35em 0 0;
  font-size: .84rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}

.nav-primary {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu {
  list-style: none; margin: 0; padding: 9px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px;
}
.menu li { margin: 0; }
.menu a {
  display: block; padding: 7px 11px; border-radius: var(--radius);
  font-size: .93rem; color: var(--ink); letter-spacing: .01em;
}
.menu a:hover { background: #eef0ec; color: var(--accent-dk); text-decoration: none; }
.menu a.is-active { color: var(--accent-dk); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-toggle-label {
  display: none;
  cursor: pointer; padding: 8px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.menu-toggle-label span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0;
}

/* ── hoofdinhoud ───────────────────────────────────────────── */
.site-inner { padding: 40px 0 20px; }
.site-inner > .wrap > h1:first-child { margin-top: 0; }

.page-intro { font-size: 1.05rem; color: #454c51; }
.crumbs { font-size: .84rem; color: var(--muted); margin: 0 0 1.4em; }
.crumbs a { color: var(--muted); }
.updated { font-size: .84rem; color: var(--muted); margin-top: 2em; }

.kicker {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hot); font-weight: 600; margin: 0 0 .6em;
}

/* ── hero (gedeeld, tekst links / beeld rechts) ────────────── */
.hero-split {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px;
  align-items: center; margin: 6px 0 12px;
}
.hero-split__text h1 { font-size: 2.5rem; margin-bottom: .35em; }
.hero-split__figure { margin: 0; }

.hero-figure { margin: 1.6em 0 1.8em; }
.hero-figure img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #e8e5dd;
}
.hero-figure figcaption {
  font-size: .82rem; color: var(--muted); margin-top: .6em; line-height: 1.5;
}

/* ── blokken op de startpagina ─────────────────────────────── */
.block { margin: 3.4em 0 0; }
.block__title {
  font-size: 1.3rem; padding-bottom: .35em; border-bottom: 2px solid var(--line);
}
.block__more { margin-top: 1em; font-size: .93rem; }
.block__more a { font-weight: 600; }

/* ── verticale kaarten ─────────────────────────────────────── */
.entry-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.entry-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.entry-card { margin: 0; display: flex; flex-direction: column; }
.entry-card__media { display: block; }
.entry-card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: #e8e5dd;
}
.entry-card__body { padding: 12px 0 0; }
.entry-card__meta {
  display: inline-block; font-size: .74rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--hot); font-weight: 600;
}
.entry-card h3 { margin: .35em 0 .35em; font-size: 1.06rem; }
.entry-card h3 a { color: var(--ink); }
.entry-card h3 a:hover { color: var(--accent-dk); text-decoration: none; }
.entry-card p { font-size: .92rem; color: #4f565b; margin: 0; }

/* ── horizontale kaarten ───────────────────────────────────── */
.entry-rows { list-style: none; margin: 0; padding: 0; }
.entry-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  align-items: center; margin: 0; padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.entry-row:first-child { border-top: 1px dashed var(--line); }
.entry-row--lead { grid-template-columns: 330px 1fr; }
.entry-row--lead h3 { font-size: 1.35rem; }
.entry-row__media { display: block; }
.entry-row__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: #e8e5dd;
}
.entry-row__body h3 { margin: .3em 0 .35em; font-size: 1.12rem; }
.entry-row__body h3 a { color: var(--ink); }
.entry-row__body h3 a:hover { color: var(--accent-dk); text-decoration: none; }
.entry-row__body p { font-size: .92rem; color: #4f565b; margin: 0; }

/* ── rubrieken (streepjesregels) ───────────────────────────── */
.rubriek-list { list-style: none; margin: 0; padding: 0; }
.rubriek-row { margin: 0; border-bottom: 1px solid var(--line); }
.rubriek-row a {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  align-items: baseline; padding: 14px 0; color: var(--ink);
}
.rubriek-row a:hover { text-decoration: none; color: var(--accent-dk); }
.rubriek-row__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.rubriek-row__intro { font-size: .9rem; color: #565d62; }

/* ── metadata / lijsten op detailpagina's ──────────────────── */
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 1.4em 0 0; padding: 12px 0;
}
.meta-row__item {
  padding: 4px 20px 4px 0; margin-right: 20px;
  border-right: 1px solid var(--line);
}
.meta-row__item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.meta-row__label {
  display: block; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.meta-row__value { display: block; font-weight: 600; font-size: .98rem; }

.rubriek-body { color: #454c51; }

.stappen, .kort, .fouten { padding-left: 1.3em; }
.kort li, .fouten li { margin-bottom: .5em; }
.fouten li::marker { color: var(--hot); }
.stappen li::marker { color: var(--accent); font-weight: 700; }

.note-box {
  margin: 2em 0; padding: 16px 20px;
  background: #eef1ec; border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note-box p { margin: 0; font-size: .95rem; }

.contact-card {
  margin: 0 0 18px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h2 { margin: 0 0 .5em; font-size: 1.1rem; }
.contact-card p { margin: 0; font-size: .96rem; }

.related { margin: 3em 0 1em; padding-top: 1.4em; border-top: 2px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li {
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .94rem;
}
.related-list li:last-child { border-bottom: 0; }
.related-list a { font-weight: 600; }

.legal-page h2 { font-size: 1.18rem; }
.legal-page p { font-size: .97rem; }

/* ── beeldverantwoording ───────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.credits-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.credits-table th, .credits-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.credits-table th {
  font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.credits-table tbody tr:nth-child(even) { background: #faf9f6; }

/* ── voettekst ─────────────────────────────────────────────── */
.site-footer {
  margin-top: 60px; background: var(--bar); color: var(--bar-ink);
  padding: 42px 0 30px; font-size: .9rem;
}
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  margin: 0 0 .9em;
}
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: var(--bar-ink); }
.site-footer a:hover { color: #fff; }
.footer-cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer-legal { margin-top: 20px; font-size: .82rem; color: #9aa0a4; }

/* ── responsief ────────────────────────────────────────────── */
@media (max-width: 960px) {
  body { font-size: 16.5px; }

  .hero-split { grid-template-columns: 1fr; gap: 22px; }
  .hero-split__text h1 { font-size: 2rem; }

  .entry-row, .entry-row--lead { grid-template-columns: 150px 1fr; gap: 16px; }
  .entry-row--lead h3 { font-size: 1.15rem; }

  .rubriek-row a { grid-template-columns: 1fr; gap: 4px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }

  /* hamburgermenu */
  .header-inner { padding-top: 18px; padding-bottom: 12px; }
  .site-title { font-size: 1.75rem; }
  .site-tagline { font-size: .76rem; letter-spacing: .05em; }

  .menu-toggle-label {
    display: block; position: absolute; top: 14px; right: 22px; z-index: 120;
  }

  .nav-primary {
    position: fixed; top: 0; right: 0; z-index: 110;
    height: 100%; width: min(320px, 86vw);
    background: var(--surface);
    margin: 0; border: 0; border-left: 1px solid var(--line);
    padding: 76px 8px 24px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .26s ease;
    box-shadow: -14px 0 34px -22px rgba(20, 26, 30, .55);
  }
  .menu-toggle:checked ~ .nav-primary { transform: translateX(0); }

  /* masker: hangt aan de kopinhoud zelf (position:relative, z-index:auto) */
  .header-inner:has(.menu-toggle:checked)::after {
    content: ""; position: fixed; inset: 0; z-index: 100;
    background: rgba(22, 27, 31, .48);
  }

  .menu { flex-direction: column; align-items: stretch; gap: 2px; padding: 0; }
  .menu a { padding: 12px 14px; font-size: 1rem; border-radius: var(--radius); }
  .menu a.is-active { box-shadow: none; background: #eef0ec; }
}

@media (max-width: 620px) {
  .entry-row, .entry-row--lead { grid-template-columns: 1fr; }
  .entry-row__media img { aspect-ratio: 16 / 9; }
  .footer-cols { grid-template-columns: 1fr; }
  .meta-row__item { border-right: 0; padding-right: 0; margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-primary { transition: none; }
}
