/* De Gazet van Niks - krantenlook, geen externe fonts of scripts.
   Alles moet ook werken als de server geen internet heeft. */

:root {
  --inkt: #16150f;
  --inkt-zacht: #55524a;
  --papier: #faf7ef;
  --papier-diep: #f2ede0;
  --lijn: #d9d2c0;
  --rood: #a6231b;
  --waarschuwing: #ffd21f;
  --waarschuwing-inkt: #241f00;
  --breedte: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --inkt: #ece7db;
    --inkt-zacht: #a39d90;
    --papier: #16150f;
    --papier-diep: #1e1c15;
    --lijn: #38352b;
    --rood: #e8695f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.omhulsel {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- de satire-banner: staat bovenaan en blijft plakken ---------- */

.satirebanner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--waarschuwing);
  color: var(--waarschuwing-inkt);
  border-bottom: 3px solid var(--waarschuwing-inkt);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.6rem 1rem;
}

.satirebanner strong {
  display: inline-block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.satirebanner .opbouw {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ---------- kop van de krant ---------- */

.krantenkop {
  text-align: center;
  padding: 2.25rem 0 1.25rem;
  border-bottom: 3px double var(--inkt);
}

.krantenkop a { color: inherit; text-decoration: none; }

.krantenkop h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-weight: 700;
}

.krantenkop .leus {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: var(--inkt-zacht);
  font-size: 1rem;
}

.krantenkop .lijnen {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--lijn);
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.krantenkop .lijnen a { color: inherit; border-bottom: 1px solid var(--lijn); }

/* ---------- het satire-label bij elke kop ---------- */

.label {
  display: inline-block;
  vertical-align: 0.22em;
  margin-right: 0.55rem;
  padding: 0.16rem 0.5rem;
  background: var(--rood);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- de chronologische lijst ---------- */

.artikels { padding: 1.5rem 0 0; }

.bericht {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--lijn);
}

.bericht:last-child { border-bottom: none; }

.bericht .beeld { margin: 0; }

.bericht .beeld img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
  display: block;
  background: var(--papier-diep);
  border: 1px solid var(--lijn);
}

.bericht .beeld figcaption,
.artikelbeeld figcaption {
  margin-top: 0.4rem;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--inkt-zacht);
}

.bericht h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.bericht h2 a { color: inherit; text-decoration: none; }
.bericht h2 a:hover { text-decoration: underline; }

.bericht .datum {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
  margin: 0 0 0.6rem;
}

.bericht .inleiding { margin: 0 0 0.7rem; }

.bericht .verder {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rood);
  text-decoration: none;
}

.bericht .verder:hover { text-decoration: underline; }

/* ---------- artikelpagina ---------- */

.artikel { padding: 2rem 0 1rem; max-width: 44rem; margin: 0 auto; }

.artikel h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.6rem;
}

.artikel .ondertitel {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--inkt-zacht);
  margin: 0 0 1.2rem;
}

.artikelbeeld { margin: 1.5rem 0; }

.artikelbeeld img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--lijn);
  background: var(--papier-diep);
}

.artikel p { margin: 0 0 1.15rem; }

.artikel .terug {
  display: inline-block;
  margin: 1rem 0 2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--rood);
}

/* ---------- de disclaimer onder elk artikel ---------- */

.verzonnen {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--papier-diep);
  border-left: 4px solid var(--rood);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
}

.verzonnen strong { display: block; margin-bottom: 0.3rem; }
.verzonnen a { color: var(--rood); }

/* ---------- voet ---------- */

.voet {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 3px double var(--inkt);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--inkt-zacht);
}

.voet a { color: var(--rood); }
.voet p { margin: 0 0 0.7rem; }

/* ---------- colofon ---------- */

.colofon { padding: 2rem 0; max-width: 44rem; margin: 0 auto; }
.colofon h1 { font-size: 2.2rem; margin-top: 0.5rem; }
.colofon h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

/* ---------- leeg ---------- */

.leeg {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--inkt-zacht);
  font-style: italic;
}

/* ---------- smalle schermen ---------- */

@media (max-width: 40rem) {
  body { font-size: 17px; }
  .bericht {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.6rem 0;
  }
  .bericht .beeld img { height: 12rem; }
  .krantenkop { padding: 1.5rem 0 1rem; }
  .krantenkop .lijnen { gap: 0.9rem; }
}
