/* ============================================================
   OPENBAAR MINISTERIE AMSTERDAM — de onofficiële editie
   Design tokens
   ============================================================ */

:root {
  --ink:        #000000;   /* pure black */
  --ink-2:      #0a0a0a;
  --ink-3:      #141414;
  --paper:      #f4efe6;   /* warm off-white */
  --paper-dim:  #cfc6b4;
  --paper-faint:#8f8778;
  --gold:       #e02424;   /* red */
  --gold-soft:  #b51d1d;
  --rule:       #2a2a2a;
  --mono-bg:    #efe8da;

  --serif: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --wide:  "Michroma", var(--sans);
  --mono:  "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--paper); border-bottom: 1px solid var(--gold); }

img { max-width: 100%; display: block; }

/* Universal gold border on all images (3px) */
img { border: 3px solid var(--gold); }

/* Ra figure — section 02 " Rechtvaardigheid " */
.ra-figure {
  margin: 2.5rem auto;
  max-width: 560px;              /* 1/3 bigger (420 × 1.33) */
  text-align: center;            /* center caption */
  /* make the figure transparent so the page background shows through */
  isolation: isolate;          /* contain blend scope */
}
.ra-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;               /* center image within figure */
  border: none;                  /* no border */
  /* "transparent + yellow lines": screen-blend drops darks, keeps bright lines */
  mix-blend-mode: screen;
  filter:
    grayscale(1)
    sepia(1)
    hue-rotate(5deg)
    saturate(6)
    drop-shadow(0 0 1px var(--gold));
  opacity: 0.92;
  background: transparent;
}
.ra-figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
  text-align: center;
}

/* Justitia figure — portrait proportions, redactioneel symbool */
.justitia-figure {
  margin: 0 auto 2rem;
  max-width: 320px;
  text-align: center;
  isolation: isolate;
}
.justitia-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  mix-blend-mode: screen;
  filter:
    grayscale(1)
    brightness(1.4)
    contrast(1.1)
    drop-shadow(0 0 1px var(--paper));
  opacity: 0.95;
  background: transparent;
}
.justitia-figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 0.6rem;
  text-align: center;
}
.section--center .justitia-figure { margin-left: auto; margin-right: auto; }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  border: none !important;
}

.brand .brand-title {
  font-family: var(--wide);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--paper);
  text-transform: uppercase;
}

.brand .brand-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 0.25rem 0;
  border: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

@media (max-width: 720px) {
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .main-nav { margin-left: 0; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

/* Bollejos-style hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(224, 36, 36, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(181, 29, 29, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  z-index: 0;
}

/* Bollejos-style scanline overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Route scroll indicator (Bollejos-style) */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--paper-dim);
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
}

/* ============================================================
   Bollejos-style scroll-driven intro
   (groot &rarr; klein / fade-up)
   ============================================================ */

@keyframes heroScaleDown {
  from {
    transform: scale(5.5) translateY(-14vh);
    opacity: 0;
    filter: blur(18px);
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes heroRise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero .hero-kicker,
.hero .slogan,
.hero .pill,
.hero .caption,
.hero h1 {
  opacity: 0;
  will-change: transform, opacity;
}

.hero h1            { animation: heroRise 0.9s cubic-bezier(.2,.8,.2,1) 0.05s forwards; }
.hero .hero-kicker { animation: heroRise 0.9s cubic-bezier(.2,.8,.2,1) 0.9s forwards; }
.hero .hero-ams span {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: heroScaleDown 1.6s cubic-bezier(.16,.9,.24,1) forwards;
}
.hero .hero-ams span:nth-child(1) { animation-delay: 0s; }
.hero .hero-ams span:nth-child(2) { animation-delay: 0.18s; }
.hero .hero-ams span:nth-child(3) { animation-delay: 0.36s; }
.hero .hero-ams span:nth-child(4) { animation-delay: 0.54s; }
.hero .hero-ams span:nth-child(5) { animation-delay: 0.72s; }
.hero .hero-ams span:nth-child(6) { animation-delay: 0.9s; }
.hero .hero-ams span:nth-child(7) { animation-delay: 1.08s; }
.hero .hero-ams span:nth-child(8) { animation-delay: 1.26s; }
.hero .hero-ams span:nth-child(9) { animation-delay: 1.44s; }
.hero .slogan       { animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 1.55s forwards; }
.hero .pill         { animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 1.8s forwards; }
.hero .caption      { animation: heroRise 0.85s cubic-bezier(.2,.8,.2,1) 2.05s forwards; }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-kicker,
  .hero .hero-ams span,
  .hero .slogan,
  .hero .pill,
  .hero .caption,
  .hero h1 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--wide);
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.04;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
  max-width: 20ch;
  margin-inline: auto;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.32em;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  display: block;
  margin-top: 1rem;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  margin-top: auto;
  margin-bottom: 4rem;
}

