/* Page-specific layout */

/* ---------- HERO ---------- */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}
.hero-head .kicker {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-date {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 10px 0 44px;
  text-wrap: balance;
  padding-bottom: 4px;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-lede {
  max-width: 620px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Hero: featured split */
.hero-feature {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.hero-feature .ph { aspect-ratio: 4/3; }
.feature-text .post-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.feature-text .post-dek { font-size: 16px; margin-bottom: 20px; }

/* Live status strip */
.status-strip {
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  overflow: hidden;
}
.status-strip .tick { color: color-mix(in oklab, var(--accent) 85%, white); }
.status-strip .sep { color: color-mix(in oklab, var(--bg) 40%, transparent); }
.status-strip .marquee {
  display: inline-flex; gap: 40px; white-space: nowrap;
  animation: mq 60s linear infinite;
}
.marquee-wrap { overflow: hidden; flex: 1; }
@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.0;
  margin: 0;
}
.section-head .see-all {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.section-head .see-all:hover { color: var(--accent); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero-feature { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Category rail ---------- */
.cat-rail {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 20px 0;
}
.cat-pill {
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--surface);
  transition: all .15s ease;
}
.cat-pill .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.cat-pill .swatch {
  width: 10px; height: 10px; border-radius: 2px;
  background: oklch(0.68 0.16 var(--h, 20));
}
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.cat-pill.active .count { color: color-mix(in oklab, var(--bg) 70%, transparent); }

/* ---------- Archive table (news list) ---------- */
.index-table {
  border-top: 1px solid var(--rule);
}
.index-row {
  display: grid;
  grid-template-columns: 84px 1fr 140px 120px 80px;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .15s ease;
  position: relative;
}
.index-row:hover { background: var(--bg-2); }
.index-row .idx {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.index-row .ttl {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08; letter-spacing: -0.01em;
}
.index-row .cat, .index-row .date, .index-row .rt {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.index-row .cat { color: var(--ink-2); }
.index-row .arrow {
  position: absolute; right: 0; top: 50%;
  transform: translate(-12px, -50%);
  opacity: 0;
  transition: transform .25s, opacity .2s;
  color: var(--accent);
}
.index-row:hover .arrow { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 860px) {
  .index-row { grid-template-columns: 40px 1fr; }
  .index-row .date, .index-row .rt { display: none; }
  .index-row .cat { grid-column: 2; margin-top: 8px; }
}

/* ---------- Article (reading view) ---------- */
.article-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 50;
  background: transparent;
}
.article-progress .bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform .1s linear;
}
.article-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  text-wrap: balance;
  max-width: 28ch;
}
:root[data-variant="grid"] .article-title { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; }
.article-lede {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-2);
  font-size: 22px; line-height: 1.4;
  max-width: 30ch;
}
:root[data-variant="grid"] .article-lede { font-family: var(--sans); font-style: normal; }

.article-body {
  padding: 48px 0 80px;
  font-size: var(--article-fs, 18px);
  line-height: var(--article-lh, 1.65);
  font-family: var(--article-ff, "Instrument Serif", Georgia, serif);
  color: var(--ink);
}
.article-body.ff-sans { font-family: var(--sans); font-size: 17px; line-height: 1.6; }
.article-body.ff-mono { font-family: var(--mono); font-size: 15px; line-height: 1.7; }
.article-body p { margin: 0 0 1.15em; }
.article-body p.lede {
  font-size: 1.2em;
  color: var(--ink-2);
  margin-bottom: 1.4em;
}
.article-body p.lede::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  padding: 0.06em 0.08em 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.7em; letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 2em 0 0.7em;
}
:root[data-variant="grid"] .article-body h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.article-body .pull {
  font-family: var(--serif); font-style: italic;
  font-size: 1.9em; line-height: 1.15;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8em 0;
  margin: 1.6em 0;
  color: var(--ink);
  text-wrap: balance;
}
:root[data-variant="grid"] .article-body .pull { font-family: var(--sans); font-style: normal; font-weight: 500; }

/* Reader toolbar */
.reader-toolbar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 8px 6px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-1);
}
.reader-toolbar button {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: all .15s;
  font-family: var(--mono); font-size: 12px;
}
.reader-toolbar button:hover { background: var(--bg-2); color: var(--ink); }
.reader-toolbar button.active { background: var(--ink); color: var(--bg); }
.reader-toolbar .divider { height: 1px; background: var(--rule); margin: 4px 8px; }
@media (max-width: 860px) { .reader-toolbar { display: none; } }

