/* cryptocrime.nl — richting 3b "Krant"
   ---------------------------------------------------------------------------
   Volgt de designhandoff: hoog contrast wit/zwart, één markeergeel, zwarte
   masthead, dicht nieuwsraster. Radius 0, geen schaduwen, geen beweging.

   Geel en rood zijn functioneel, nooit decoratief. Maximaal één geel vlak per
   viewport.

   Bewust geen donkere modus: dit is een krant en die is wit.
   --------------------------------------------------------------------------- */

@import url("/static/fonts/fonts.css");

:root {
  --papier: #ffffff;
  --omgeving: #ecebe8;
  --inkt: #111111;
  --inkt-zacht: #333333;
  --grijs: #555555;
  --grijs-licht: #777777;
  --lijn: #dddddd;
  --lijn-vlak: #e2e2e0;
  --geel: #f2c31a;
  --rood: #c0392b;
  --nav: #bbbbbb;

  --archivo: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spectral: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --kader: 1000px;
  --duur: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

body {
  margin: 0;
  padding: 40px 20px;
  background: var(--omgeving);
  color: var(--inkt);
  font-family: var(--archivo);
  display: flex;
  justify-content: center;
}

.blad {
  width: 100%;
  max-width: var(--kader);
  background: var(--papier);
  border: 1px solid var(--inkt);
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
::selection { background: var(--geel); color: var(--inkt); }
:focus-visible { outline: 2px solid var(--inkt); outline-offset: 2px; }
.masthead :focus-visible, .voet :focus-visible { outline-color: var(--geel); }

.overslaan {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--geel); color: var(--inkt);
  font-family: var(--mono); font-size: 11px; padding: .6rem 1rem;
  text-decoration: none;
}
.overslaan:focus { left: 1rem; top: 1rem; }

/* ---------------- masthead ---------------- */

.masthead {
  background: var(--inkt);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.woordmerk {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.woordmerk b { color: var(--geel); font-weight: 700; }
.masthead nav {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--nav);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--duur) ease-out, border-color var(--duur) ease-out;
}
.masthead nav a:hover { color: #fff; border-bottom-color: var(--geel); }
.masthead nav a[aria-current] { color: #fff; border-bottom-color: var(--geel); }

/* ---------------- inhoud ---------------- */

.inhoud {
  padding: 28px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.kicker, .mono { font-family: var(--mono); }
.kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs);
}
.kicker-pil {
  align-self: flex-start;
  background: var(--geel);
  color: var(--inkt);
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  border-bottom: 3px solid var(--inkt);
  padding-bottom: 24px;
}
.hero.alleen { grid-template-columns: 1fr; }
.hero-hoofd { display: flex; flex-direction: column; gap: 10px; }
.hero-hoofd h2 { margin: 0; }
.hero-hoofd a { text-decoration: none; }
.hero-kop {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--inkt);
  text-wrap: pretty;
}
.hero-hoofd a:hover .hero-kop {
  text-decoration: underline;
  text-decoration-color: var(--geel);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero-samenvatting {
  font-family: var(--spectral);
  font-size: 15px;
  line-height: 1.6;
  color: var(--inkt-zacht);
  column-count: 2;
  column-gap: 22px;
  column-rule: 1px solid var(--lijn);
  text-wrap: pretty;
  margin: 0;
}
.hero-zij {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--inkt);
  padding-left: 22px;
}
.hero-cijfer {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
  color: var(--inkt);
}
.hero-cijfer span { font-size: 18px; }
.hero-zij p {
  margin: 0;
  font-family: var(--spectral);
  font-size: 14px;
  line-height: 1.55;
  color: var(--inkt-zacht);
  text-wrap: pretty;
}

/* ---------------- nieuwsraster ---------------- */

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.raster.tweekolom { grid-template-columns: repeat(2, 1fr); }
.bericht {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--inkt);
  padding-top: 12px;
}
.bericht a { text-decoration: none; }
.bericht .kicker { font-size: 10px; color: var(--grijs-licht); }
.bericht h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--inkt);
  text-wrap: pretty;
}
.bericht a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--geel);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.bericht p {
  margin: 0;
  font-family: var(--spectral);
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  text-wrap: pretty;
}

/* ---------------- tabel ---------------- */

.tabel { border: 1px solid var(--inkt); }
.tabel-kop, .tabel-rij {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  gap: 16px;
  align-items: baseline;
}
.tabel-kop {
  padding: 10px 18px;
  background: var(--inkt);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tabel-rij {
  padding: 11px 18px;
  border-bottom: 1px solid var(--lijn);
  font-size: 14px;
  color: var(--inkt);
}
.tabel-rij:last-child { border-bottom: none; }
.tabel-rij a { text-decoration: none; }
.tabel-rij a:hover { text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; }
.bedrag { font-family: var(--mono); }
.pil { background: var(--geel); justify-self: start; padding: 0 6px; }
.gedaan { color: var(--grijs); }

/* ---------------- sectiekop ---------------- */

.sectiekop {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs);
}
.sectiekop::after { content: ""; flex: 1; height: 1px; background: var(--inkt); }

/* ---------------- artikel ---------------- */

