/* socialmediadna.org: ontwerprichting A "Archief". Rustig, goed leesbaar, licht en donker thema. */

:root {
  --bg: #fbfaf7;
  --surface: #f3f1ea;
  --ink: #1c1b19;
  --ink-2: #3d3b36;
  --muted: #6b675e;
  --line: #e3dfd4;
  --accent: #25408f;
  --link: #25408f;
  --mark: #fff1b8;
  --serif: "Newsreader Variable", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a; --surface: #1e2025; --ink: #ecebe6; --ink-2: #cfcdc6; --muted: #9c9a93;
    --line: #2e3036; --accent: #9db2f0; --link: #a9bdf5; --mark: #5a4a12; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15161a; --surface: #1e2025; --ink: #ecebe6; --ink-2: #cfcdc6; --muted: #9c9a93;
  --line: #2e3036; --accent: #9db2f0; --link: #a9bdf5; --mark: #5a4a12; color-scheme: dark;
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.65 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 4px; font: 600 14px/1 var(--sans); z-index: 20; }
.skip:focus { top: 12px; }

.kicker { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
a.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { font: 400 14px/1.45 var(--sans); color: var(--muted); }

/* ---------- Kop en menu ---------- */

header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); letter-spacing: -.01em; margin-right: auto; }
.brand .helix { width: 26px; height: 26px; color: var(--accent); }
.brand b { font-weight: 600; color: var(--accent); }
nav.main { display: flex; gap: 22px; font: 500 14px/1 var(--sans); margin-right: 12px; }
nav.main a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.icon-btn { border: 0; background: none; color: var(--ink-2); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; padding: 0; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--surface); color: var(--accent); }
.menu-btn { display: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

/* ---------- Home ---------- */

.intro { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.intro h1 { font: 500 clamp(36px, 5.4vw, 56px)/1.06 var(--serif); letter-spacing: -.02em; margin: 14px 0 18px; max-width: 15ch; }
.intro p { font-size: 21px; color: var(--ink-2); max-width: 36em; margin: 0; }

.home-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 28px 0 0; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.home-search:focus-within { border-color: var(--accent); }
.home-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.home-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 400 17px/1.2 var(--sans); padding: 10px 0; outline: none; }
.home-search input::placeholder { color: var(--muted); }
.home-search button { border: 0; background: var(--accent); color: var(--bg); font: 600 15px/1 var(--sans); padding: 12px 20px; border-radius: 999px; cursor: pointer; }

.years { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; font: 500 14px/1 var(--sans); }
.years a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.years a span { color: var(--muted); margin-left: 5px; }
.years a:hover, .years a[aria-current] { border-color: var(--accent); color: var(--accent); }

.lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; background: var(--surface); }
.lead h2 { font: 500 34px/1.15 var(--serif); letter-spacing: -.015em; margin: 12px 0; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { color: var(--accent); }
.lead p { color: var(--ink-2); margin: 0 0 14px; }

.topics-strip { padding: 36px 0; border-bottom: 1px solid var(--line); }
.topics-strip h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font: 500 14px/1 var(--sans); }
.chips a { text-decoration: none; padding: 9px 13px; background: var(--surface); border-radius: 999px; color: var(--ink-2); }
.chips a span { color: var(--muted); margin-left: 6px; }
.chips a:hover { color: var(--accent); }

.all-years { font: 400 15px/1.6 var(--sans); color: var(--muted); padding: 28px 0 0; margin: 0; }
.all-years a { color: var(--accent); }

/* ---------- Lijsten (home, archieven) ---------- */

.group { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.group > h2 { font: 500 30px/1 var(--serif); margin: 4px 0 0; color: var(--accent); position: sticky; top: 16px; align-self: start; }
.group > h2 a { text-decoration: none; }
.entry { display: grid; grid-template-columns: 1fr 96px; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.group > div, .entry > div { min-width: 0; }
.entry h3, .entry p { overflow-wrap: anywhere; }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry .meta { display: block; margin-bottom: 4px; }
.entry .kicker { display: inline-block; margin-bottom: 2px; }
.entry h3 { font: 500 22px/1.25 var(--serif); margin: 6px 0; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--accent); }
.entry p { margin: 0; font-size: 17px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--surface); }
.more { display: inline-block; margin-top: 18px; font: 500 15px/1 var(--sans); color: var(--accent); }