/* Article sidebar */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 60px;
}
.article-aside {
  position: sticky; top: 92px;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.article-aside h4 {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}
.toc a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
}
.toc a:hover { color: var(--accent); }
@media (max-width: 1020px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { display: none; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: grid; place-items: start center;
  padding-top: 12vh;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-panel {
  width: min(720px, 92vw);
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform .25s ease;
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-input-wrap {
  display: flex; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--muted); margin-right: 14px; }
.search-input {
  flex: 1;
  border: 0; background: transparent;
  color: var(--ink);
  font-size: 22px; font-family: var(--serif); font-weight: 400;
  outline: none;
}
:root[data-variant="grid"] .search-input { font-family: var(--sans); }
.search-input::placeholder { color: var(--muted); }
.search-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
}
.search-results {
  max-height: min(520px, 60vh);
  overflow: auto;
}
.search-section-title {
  padding: 14px 22px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 22px;
  align-items: baseline;
  cursor: pointer;
  transition: background .1s;
}
.search-item:hover, .search-item.focused { background: var(--bg-2); }
.search-item .t { font-family: var(--serif); font-size: 18px; line-height: 1.15; color: var(--ink); }
:root[data-variant="grid"] .search-item .t { font-family: var(--sans); font-weight: 500; letter-spacing: -0.015em; }
.search-item .c {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.search-empty { padding: 28px 22px; color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* ---------- Tweaks panel (bottom right) ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 120;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
}
.tweaks-panel[hidden] { display: none; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-head h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0; font-weight: 500;
}
.tweaks-body { padding: 14px 16px; display: grid; gap: 14px; }
.tweaks-label {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.tweaks-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tweak-btn {
  padding: 9px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  background: var(--bg);
  transition: all .12s ease;
}
.tweak-btn:hover { border-color: var(--ink); color: var(--ink); }
.tweak-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--rule-2);
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--ink); }