.artikel { max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.artikel h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: pretty;
}
.artikel .lead {
  margin: 0;
  font-family: var(--spectral);
  font-size: 18px;
  line-height: 1.6;
  color: var(--inkt-zacht);
}
.artikel .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grijs);
  border-top: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  padding: 8px 0;
}
.tekst { font-family: var(--spectral); font-size: 18px; line-height: 1.7; color: var(--inkt-zacht); }
.tekst p { margin: 0 0 1.15em; }
.tekst h2 {
  font-family: var(--archivo);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  margin: 1.8em 0 .5em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--geel);
  display: inline-block;
}
.tekst code, .tekst pre {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--lijn-vlak);
  padding: 1px 5px;
}
.tekst pre { padding: 12px 14px; overflow-x: auto; }
.tekst blockquote {
  margin: 1.4em 0;
  padding-left: 16px;
  border-left: 3px solid var(--inkt);
  font-style: italic;
}
.tekst table { width: 100%; border-collapse: collapse; font-family: var(--archivo); font-size: 14px; margin: 1.4em 0; }
.tekst th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--inkt); color: #fff; text-align: left; padding: 8px 12px; font-weight: 400;
}
.tekst td { padding: 9px 12px; border-bottom: 1px solid var(--lijn); }

.uitleg-link {
  text-decoration: none;
  border-bottom: 2px solid var(--geel);
}
.uitleg-link:hover { background: var(--geel); }

.dossierbalk {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-left: 3px solid var(--geel);
  padding: 8px 0 8px 12px;
}

/* bronnen als datablok */
.bronnen { margin-top: 8px; }
.bronlijst { list-style: none; margin: 0; padding: 0; border: 1px solid var(--inkt); counter-reset: bron; }
.bronlijst li { counter-increment: bron; border-bottom: 1px solid var(--lijn); }
.bronlijst li:last-child { border-bottom: none; }
.bronlijst a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 14px;
}
.bronlijst a::before { content: counter(bron); font-family: var(--mono); font-size: 11px; color: var(--grijs); }
.bronlijst a:hover { background: var(--lijn-vlak); }
.bron-naam { font-weight: 500; }
.bron-host { font-family: var(--mono); font-size: 11px; color: var(--grijs); }

/* tijdlijn */
.tijdlijn ol { list-style: none; margin: 0; padding: 0; }
.tijdlijn li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lijn);
  font-size: 14px;
}
.tijdlijn li:last-child { border-bottom: none; }
.tijdlijn .datum { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--grijs); }

.lijst { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--inkt); }
.lijst li { border-bottom: 1px solid var(--lijn); }
.lijst a { display: block; padding: 12px 0; text-decoration: none; }
.lijst a:hover { text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; }
.lijst .titel { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lijst .bij { display: block; font-family: var(--spectral); font-size: 14px; color: var(--grijs); }

/* ---------------- voet ---------------- */

.voet {
  background: var(--inkt);
  color: var(--nav);
  padding: 28px 40px 32px;
  margin-top: auto;
}
.voet-raster { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 28px; }
.voet h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grijs-licht);
}
.voet a { color: var(--nav); text-decoration: none; }
.voet a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; }
.voet-kolom a { display: block; padding: 3px 0; font-family: var(--mono); font-size: 12px; }
.voet-merk .woordmerk { font-size: 18px; }
.voet-merk p { margin: 8px 0 0; font-family: var(--spectral); font-size: 14px; line-height: 1.55; color: var(--grijs-licht); max-width: 34ch; }
.voet-onder {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.ai-melding { font-family: var(--spectral); font-size: 14px; line-height: 1.55; color: var(--grijs-licht); max-width: 62ch; letter-spacing: 0; }
.ai-melding b { color: var(--geel); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 400; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  body { padding: 0; }
  .blad { border-left: none; border-right: none; }
  .masthead { padding: 16px 22px; }
  .inhoud { padding: 22px 22px 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero-samenvatting { column-count: 1; }
  .hero-zij { border-left: none; border-top: 1px solid var(--inkt); padding-left: 0; padding-top: 16px; }
  .raster, .raster.tweekolom { grid-template-columns: repeat(2, 1fr); }
  .voet { padding: 24px 22px 28px; }
  .voet-raster { grid-template-columns: 1fr 1fr; }
  .voet-merk { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero-kop, .artikel h1 { font-size: 26px; }
  .raster, .raster.tweekolom { grid-template-columns: 1fr; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .masthead nav { flex-wrap: wrap; gap: 14px; }
  .tabel-kop { display: none; }
  .tabel-rij { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .tabel-rij .bedrag::before { content: "Bedrag: "; color: var(--grijs); }
  .tijdlijn li { grid-template-columns: 1fr; gap: 2px; }
  .tekst { font-size: 16px; }
  .voet-raster { grid-template-columns: 1fr; }
}

/* ---------------- printen ---------------- */

@media print {
  body { padding: 0; background: #fff; }
  .blad { border: none; max-width: none; }
  .masthead, .voet, .overslaan { display: none; }
  .inhoud { padding: 0; }
  .artikel { max-width: none; }
  .bronlijst a::after { content: " — " attr(href); font-family: var(--mono); font-size: 9px; color: #555; }
}


/* ---------------- kleuraccenten ----------------
   Geel markeert wat waar en belangrijk is, rood markeert wat er misging.
   Nooit allebei in een blok, en hooguit een markering per artikel. */

mark {
  background: var(--geel);
  color: var(--inkt);
  padding: 0 3px;
  border-radius: 0;
}

/* links in de lopende tekst: geel onderstreept, tekstkleur blijft zwart */
.tekst a:not(.uitleg-link) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--geel);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tekst a:not(.uitleg-link):hover { background: var(--geel); }

/* de streep achter een sectiekop maakt het ritme van de pagina zichtbaar */
.sectiekop::after { height: 2px; background: var(--geel); }

/* dossiertabel: een rij is aanklikbaar, en dat mag je zien */
.tabel-rij:hover { background: #fdf6d9; }

/* signaalrood, uitsluitend voor wat er misging */
.kicker-pil.waarschuwing { background: var(--rood); color: #fff; }
.fout { color: var(--rood); }