.arch-head { padding: 56px 24px 28px; }
.arch-head h1 { font: 500 clamp(36px, 5vw, 52px)/1.1 var(--serif); letter-spacing: -.015em; margin: 12px 0; }
.arch-head p { color: var(--ink-2); margin: 0 0 6px; max-width: 36em; }
.arch-head .chips, .arch-head .years { margin-top: 18px; }

.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.topic { padding: 22px 0; border-bottom: 1px solid var(--line); }
.topic h2 { font: 500 26px/1.2 var(--serif); margin: 0 0 6px; }
.topic h2 a { text-decoration: none; }
.topic h2 a:hover { color: var(--accent); }
.topic h2 span { font: 500 14px/1 var(--sans); color: var(--muted); margin-left: 6px; }
.topic p { margin: 0 0 10px; color: var(--ink-2); font-size: 17px; }

/* ---------- Post ---------- */

.post-head { padding: 56px 24px 28px; text-align: center; }
.post-head h1 { font: 500 clamp(32px, 5vw, 50px)/1.1 var(--serif); letter-spacing: -.02em; margin: 16px auto 18px; max-width: 20ch; text-wrap: balance; }
.page .post-head { padding-bottom: 8px; }
.hero { max-width: 1080px; margin: 0 auto 40px; padding: 0 24px; }
.hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 4px; display: block; }

