/* ==========================================================================
   Definitieweb — statische stylesheet
   Ontwerp: rustig naslagwerk. Inkt-blauw op warm papierwit,
   humanist serif voor de leestekst, heldere sans voor navigatie.
   ========================================================================== */

:root {
  --ink:      #1c2733;   /* hoofdtekst, bijna-zwart met blauwe ondertoon */
  --ink-soft: #4a5766;   /* secundaire tekst */
  --paper:    #faf8f3;   /* achtergrond, warm papier */
  --paper-2:  #f2eee4;   /* kaarten / vlakken */
  --line:     #ddd6c7;   /* hairlines */
  --accent:   #2b5f8a;   /* diep staalblauw — links, accenten */
  --accent-2: #b8863b;   /* okergoud, spaarzaam gebruikt */
  --maxw:     1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(120%) blur(4px);
}
.header-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 0.6rem;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--sans);
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-tagline { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }
.main-nav { font-family: var(--sans); font-size: 0.95rem; display: flex; gap: 1.4rem; }
.main-nav a { color: var(--ink-soft); font-weight: 500; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Search ---------- */
.search-bar { position: relative; padding-bottom: 0.9rem; }
#site-search {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: 0.7rem 1rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink);
}
#site-search:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,95,138,0.15);
}
.search-results {
  list-style: none; margin: 0.4rem 0 0; padding: 0.3rem;
  position: absolute; left: 1.5rem; right: 1.5rem; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28,39,51,0.12); max-height: 60vh; overflow-y: auto;
}
.search-results li { margin: 0; }
.search-results a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
}
.search-results a:hover { background: var(--paper-2); text-decoration: none; }
.search-results .sr-cat { color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- Hero ---------- */
.home { padding-top: 3rem; }
.hero { max-width: 40ch; margin-bottom: 3.5rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08;
  margin: 0 0 0.8rem; letter-spacing: -0.015em; font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.hero-cta {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  background: var(--accent); color: #fff; padding: 0.7rem 1.4rem;
  border-radius: 8px; font-size: 1rem;
}
.hero-cta:hover { background: #23507a; text-decoration: none; }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  color: var(--ink-soft); margin: 0 0 1.2rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.3rem 1.4rem; color: var(--ink); transition: border-color .15s, transform .15s;
}
.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card-cat {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-2); margin-bottom: 0.5rem;
}
.card-title { font-size: 1.3rem; margin: 0 0 0.5rem; line-height: 1.2; font-weight: 600; }
.card-desc { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1rem; flex-grow: 1; }
.card-date { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Article ---------- */
.article-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem; padding-top: 2.5rem; padding-bottom: 4rem;
  align-items: start;
}
.breadcrumb {
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb span { margin: 0 0.35rem; color: var(--line); }
.def-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.def-cat { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--accent-2); margin: 0 0 0.6rem; }
.def-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; margin: 0 0 0.8rem; font-weight: 600; letter-spacing: -0.01em; }
.def-meta { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.def-body { font-size: 1.12rem; }
.def-body > p:first-of-type { font-size: 1.25rem; color: var(--ink); }
.def-body h2 {
  font-size: 1.6rem; margin: 2.4rem 0 0.8rem; line-height: 1.2;
  font-weight: 600; letter-spacing: -0.01em;
}
.def-body h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; font-weight: 600; }
.def-body p { margin: 0 0 1.2rem; }
.def-body ul, .def-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.def-body li { margin-bottom: 0.5rem; }
.def-body strong { font-weight: 700; }
.def-body a { text-decoration: underline; text-underline-offset: 2px; }
.def-body blockquote {
  margin: 1.6rem 0; padding: 0.6rem 1.4rem; border-left: 3px solid var(--accent-2);
  color: var(--ink-soft); font-style: italic;
}

.article-aside { font-family: var(--sans); position: sticky; top: 8rem; }
.aside-box { background: var(--paper-2); border-radius: 10px; padding: 1.3rem; }
.aside-box h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.aside-box p { margin: 0; font-size: 0.95rem; }

/* ---------- Listings ---------- */
.listing { padding-top: 2.5rem; padding-bottom: 4rem; }
.listing-header { margin-bottom: 2.5rem; }
.listing-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.5rem; font-weight: 600; }
.listing-header p { color: var(--ink-soft); margin: 0; font-family: var(--sans); font-size: 0.95rem; }

.letter-group { margin-bottom: 2.2rem; }
.letter-group h2 {
  font-family: var(--sans); font-size: 1.4rem; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; margin: 0 0 0.9rem;
}
.def-list {
  list-style: none; margin: 0; padding: 0;
  columns: 3; column-gap: 2rem;
}
.def-list li { margin-bottom: 0.4rem; break-inside: avoid; }

/* ---------- Static pages ---------- */
.static-page { grid-column: 1 / -1; max-width: 68ch; }
.static-page h1 { font-size: 2.4rem; margin: 0 0 1.2rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2dc; margin-top: 4rem; padding-top: 3rem; font-family: var(--sans); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin: 0 0 0.9rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.5; margin: 0; color: #9fadbb; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: #c9d2dc; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 1.5rem; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #8593a1; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .article-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-aside { position: static; }
  .def-list { columns: 2; }
  .header-inner { padding-top: 0.9rem; }
}
@media (max-width: 520px) {
  .def-list { columns: 1; }
  .main-nav { gap: 1rem; font-size: 0.88rem; }
  .hero { margin-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