.hero .slogan {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin-inline: auto;
}

/* h9 — non-semantic element (not a real heading) used for the disclaimer pill */
h9 { margin: 0; font-weight: inherit; font-size: inherit; }

/* Blinking disclaimer pill */
.pill-blink {
  animation: pillBlink 1s steps(2, start) infinite;
}
@keyframes pillBlink {
  50% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .pill-blink { animation: none; }
}

.hero .caption {
  max-width: 46ch;
  margin-top: 3rem;
  margin-inline: auto;
  color: var(--paper-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .caption .cap-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0 0 0.25rem;
}

.hero .caption p { margin: 0; font-size: 0.95rem; }

/* Hero image + trust signals */

.hero-figure {
  margin: 2.5rem auto 0;
  max-width: 540px;              /* 1/2 wider (360 × 1.5) */
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--gold);
  filter: saturate(0.84) contrast(1.04);
}

.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.6rem;
}

.trust-signals {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.4rem;
  padding: 0;
  margin: 2rem auto 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.trust-signals li { position: relative; padding-left: 1rem; }

.trust-signals li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

/* Centered section — section 02 "Rechtvaardigheid" */
.section--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section--center .section-kicker,
.section--center .section h2,
.section--center h2,
.section--center .lead,
.section--center .ra-figure,
.section--center .justitia-figure,
.section--center .hero-figure,
.section--center .prose,
.section--center .trust-signals { margin-left: auto; margin-right: auto; }
.section--center .lead,
.section--center .prose { text-align: center; max-width: 60ch; }

.section-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.4rem;
  max-width: 26ch;
}

.section h2 .tight { text-transform: uppercase; }

.section .lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.55;
  color: var(--paper);
  max-width: 40ch;
}

.section .lead em { color: var(--gold); font-style: italic; }

.prose { max-width: 68ch; color: var(--paper-dim); }
.prose p { margin: 0 0 1.2rem; }

/* Long-form chapter (redactionele analyse binnen een sectie) */
.chapter {
  max-width: 68ch;
  margin: 4rem 0 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
}

.chapter .section-kicker {
  margin-bottom: 1.4rem;
}

.chapter-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 2.6rem 0 1.4rem;
  max-width: 30ch;
}

.chapter-title:first-of-type,
.chapter .chapter-title:first-of-type { margin-top: 0; }

.section--center .chapter,
.section--center .chapter-title { margin-left: auto; margin-right: auto; }
.section--center .chapter .prose { margin-left: auto; margin-right: auto; max-width: 60ch; }

.chapter .lead { max-width: 60ch; margin-bottom: 2.4rem; }

.chapter .prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}

.chapter .prose ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 2rem;
  color: var(--paper-dim);
  line-height: 1.6;
}

.chapter .prose ul li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.2em;
  line-height: 1;
}

.chapter .prose strong { color: var(--paper); }
.chapter .prose em { color: var(--paper); font-style: italic; }
.chapter .prose em strong,
.chapter .prose strong em { color: var(--gold); }

.chapter .chip { margin-top: 1rem; }
.chapter .chip + .chip { margin-left: 0.5rem; }

/* Dictionary entry definition */
.dict-entry {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}