.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font: 600 26px/1.25 var(--serif); margin: 1.6em 0 .5em; letter-spacing: -.01em; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 21px; }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose img { border-radius: 4px; max-height: 720px; width: auto; }
.prose p > a:only-child > img:not(.alignleft, .alignright), .prose p > img:only-child:not(.alignleft, .alignright) { display: block; margin: 0 auto; }
/* Uitgelijnde afbeeldingen uit WordPress staan klein naast de tekst, met ruimte eromheen */
.prose img.alignleft { float: left; width: auto; max-width: min(38%, 240px); max-height: 320px; object-fit: contain; margin: .3em 1.6em 1em 0; }
.prose img.alignright { float: right; width: auto; max-width: min(38%, 240px); max-height: 320px; object-fit: contain; margin: .3em 0 1em 1.6em; }
.prose h2, .prose h3, .prose h4, .prose figure, .prose blockquote, .prose .embed { clear: both; }
.prose::after { content: ""; display: block; clear: both; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose blockquote p { margin: .4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; }
.prose td, .prose th { border: 1px solid var(--line); padding: .4em .6em; vertical-align: top; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font: 400 14px/1.5 var(--sans); color: var(--muted); margin-top: .6em; }
.prose code { font-size: .85em; background: var(--surface); padding: .1em .3em; border-radius: 3px; }
.prose video { max-width: 100%; }
.prose em em { font-style: normal; }

.embed { margin: 1.8em 0; }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; background: var(--surface); }
.embed iframe[src*="slideshare"] { aspect-ratio: 4 / 3.3; }
.embed figcaption a { color: var(--muted); }
.embed-gone p { margin: 0; padding: 18px 20px; background: var(--surface); border-radius: 4px; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.embed-gone a { color: var(--muted); margin-left: 6px; }

/* Toevoegingen uit 2026: samenvatting en vragen */
.summary-box { margin-bottom: 36px; }
.summary-box, .post-faq { font: 400 16px/1.6 var(--sans); }
.summary-box h2, .post-faq > h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.summary-box ul { margin: 0; padding: 18px 20px 18px 38px; background: var(--surface); border-radius: 6px; }
.summary-box li { margin: .3em 0; color: var(--ink-2); }
.facts { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 15px; }
.facts caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 6px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 34%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.added-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.post-faq { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-faq h3 { font: 500 20px/1.3 var(--serif); margin: 20px 0 6px; }
.post-faq p { margin: 0; color: var(--ink-2); }
.post-faq .added-note { margin-top: 18px; }

.post-foot { padding-bottom: 8px; }
.filed { font: 400 14px/1.5 var(--sans); color: var(--muted); margin: 40px 0 0; }
.filed a { color: var(--accent); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); font: 500 13px/1 var(--sans); }
.tags a { display: block; text-decoration: none; color: var(--muted); padding: 7px 11px; background: var(--surface); border-radius: 999px; }
.tags a:hover { color: var(--accent); }

.comments { margin-top: 40px; }
.comments h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.comment { margin: 12px 0; padding: 16px 20px; background: var(--surface); border-radius: 6px; }
.comment p { margin: 0 0 6px; }
.comment footer { font: 400 14px/1.4 var(--sans); color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 0; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.pager a { text-decoration: none; display: block; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.pager a:hover { border-color: var(--accent); }
.pager b { display: block; font: 500 19px/1.3 var(--serif); color: var(--ink); margin-top: 6px; }
.pager .newer { text-align: right; }

.related { padding-top: 48px; }
.related > h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.related > h2 a { color: var(--accent); text-decoration: none; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.related-grid .entry:nth-child(2) { border-top: 0; padding-top: 0; }

/* ---------- Zoeken (Pagefind) ---------- */

.narrow.search-page { max-width: 920px; }
.search-page .arch-head { padding-left: 0; padding-right: 0; }
#search {
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: var(--surface);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 999px;
  --pagefind-ui-image-border-radius: 3px;
  --pagefind-ui-font: var(--sans);
}
#search .pagefind-ui__search-input { font-weight: 400; }
#search .pagefind-ui__result-title { font-family: var(--serif); font-size: 22px; font-weight: 500; }
#search .pagefind-ui__result-link { color: var(--ink); text-decoration: none; }
#search .pagefind-ui__result-link:hover { color: var(--accent); }
#search .pagefind-ui__result-excerpt { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
#search mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }

.faq-page .arch-head { padding-left: 0; padding-right: 0; }
.faq-toc { margin: 0 0 32px; }
.faq-page .prose h2 { color: var(--accent); scroll-margin-top: 16px; }
.faq-page .prose h3 { font-size: 21px; margin-top: 1.4em; }

.not-found { padding: 80px 24px 40px; }
.not-found h1 { font: 500 44px/1.1 var(--serif); margin: 12px 0 16px; }
.not-found p { color: var(--ink-2); }

/* ---------- Voet ---------- */

footer.site { margin-top: 80px; background: var(--surface); padding: 48px 0; font: 400 15px/1.6 var(--sans); color: var(--muted); }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site h2 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
footer.site p { margin: 0; max-width: 32em; }
footer.site a { display: block; text-decoration: none; color: var(--muted); padding: 2px 0; }
footer.site a:hover { color: var(--accent); }

/* ---------- Mobiel ---------- */

@media (max-width: 820px) {
  nav.main { display: none; order: 5; width: 100%; flex-direction: column; gap: 0; margin: 0 0 12px; font-size: 16px; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main a[aria-current] { border-bottom-color: var(--line); }
  header.site.nav-open nav.main { display: flex; }
  .menu-btn { display: grid; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap, .narrow, .hero { padding-left: 16px; padding-right: 16px; }
  .arch-head, .post-head { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; }
  .intro { padding: 40px 0 36px; }
  .intro p { font-size: 19px; }
  .home-search button { padding: 11px 14px; }
  .lead { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .lead h2 { font-size: 28px; }
  .group { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .group > h2 { font-size: 26px; position: static; }
  .entry { grid-template-columns: 1fr 72px; gap: 14px; }
  .entry img { width: 72px; height: 56px; }
  .entry h3 { font-size: 19px; }
  .post-head { padding-top: 36px; }
  .hero { margin-bottom: 28px; }
  .pager, .related-grid { grid-template-columns: 1fr; }
  .related-grid .entry:nth-child(2) { border-top: 1px solid var(--line); padding-top: 18px; }
  .pager .newer { text-align: left; }
  footer.site .wrap { grid-template-columns: 1fr; }
}

@media print {
  header.site, footer.site, .pager, .related, .tags { display: none; }
  body { background: #fff; color: #000; }
}
