/* DieGem archief — kleuren uit het logo, Atkinson Hyperlegible Next + Source Serif 4 (zelf gehost, OFL) */
@font-face {
  font-family: "Atkinson Next";
  src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  --bordeaux: #800a2d;
  --blue: #003b63;
  --stone: #86817b;      /* logo-grijs: enkel voor vlakken en lijnen */
  --stone-text: #615c56; /* donkerder grijs voor tekst (AA-contrast) */
  --ink: #202326;
  --line: #dfe2e5;
  --mist: #eef1f3;
  --white: #ffffff;
  --sans: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr { 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(--blue); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- top ---------- */
.top { border-bottom: 6px solid; border-image: linear-gradient(90deg, var(--stone) 0 33.33%, var(--bordeaux) 33.33% 66.66%, var(--blue) 66.66%) 1; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 18px; }
.logo { width: 190px; }
.top-note { margin: 0; color: var(--stone-text); font-size: .95rem; }

/* ---------- intro + domeinen ---------- */
.intro { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
h1 {
  margin: 0 0 .4em;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--blue);
}
.intro-lead {
  margin: 0;
  max-width: 34em;
  font: 400 clamp(1.15rem, 1.9vw, 1.375rem)/1.55 var(--serif);
  color: var(--ink);
}
.domains { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 18px; }
.domains-hint { margin: 0 0 6px; color: var(--stone-text); font-size: .95rem; }
.domains ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: clamp(16px, 3vw, 44px); row-gap: 0; }
.domains a {
  display: inline-block;
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -.035em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: .06em;
  background: linear-gradient(var(--bordeaux), var(--bordeaux)) no-repeat 0 100% / 0 .07em;
  transition: font-weight .25s ease, color .25s ease, background-size .3s ease;
}
.domains a:hover, .domains a:focus-visible { font-weight: 600; color: var(--bordeaux); background-size: 100% .07em; }
.domains a[aria-current] { font-weight: 700; color: var(--bordeaux); background-size: 100% .07em; }
.domains sup {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--stone-text);
  vertical-align: top;
  margin: .55em 0 0 .3em;
}

/* ---------- over ---------- */
.about { background: var(--mist); padding: clamp(48px, 7vw, 88px) 0; }
.about-inner { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 5vw, 72px); }
h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--blue); }
.about-text { font: 400 1.125rem/1.7 var(--serif); max-width: 38em; }
.about-text p { margin: 0 0 1em; }
.about-text cite { font-style: italic; }
blockquote { margin: 0 0 1.6em; padding: 0 0 0 22px; border-left: 3px solid var(--bordeaux); }
blockquote p { font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--blue); margin: 0 0 .5em; }
blockquote footer { font: 400 .95rem/1.4 var(--sans); color: var(--stone-text); }
.about-note { font: 400 .95rem/1.5 var(--sans); color: var(--stone-text); margin-top: 1.6em !important; }

/* ---------- archief ---------- */
.archive { padding: clamp(56px, 7vw, 88px) 0 32px; scroll-margin-top: 0; }
.archive-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.archive-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.archive-head p { margin: 0; color: var(--stone-text); }

.tools {
  position: sticky; top: 0; z-index: 5;
  background: var(--white);
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.tools-row + .tools-row { margin-top: 10px; }
.search { flex: 1 1 340px; }
.search input {
  width: 100%;
  font: inherit; font-size: 1.0625rem;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid #b9bfc5; border-radius: 6px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23615c56' stroke-width='2'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='m12 12 4.5 4.5'/%3E%3C/svg%3E") no-repeat 14px 50%;
  color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 59, 99, .18); }
.result { margin: 0; color: var(--stone-text); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.result [data-count] { font-weight: 700; color: var(--ink); }
.reset, .empty button {
  font: inherit; font-size: .95rem; color: var(--bordeaux);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .18em;
}

.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid #c3c8cd; border-radius: 999px;
  font-size: .95rem; line-height: 1.3;
  color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.seg small { font-size: .82rem; color: var(--stone-text); margin-left: 2px; }
.seg label:hover span { border-color: var(--blue); }
.seg input:focus-visible + span { outline: 3px solid var(--bordeaux); outline-offset: 2px; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg input:checked + span small { color: rgba(255,255,255,.75); }
.seg-dom input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); }
.seg input[value=""]:checked + span { background: var(--white); color: var(--ink); border-color: var(--ink); font-weight: 700; }

/* groepen */
.g { margin-top: 48px; }
.g-head { display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; gap: 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.g-head::before { content: ""; width: 28px; height: 10px; background: var(--c, var(--blue)); align-self: center; }
.g-head h3 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.g-head p { grid-column: 2; margin: 4px 0 0; color: var(--stone-text); max-width: 60ch; }
.g-publicaties { --c: var(--blue); }
.g-casestudies { --c: var(--bordeaux); }
.g-actieonderzoeken { --c: var(--stone); }
.g-begrippen { --c: var(--ink); }

.rows { list-style: none; margin: 0; padding: 0; }
.r {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 11rem;
  gap: 0 24px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.r-year { color: var(--stone-text); font-variant-numeric: tabular-nums; padding-top: 2px; }
.r-link { font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; }
.r-link:hover { color: var(--blue); text-decoration: underline; }
.r-label { margin: 2px 0 0; font-size: .95rem; color: var(--bordeaux); }
.r-authors { display: block; margin-top: 3px; color: var(--stone-text); font-size: .95rem; }
.r-intro {
  margin: 8px 0 0; max-width: 68ch;
  font: 400 1rem/1.6 var(--serif); color: #43474b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.r-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; padding-top: 2px; }
.r-domain { font-size: .9rem; color: var(--stone-text); }
.r-dl {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .95rem; font-weight: 700; white-space: nowrap;
  color: var(--blue); text-decoration: none;
}
.r-dl::before {
  content: ""; width: 14px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' fill='none' stroke='%23003b63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 1v10M3 7l4 4 4-4M1 15h12'/%3E%3C/svg%3E") no-repeat center;
}
.r-dl:hover { text-decoration: underline; }

.empty { margin: 40px 0; font-size: 1.125rem; }

/* ---------- partners ---------- */
.people { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); margin-top: 48px; }
.people h2 { margin-bottom: 28px; }
.logos { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.logos img { height: 46px; width: auto; }
.promotors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 32px; }
.promotors li { color: var(--stone-text); font-size: .95rem; line-height: 1.45; }
.promotors strong { display: block; color: var(--ink); font-size: 1.02rem; }

.foot { background: var(--blue); color: #dbe5ee; padding: 28px 0; font-size: .95rem; }
.foot p { margin: 0; max-width: 70ch; }

/* ---------- klein scherm ---------- */
@media (max-width: 760px) {
  .top-note { display: none; }
  .logo { width: 150px; }
  .about-inner { grid-template-columns: 1fr; }
  .tools { position: static; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; width: calc(100% + 32px); }
  .seg::-webkit-scrollbar { display: none; }
  .seg span { white-space: nowrap; }
  .g-head { grid-template-columns: 1fr; }
  .g-head::before { margin-bottom: 10px; }
  .g-head p { grid-column: 1; }
  .r { grid-template-columns: 1fr; gap: 0; }
  .r-year { font-size: .9rem; padding: 0 0 2px; }
  .r-year:empty { display: none; }
  .r-side { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 10px; text-align: left; }
  .r-dl { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .tools, .domains, .skip { display: none !important; }
  .r-intro { -webkit-line-clamp: unset; }
}
