/* Blog (blog/ en blog/<slug>/). Alleen wat styles.css nog niet heeft; de pagina's komen uit
   blog/build.py. */

/* ---------- overzicht ---------- */

.bl-intro {
  padding: clamp(56px, 8vw, 112px) 0 0;
}
.bl-intro__title {
  font-size: clamp(52px, 8.6vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.bl-intro__lead {
  max-width: 40ch;
}
/* Artikelen en cases staan in dezelfde rij: links een klein beeld, rechts regel, titel en tekst. De
   link van de titel ligt over de hele rij. */
.bl-list {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bl-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(112px, 22vw, 260px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.bl-item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.5s var(--ease);
}
.bl-item:hover .bl-item__img {
  transform: scale(1.02);
}
.bl-item:has(.bl-item__link:focus-visible) .bl-item__img {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.bl-item__line {
  font-size: 15px;
  color: var(--muted);
}
.bl-item h2,
.bl-item h3 {
  margin-top: 6px;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.08;
}
.bl-item__link {
  text-decoration: none;
}
.bl-item__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.bl-item__link:focus-visible {
  outline: none;
}
.bl-item:hover .bl-item__link {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.bl-item__text > p:last-child {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--muted);
}
@media (max-width: 560px) {
  .bl-item__text > p:last-child {
    font-size: 16px;
  }
}

/* De naam van een case is inline-block, anders kan hij niet als één geheel overvloeien in de kop van
   de casepagina. */
.bl-case__name {
  display: inline-block;
}

/* ---------- artikel ---------- */

.bl-article {
  padding: clamp(40px, 6vw, 88px) 0 var(--section);
}
/* Eén leeskolom van ongeveer 68 tekens, midden op de pagina. Een ch is zo breed als een 0 en gewone
   letters zijn smaller, dus 55ch geeft gemeten zo'n 68 tekens per regel. De kolom zet zelf de
   lettergrootte van de lopende tekst, zodat kop, tekst en schrijver even breed zijn. */
.bl-column {
  max-width: calc(55ch + 2 * var(--gutter));
  font-size: clamp(18px, 1.35vw, 20px);
}
.bl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
  color: var(--muted);
}
.bl-crumbs a {
  text-decoration: none;
}
.bl-crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bl-crumbs [aria-current] {
  color: var(--ink);
}
.bl-title {
  margin-top: clamp(28px, 3.5vw, 48px);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.bl-meta {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
}
.bl-lead {
  max-width: none;
  margin-top: 20px;
}
.bl-hero__img {
  width: 100%;
  height: auto;
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.bl-body {
  margin-top: clamp(40px, 5vw, 64px);
  line-height: 1.7;
}
.bl-body > * + * {
  margin-top: 1.1em;
}
.bl-body h2 {
  margin-top: 2.2em;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
}
.bl-body h3 {
  margin-top: 1.8em;
  font-size: clamp(21px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.bl-body h2 + *,
.bl-body h3 + * {
  margin-top: 0.6em;
}
.bl-body a {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.bl-body a:hover {
  text-decoration-color: var(--ink);
}
.bl-body ul,
.bl-body ol {
  margin-bottom: 0;
  padding-left: 1.4em;
}
.bl-body li + li {
  margin-top: 0.5em;
}
.bl-body li::marker {
  color: var(--muted);
}
.bl-body strong {
  font-weight: 600;
}

/* Een tabel scrolt op een smal scherm in zijn eigen vak, de tekst eromheen blijft staan. */
.bl-table {
  overflow-x: auto;
  margin-block: 1.6em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.bl-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}
.bl-table caption {
  padding: 16px 18px 4px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
.bl-table th,
.bl-table td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
}
.bl-table thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.bl-table tbody th {
  font-weight: 600;
}
.bl-table tbody tr + tr > * {
  border-top: 1px solid var(--line);
}

/* ---------- wie schreef dit ---------- */

.bl-author {
  display: flex;
  font-size: 18px;
  align-items: flex-start;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.bl-author__photo {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}
.bl-author__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
.bl-author__role {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
}
.bl-author__line {
  margin-top: 10px;
  max-width: 48ch;
}
.bl-author .link-arrow {
  margin-top: 16px;
}