/* ---------- Newsletter strip ---------- */
.newsletter {
  margin-top: 80px;
  padding: 60px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
}
.newsletter-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}
.newsletter h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
:root[data-variant="grid"] .newsletter h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; }
.newsletter p {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  margin: 14px 0 0;
  font-size: 15px;
}
.newsletter-form {
  display: flex;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
}
.newsletter-form input {
  flex: 1;
  background: transparent; border: 0; outline: none;
  font-family: var(--sans); font-size: 14px;
  color: var(--bg);
}
.newsletter-form input::placeholder { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.newsletter-form button {
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.newsletter-meta {
  margin-top: 20px;
  display: flex; gap: 22px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.newsletter-meta strong { color: var(--bg); font-weight: 500; }
@media (max-width: 860px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- About / Contact ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: grid; gap: 14px; }
.team-card .avatar {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 50%),
    repeating-linear-gradient(-45deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 8px),
    var(--bg-2);
}
.team-card .name {
  font-family: var(--serif); font-size: 24px; letter-spacing: -0.005em;
}
:root[data-variant="grid"] .team-card .name { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.team-card .role {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.team-card .bio { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.contact-form {
  display: grid; gap: 18px;
}
.contact-form label {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 140px; font-family: var(--sans); }

/* ---------- Specs box (inline in articles) ---------- */
.specs {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 22px 24px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  display: grid; gap: 8px;
}
.specs h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 6px; font-weight: 500;
}
.specs .row {
  display: grid; grid-template-columns: 150px 1fr; gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule);
}
.specs .row:last-child { border: 0; }
.specs .label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }

/* ---------- Quickstats / system monitor (homepage surprise) ---------- */
.sysmon {
  margin: 36px 0 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  overflow: hidden;
}
.sysmon > * {
  padding: 18px 22px;
  border-right: 1px solid var(--rule);
}
.sysmon > *:last-child { border-right: 0; }
.sysmon .sm-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.sysmon .sm-value {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
:root[data-variant="grid"] .sysmon .sm-value { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.sysmon .sm-note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.sysmon .sparkline { margin-top: 10px; display: block; }

@media (max-width: 860px) {
  .sysmon { grid-template-columns: 1fr 1fr; }
  .sysmon > * { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Variant: GRID — table-first layouts ---------- */
:root[data-variant="grid"] .hero {
  background:
    linear-gradient(0deg, color-mix(in oklab, var(--ink) 3%, transparent), transparent 40%),
    repeating-linear-gradient(90deg,
      var(--rule) 0 1px,
      transparent 1px calc((100% - 2px)/12));
}
:root[data-variant="grid"] .post-card .ph {
  border-radius: 0;
}

/* ---------- Variant: STUDIO — generous everywhere ---------- */
:root[data-variant="studio"] .hero-title { font-size: clamp(54px, 9vw, 140px); }
:root[data-variant="studio"] .section-head { padding-top: 80px; }

/* ---------- Utility ---------- */
.mono { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.hidden { display: none !important; }

/* ---------- Animations on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Hero big-type variant (for variant=studio) ---------- */
.hero-number {
  position: absolute;
  right: var(--gutter);
  top: 50%; transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 320px);
  color: color-mix(in oklab, var(--ink) 5%, transparent);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

:root[data-variant="paper"] .hero-number,
:root[data-variant="grid"] .hero-number { display: none; }

/* ---------- PHP-port additions ---------- */

/* Tweaks FAB (opens the panel) */
.tweaks-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--rule-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.tweaks-toggle:hover { transform: translateY(-2px); }

/* Theme icon swap (light shows moon, dark shows sun) */
:root[data-theme="light"] .icon-sun  { display: none; }
:root[data-theme="dark"]  .icon-moon { display: none; }
.icon-sun, .icon-moon { width: 18px; height: 18px; }

/* PHP <a> post-cards — kill default underline/colour */
a.post-card { color: inherit; text-decoration: none; }
a.index-row { color: inherit; text-decoration: none; }
a.cat-pill  { color: inherit; text-decoration: none; }

/* Archive: make sorted buttons clickable without color-shift */
[data-archive-sort] .chip { cursor: pointer; }

/* Real hero images fit the same slot as .ph placeholders */
.post-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--rule-2);
}
.post-card .post-hero-img { margin-bottom: 16px; }

/* Author portrait (when a real image exists) */
.author-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

/* Smooth scroll + offset zodat anchor-target niet onder de nav verdwijnt */
html { scroll-behavior: smooth; }
.article-body h2 { scroll-margin-top: 90px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: 720px;
  width: calc(100% - 32px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  padding: 18px 20px;
  z-index: 60;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: none;
}
.cookie-banner-actions .btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
}

/* Footer: vierde kolom ruimte voor 'Juridisch' */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mobile hamburger menu ---------- */
.nav-burger { display: none; }
.icon-menu, .icon-close-burger { width: 22px; height: 22px; }
.nav-burger .icon-close-burger { display: none; }
.nav-burger[aria-expanded="true"] .icon-menu { display: none; }
.nav-burger[aria-expanded="true"] .icon-close-burger { display: block; }

@media (max-width: 860px) {
  .nav-burger { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--rule) inset, 0 20px 40px rgba(0,0,0,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 40px;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 45;
    display: flex !important;
    overflow-y: auto;
  }
  .nav-links[data-open="true"] { transform: translateX(0); }
  .nav-link {
    padding: 18px 24px;
    font-size: 18px;
    font-family: var(--serif);
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--rule);
    width: 100%;
    background: var(--bg);
    color: var(--ink);
  }
  .nav-link:hover, .nav-link[aria-current="page"] {
    background: var(--bg-2);
    color: var(--accent);
  }
  body[data-nav-open="true"] { overflow: hidden; }
  body[data-nav-open="true"] .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}
