/* =========================================================================
   De Lage Landen Nieuws — "Delft Blue & Porcelain"
   ========================================================================= */

:root {
  --porcelain: #F2F5FA;
  --white: #FFFFFF;
  --border: #DCE4F0;
  --ink: #10224A;
  --slate: #4F5D78;
  --delft: #1F4FA3;
  --delft-deep: #16346F;
  --delft-deeper: #0E2250;
  --gold: #C9A24B;
  --gold-soft: #E3CB92;

  --font-logo: "Anton", "Arial Narrow", sans-serif;
  --font-head: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-soft: 0 10px 30px -12px rgba(22, 52, 111, 0.22), 0 2px 8px -2px rgba(22, 52, 111, 0.12);
  --shadow-lift: 0 18px 44px -16px rgba(22, 52, 111, 0.32), 0 4px 14px -4px rgba(22, 52, 111, 0.18);
  --radius-lg: 20px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.scroll-locked {
  overflow: hidden;
}

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

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

button { font-family: inherit; }

::selection { background: var(--delft); color: var(--white); }

/* ============================= HERO / MASTHEAD ========================= */

.hero {
  position: relative;
  background: linear-gradient(165deg, var(--delft-deep) 0%, var(--delft-deeper) 100%);
  padding: 48px 24px 80px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.9) 18px 19px, transparent 19px 38px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.9) 18px 19px, transparent 19px 38px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.masthead {
  display: flex;
  justify-content: flex-start;
}

.logo-plaque {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 26px 24px;
  box-shadow: var(--shadow-lift);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transform: rotate(-0.6deg);
}

.logo-rule {
  position: absolute;
  height: 3px;
  border-radius: 2px;
}
.logo-rule--gold {
  top: 10px;
  left: 26px;
  width: 64px;
  background: var(--gold);
  transform: skewX(-18deg);
}
.logo-rule--teal {
  bottom: 12px;
  right: 30px;
  width: 54px;
  background: var(--delft-deep);
  transform: skewX(-18deg);
}

.logo-line {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logo-word {
  font-family: var(--font-logo);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 0.9;
  transform: skewX(-8deg);
  display: inline-block;
}

.logo-line-1 .logo-word { font-size: clamp(30px, 8vw, 40px); }
.logo-line-2 .logo-word { font-size: clamp(38px, 10.5vw, 52px); }
.logo-line-3 .logo-word { font-size: clamp(30px, 8vw, 40px); }

.logo-word--plain {
  color: var(--ink);
  transform: skewX(-8deg) scaleY(1.04);
}

.logo-word--gold {
  color: var(--ink);
  background: linear-gradient(135deg, #DCB65E 0%, var(--gold) 55%, #B98C38 100%);
  padding: 4px 14px 6px;
  border-radius: 4px;
  box-shadow: 0 4px 10px -3px rgba(169, 125, 32, 0.55);
}

.logo-word--teal {
  color: var(--white);
  background: linear-gradient(135deg, #1C4A86 0%, var(--delft-deep) 55%, #0E2250 100%);
  padding: 4px 16px 6px;
  border-radius: 4px;
  box-shadow: 0 4px 10px -3px rgba(14, 34, 80, 0.55);
}

.logo-line-3 { position: relative; }

.logo-slashes {
  display: inline-flex;
  gap: 4px;
  margin-left: 2px;
  align-self: stretch;
}
.slash {
  width: 7px;
  border-radius: 2px;
  transform: skewX(-18deg);
}
.slash--teal { background: var(--delft-deep); }
.slash--gold { background: var(--gold); }

.hero-tagline {
  margin: 22px 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  display: block;
}
.hero-wave path { fill: var(--porcelain); }

/* ============================= SHARED SECTION HEAD ====================== */

#feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 0 8px;
}

.section {
  padding: 56px 20px 8px;
}

.section-head {
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-head.is-visible { opacity: 1; transform: translateY(0); }

.ornament {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ornament span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.ornament i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 38px);
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.section-desc {
  margin: 0;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 400;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--delft);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.read-link-arrow { transition: transform 0.2s ease; }
article:hover .read-link,
article:focus-visible .read-link { gap: 9px; color: var(--delft-deep); }

/* reveal-on-scroll (shared) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================== POLITIEK STACK ============================= */

.pol-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 100%;
}

.pol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pol-card:active { transform: scale(0.98); }

.pol-card--inset-left { margin-left: 12px; }
.pol-card--inset-right { margin-right: 12px; }

.pol-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--porcelain);
}
.pol-card--lead .pol-card-media { aspect-ratio: 4 / 5; }
.pol-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.pol-card-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  margin: 0;
}