.dict-entry h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 0.2rem;
}

.dict-entry .pos {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.dict-entry p { max-width: 58ch; margin: 0; color: var(--paper-dim); }

/* Museum exhibit card */
.exhibit {
  border: 1px solid var(--rule);
  background: var(--ink-2);
  padding: 1.8rem;
  margin: 0 0 2rem;
}

.exhibit blockquote {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}

.exhibit .attribution {
  color: var(--paper-faint);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 1.4rem;
}

.exhibit dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.exhibit dt { color: var(--gold); }
.exhibit dd { margin: 0; color: var(--paper-dim); }

/* Dossier card */
.dossier {
  border: 1px solid var(--rule);
  padding: 1.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--ink-2);
  margin: 0 0 1.6rem;
}

.dossier .dossier-head {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.dossier .rule { border: none; border-top: 1px solid var(--rule); margin: 0.8rem 0; }

.dossier dl {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0.3rem 1rem;
  margin: 0;
}

.dossier dt { color: var(--paper-faint); }
.dossier dd { margin: 0; color: var(--paper); }

.dossier .open {
  display: inline-block;
  margin-top: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Classification chips */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--rule);
  margin-right: 0.4rem;
  color: var(--paper-dim);
}

.chip.fact     { border-color: var(--gold);   color: var(--gold); }
.chip.satire   { border-color: #7a6bb8;        color: #a99ad9; }
.chip.alleged  { border-color: #b85c5c;        color: #d98b8b; }
.chip.analysis { border-color: #4f7a8a;        color: #82aec0; }

/* Transparency meter */
.meter {
  border: 1px solid var(--rule);
  background: var(--ink-2);
  padding: 1.8rem;
  margin: 0 0 2rem;
}

.meter ol {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.meter ol li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: var(--paper-dim);
}

.meter ol li::before {
  content: "\25CF";  /* ● */
  color: var(--gold);
  flex: 0 0 auto;
}

.meter ol li.pending { color: var(--paper-faint); }
.meter ol li.pending::before { color: var(--paper-faint); }

.meter .days {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold);
  margin: 0.4rem 0 0;
}

/* Derived meter-status badge (Bollejos-style evidence state) */
.meter-status {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 0 0 1rem;
}
.meter-status-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.meter-status-value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--paper);
}
.meter-status.pending     { border-color: var(--rule); }
.meter-status.in-term     { border-color: var(--gold); }
.meter-status.in-term .meter-status-value     { color: var(--gold); }
.meter-status.overdue    { border-color: var(--gold); }
.meter-status.overdue .meter-status-value    { color: var(--gold); font-weight: 700; }

/* Footer */
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  color: var(--paper-dim);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.site-footer p, .site-footer a { font-size: 0.9rem; }
.site-footer a { color: var(--paper); }
.site-footer .small { font-family: var(--mono); font-size: 0.7rem; color: var(--paper-faint); letter-spacing: 0.08em; }

/* Footer — "DIT IS GEEN …" official-site callout */
.not-official-callout .callout-banner {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);          /* full text yellow */
  border: 1px solid var(--paper-faint);
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.9rem;
  background: rgba(0,0,0,0.25);
  line-height: 1.5;
}
.not-official-callout .callout-banner a,
.not-official-callout .callout-banner a.ai-no-underline {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 0;
  border-bottom: none;
}
.not-official-callout .callout-banner a:hover,
.not-official-callout .callout-banner a.ai-no-underline:hover,
.not-official-callout .callout-banner a:focus {
  color: var(--gold);
  text-decoration: none;
  border-bottom: none;
}

/* Footer — colofon small lines */
.site-footer .small .ra-dot.bold,
.site-footer .small .ra-line { font-weight: 700; }
.site-footer .small a.xcom-link { color: var(--gold); }
.site-footer .small .xcom-credit {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* 404 */
.e404 { text-align: left; }
.e404 h2 { font-size: clamp(3rem, 10vw, 7rem); margin-bottom: 0.5rem; }

/* Utility */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.ra-dot { color: var(--gold); }