.pol-card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.pol-card--lead .pol-card-body { padding: 24px 24px 26px; }

.pol-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 10px;
}
.pol-card--lead .pol-card-title { font-size: 27px; margin-bottom: 13px; }

.pol-card-preview {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  flex: 1;
}
.pol-card--lead .pol-card-preview { font-size: 15px; line-height: 1.6; }

/* =========================== ECONOMIE MASONRY ========================== */

.eco-masonry {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.eco-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eco-col--right { margin-top: 40px; }

.eco-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.eco-card:active { transform: translateY(-1px) scale(0.985); }

.eco-card-media { overflow: hidden; background: var(--porcelain); }
.eco-card-media img { width: 100%; height: 100%; object-fit: cover; }

.eco-card-media--portrait { aspect-ratio: 4 / 5; }
.eco-card-media--landscape { aspect-ratio: 16 / 10; }
.eco-card-media--square { aspect-ratio: 1 / 1; }

.eco-card-body { padding: 13px 14px 15px; }

.eco-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.24;
  color: var(--ink);
  margin: 0 0 8px;
}

.eco-card-preview {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-card .read-link { font-size: 12.5px; margin-top: 8px; }

@media (max-width: 360px) {
  .eco-masonry { gap: 8px; }
  .eco-col { gap: 10px; }
  .eco-card-body { padding: 10px 10px 12px; }
}

/* =========================== FINANCIEN TIMELINE ========================= */

.fin-timeline {
  position: relative;
  padding-left: 26px;
}
.fin-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--delft) 0%, var(--delft-deep) 100%);
  opacity: 0.35;
}

.fin-entry {
  position: relative;
  margin-bottom: 36px;
  cursor: pointer;
}
.fin-entry:last-child { margin-bottom: 0; }

.fin-dot {
  position: absolute;
  left: -26px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--porcelain);
  box-shadow: 0 0 0 2px var(--gold);
}

.fin-media {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--ink);
}
.fin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.7s ease;
}
.fin-entry.in-view .fin-media img,
.fin-entry:hover .fin-media img,
.fin-entry:focus-visible .fin-media img,
.fin-entry.is-pressed .fin-media img {
  filter: grayscale(0);
}

.fin-body { padding: 16px 2px 0; }

.fin-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.26;
  color: var(--ink);
  margin: 0 0 8px;
}

.fin-preview {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================ FOOTER ================================ */

.footer {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 44px 24px 56px;
  text-align: center;
}
.footer .ornament { justify-content: center; margin-bottom: 18px; }
.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px;
}
.footer-contact {
  font-size: 12.5px;
  color: var(--slate);
  margin: 0;
  letter-spacing: 0.2px;
}

/* ================================ OVERLAY ================================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--porcelain);
  display: flex;
  flex-direction: column;
}
.overlay[hidden] { display: none; }

.overlay-scroll {
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

.overlay-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 34, 74, 0.72);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.2s ease;
}
.overlay-close:hover { background: var(--delft-deep); transform: scale(1.05); }
.overlay-close:active { transform: scale(0.94); }

.overlay-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.overlay-media img { width: 100%; height: 100%; object-fit: cover; }

.overlay-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.overlay-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--delft);
  margin-bottom: 12px;
}

.overlay-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 22px;
}

.overlay-text p {
  font-size: 17px;
  line-height: 1.85;
  color: #243457;
  margin: 0 0 20px;
}
.overlay-text p:last-child { margin-bottom: 0; }

/* =============================== MOTION-SAFE ============================= */

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-head, .pol-card, .eco-card, .fin-media img, .overlay-close, .read-link, .read-link-arrow {
    transition: none !important;
  }
}
