/* style.css: tokens.css followed by components/bundle.css, a drop-in replacement for the site's shared stylesheet. Edit tokens.json and regenerate rather than editing values here. */

/* Pieter Verschueren, generated from tokens.json */
:root, [data-theme="dark"] {
  --bg: #0a0a0a; /* Page background. Also the footer, the TOC box fill and the open FAQ answer. */
  --bg2: #121212; /* One step raised on bg: the TL;DR block, the FAQ question row, the active TOC item. Hover fill of a tab-bar tab. */
  --bg3: #1a1a1a; /* Hover fills (hamburger, TOC links, FAQ question), inline code background, the reading-progress track. */
  --border: rgba(255,255,255,0.07); /* Hairlines on bg: footer top rule, the rule between footer rows, the footer badge outline. */
  --white: #ffffff; /* Pure white. Reaches the page only through on-accent; nothing else is set in it. */
  --muted: rgba(255,255,255,0.55); /* Footer links, the footer paragraph and the footer badge text, on bg (6.3:1). Hover goes to h-text. */
  --subtle: rgba(255,255,255,0.38); /* Footer column headings (small uppercase labels) and the copyright line, on bg; the 1px divider in the sub-nav. 3.5:1, under the 4.5:1 text floor on purpose: structural labels only, never anything a reader must not miss. */
  --accent: #502ee4; /* The violet. Fills only: the CTA button, the post tag, list bullets, the blockquote rule, the footer badge dot, the progress fill, the 2px active line under a tab-bar tab. Put on-accent on it (7.4:1). On bg it reads at 2.7:1, so it is never text; use accent-text for that, and know the progress fill and bullets sit under 3:1 against the page. */
  --accent-text: #9b85ff; /* The violet as text: the blockquote cite, or a link that must read as violet. 6.8:1 on bg, 6.0:1 on bg3. Derived from accent for legibility; not a fill. */
  --on-accent: var(--white); /* Text and icons on an accent fill: the CTA label and arrow, the post tag text. An alias of white. */
  --h-bg: #0a0a0a; /* Header background behind the nav glass. Not used by the nav rules directly; present in the stylesheet. */
  --h-border: rgba(255,255,255,0.07); /* The nav bottom rule, the post hero rule, the content column rails, the TL;DR, TOC and FAQ borders, TL;DR row dividers and the mobile menu's link dividers. Also the page frame: the rails, section rules, hairline grids, the logo wall and the tab bar, solid where there is content and dashed across the gaps. */
  --h-text: #f5f5f5; /* Primary ink: the logo, headings, the post title and its left rule, strong, links in prose, FAQ questions, TL;DR left rule, the hamburger bars. 18.2:1 on bg, 16:1 on bg3. */
  --h-muted: rgba(255,255,255,0.5); /* Nav links, the back link, the post summary, post meta, the TL;DR and TOC labels, TOC links, the FAQ chevron, the meta dot. 5.3:1 on bg, 5.2:1 on bg3. Hover and active go to h-text. */
  --text: rgba(255,255,255,0.7); /* Prose ink: post body paragraphs and list items, TL;DR items. 9.7:1 on bg, 9.0:1 on bg3. */
  --text-soft: rgba(255,255,255,0.65); /* FAQ answer paragraphs on bg (8.5:1). */
  --nav-glass: rgba(10,10,10,0.92); /* The fixed nav's background over scrolling content, with a 14px backdrop blur. */
  --nav-glass-solid: rgba(10,10,10,0.98); /* The open mobile menu panel, same blur. */
  --overlay: rgba(10,10,10,0.8); /* The backdrop behind the quote overlay and the video popup, with a 14px blur, like the nav glass. */
  --highlight: rgba(80,46,228,0.35); /* The violet wash: inline text highlight behind prose ink (.highlight, text stays 7.8:1 on it) and the kind label on a logo cell (h-text on it, 15:1). */
  --stripe: rgba(255,255,255,0.055); /* The 1px diagonal hatch of the section divider above every h2 after the first. */
  --shadow-cta: 0 1px 3px rgba(80,46,228,0.3), inset 0 1px 0 rgba(255,255,255,0.2); /* The nav CTA at rest: a faint violet glow and a 1px inner highlight. */
  --shadow-cta-hover: 0 4px 12px rgba(80,46,228,0.45); /* The nav CTA on hover, together with translateY(-1px). */
  --shadow-menu: 0 8px 24px rgba(0,0,0,0.5); /* The open mobile menu panel; deeper than the original's 0.07 so it still reads on a dark page. */
}
:root {
  --space-4: 4px; /* Hamburger padding; the meta dot; stacked footer-bottom gap on small screens. */
  --space-5: 5px; /* Hamburger bar gap; list item spacing; vertical padding of the tag, badge and TOC links. */
  --space-6: 6px; /* Icon-to-label gap in the CTA, back link, tag and meta items; progress label gap; the badge dot. */
  --space-8: 8px; /* CTA vertical padding; label icon gaps; badge gap; FAQ item spacing; TOC link right padding; mobile menu top padding. */
  --space-10: 10px; /* Footer link spacing; h3 bottom margin; TOC label bottom padding and link left padding; cite top margin. */
  --space-12: 12px; /* Tag row gap; tag and badge horizontal padding; footer brand name margin; TL;DR item vertical padding; TOC label margin; mobile CTA top margin. */
  --space-14: 14px; /* h2 bottom margin; TOC box bottom padding; TOC progress top margin. */
  --space-16: 16px; /* TL;DR item gap; FAQ question vertical padding and gap; mobile menu bottom padding; small-screen gutter. */
  --space-18: 18px; /* Prose paragraph margin; post title left padding; TL;DR label margin; TOC box padding; footer heading margin; FAQ answer top padding. */
  --space-20: 20px; /* CTA horizontal padding; FAQ padding; blockquote indent; post meta gap; tag row margin; footer paragraph margin. */
  --space-22: 22px; /* TL;DR block top padding; ordered list indent; list item indent. */
  --space-24: 24px; /* Tablet gutter; TL;DR block padding; post title margin; footer-bottom padding; the mobile menu's horizontal padding. */
  --space-28: 28px; /* Nav link gap; back link margin; blockquote vertical margin; FAQ heading margin; divider bottom margin; small-screen footer gap. */
  --space-32: 32px; /* Hamburger button size; h3 top margin; summary margin; content column left padding; the divider's height. */
  --space-40: 40px; /* Desktop gutter; tablet footer gap. */
  --space-48: 48px; /* Content column right padding; FAQ section and divider top margin; small-screen hero and footer padding. */
  --space-52: 52px; /* TL;DR block bottom margin. */
  --space-56: 56px; /* Nav height and the page's top offset; content column and TOC top padding; footer-top bottom padding. */
  --space-60: 60px; /* Footer column gap. */
  --space-64: 64px; /* Footer top padding. */
  --space-72: 72px; /* Post hero vertical padding. */
  --space-80: 80px; /* Post hero column gap; the sticky TOC's top offset (nav height plus 24). */
  --space-96: 96px; /* Content column and TOC bottom padding. */
  --space-120: 120px; /* The gap between page sections (.rail-gap), where the rails run dashed. */
  --space-160: 160px; /* The wider section gap (.rail-gap--wide) before a section that opens with a headline. */
  --radius-1: 1px; /* The three hamburger bars. */
  --radius-2: 2px; /* The reading-progress track and fill. */
  --radius-3: 3px; /* Inline code and the text highlight. */
  --radius-4: 4px; /* The post tag, the hamburger button, the right corners of TOC links. */
  --radius-6: 6px; /* The TL;DR block (right corners only), the TOC box, FAQ items. */
  --radius-8: 8px; /* The nav CTA button. */
  --radius-20: 20px; /* The footer badge and the pill tabs: at 38px tall or less, 20px reads as a full pill. */
  --radius-full: 50%; /* Dots: the badge dot, the meta dot, list bullets. */
  --max: 1200px; /* Content max width: .wrap, .nav-inner, the post hero and the post layout. */
  --nav-height: 56px; /* The fixed nav; pages offset their first block by it. */
  --hero-aside: 380px; /* The post hero's right column (hidden under 960px). */
  --illustration: 280px; /* The square illustration slot in the post hero. */
  --toc-width: 260px; /* The TOC sidebar column (hidden under 960px). */
  --summary-max: 560px; /* Max width of the post summary. */
  --footer-brand-max: 280px; /* Max width of the footer paragraph. */
  --bp-tablet: 960px; /* Gutter 24px; footer to two columns; post hero and post layout to one column, TOC and hero aside hidden. */
  --bp-mobile: 768px; /* Nav links fold into the hamburger menu; CTA goes full width. */
  --bp-small: 480px; /* Gutter 16px; footer to one column; footer-bottom stacks; meta dots hidden; titles step down. */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Courier New', monospace;
  --text-post-title: 500 2.6rem/1.1 var(--font-sans); /* The post hero title, in h-text, with a 3px h-text rule on its left and 18px of padding. 1.9rem under 960px, 1.65rem under 480px. */
  --text-logo: 600 1.2rem/1.4 var(--font-sans); /* The nav wordmark, in h-text. There is no logo file: the name is set in type. */
  --text-h2: 600 1.45rem/1.4 var(--font-sans); /* Section headings in a post body and the FAQ heading, in h-text; 14px below. Every h2 after the first carries the hatched divider above it. 1.25rem under 480px. */
  --text-h3: 700 1.05rem/1.4 var(--font-sans); /* Sub-headings in a post body, in h-text; 32px above, 10px below. */
  --text-body: 400 15px/1.6 var(--font-sans); /* The document default on body, in h-text. Everything below overrides it. */
  --text-prose: 400 0.97rem/1.85 var(--font-sans); /* Post body paragraphs (18px below) and list items (1.8 line height, 5px apart), in text. */
  --text-summary: 400 1rem/1.75 var(--font-sans); /* The post summary under the title, in h-muted, at most 560px wide. 0.92rem under 480px. */
  --text-quote: italic 400 1.02rem/1.4 var(--font-sans); /* Blockquote text in h-text, behind a 3px accent rule with 20px of indent. Its cite is 0.82rem, 600, accent-text, 0.02em. */
  --text-tldr: 400 0.9rem/1.7 var(--font-sans); /* TL;DR items, in text, each numbered by a 0.75rem 700 h-muted figure. */
  --text-faq-answer: 400 0.92rem/1.8 var(--font-sans); /* FAQ answer paragraphs, in text-soft on bg. */
  --text-nav-link: 400 0.92rem/1.4 var(--font-sans); /* Nav links, in h-muted, h-text on hover. In the open mobile menu 0.95rem, h-text, with 11px of vertical padding. */
  --text-cta: 600 0.85rem/1.4 var(--font-sans); /* The nav CTA label, in on-accent on accent. */
  --text-faq-question: 600 0.92rem/1.4 var(--font-sans); /* FAQ question buttons, in h-text on bg2. */
  --text-small: 400 0.82rem/1.4 var(--font-sans); /* Footer links in muted (10px apart). At 600: the footer brand name in h-text (0.88rem) and the post author. */
  --text-meta: 400 0.8rem/1.4 var(--font-sans); /* Post meta items and the back link, in h-muted; the footer paragraph (1.7 line height, muted). */
  --text-toc-link: 400 0.78rem/1.4 var(--font-sans); /* TOC links in h-muted; the active one at 600 in h-text. The post number is the same size. */
  --text-caption: 400 0.75rem/1.4 var(--font-sans); /* The copyright line in subtle; the TL;DR number at 700 in h-muted. */
  --text-badge: 400 0.72rem/1.4 var(--font-sans); /* The footer badge text in muted. */
  --text-micro: 400 0.7rem/1.4 var(--font-sans); /* The TOC progress label in h-muted. */
  --text-tag: 700 0.72rem/1.4 var(--font-sans); /* The post tag, uppercase, in on-accent on accent. */
  --text-label-tldr: 700 0.68rem/1.4 var(--font-sans); /* The TL;DR block label, uppercase, in h-muted, 18px below. */
  --text-label-toc: 700 0.65rem/1.4 var(--font-sans); /* The TOC label, uppercase, in h-muted, with a hairline under it. */
  --text-label-footer: 600 0.7rem/1.4 var(--font-sans); /* Footer column headings, uppercase, in subtle, 18px below. */
  --text-code: 400 0.88rem/1.4 var(--font-mono); /* Inline code in prose, on bg3 with 1px 6px of padding and radius-3. */
}
.post-title {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.logo {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.prose {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0;
}
.summary {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;
}
.quote {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
}
.tldr {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
}
.faq-answer {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
.faq-question {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.toc-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.micro {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.label-tldr {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.label-toc {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.label-footer {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}

/* ============================================================
   bundle.css — pieterverschueren.com, dark
   The site's shared stylesheet (reset, body, nav, footer, post pages)
   with every value that lives in tokens.json read from its custom
   property: a near-black page, white-at-opacity greys, a violet accent
   with on-accent on it. Load tokens.css first. Page-specific CSS stays in each
   page's own <style> block.
   ============================================================ */


/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--h-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--h-border);
  background: var(--nav-glass);
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-40);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--h-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle-input { display: none; }

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  cursor: pointer;
  width: var(--space-32);
  height: var(--space-32);
  padding: var(--space-4);
  border-radius: var(--radius-4);
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-toggle-btn:hover { background: var(--bg3); }
.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--h-text);
  border-radius: var(--radius-1);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-28);
  list-style: none;
}

.nav-links a {
  color: var(--h-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--h-text); }

.nav-cta {
  background: var(--accent);
  color: var(--on-accent) !important;
  text-decoration: none;
  padding: var(--space-8) var(--space-20);
  border-radius: var(--radius-8);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  box-shadow: var(--shadow-cta);
  transition: box-shadow 0.15s, transform 0.15s;
}
.nav-cta:hover {
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
  color: var(--on-accent) !important;
}


/* ── WRAPPER ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-40); }


/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--border); }

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-60);
  padding: var(--space-64) 0 var(--space-56);
  border-bottom: 1px solid var(--border);
}

.footer-brand strong { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: var(--space-12); }
.footer-brand p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; max-width: var(--footer-brand-max); margin-bottom: var(--space-20); }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-20);
  padding: var(--space-5) var(--space-12);
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-badge span { width: 6px; height: 6px; background: var(--accent); border-radius: var(--radius-full); }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: var(--space-18);
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: var(--space-10);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--h-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24) 0;
}
.footer-bottom span { font-size: 0.75rem; color: var(--subtle); }


/* ── RESPONSIVE — shared ── */
@media (max-width: 960px) {
  .nav-inner { padding: 0 var(--space-24); }
  .wrap { padding: 0 var(--space-24); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-40); }
}

@media (max-width: 768px) {
  /* Hamburger button visible */
  .nav-toggle-btn { display: flex; }

  /* Nav links become full-width dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-8) var(--space-24) var(--space-16);
    background: var(--nav-glass-solid);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--h-border);
    box-shadow: var(--shadow-menu);
  }

  /* Open state via checkbox */
  .nav-toggle-input:checked ~ .nav-links { display: flex; }

  /* Animate hamburger to X */
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links li { width: 100%; }

  .nav-links a:not(.nav-cta) {
    display: block;
    padding: 11px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--h-border);
    color: var(--h-text);
  }

  .nav-cta {
    margin-top: var(--space-12);
    width: 100%;
    justify-content: center;
    padding: 11px var(--space-20);
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 var(--space-16); }
  .wrap { padding: 0 var(--space-16); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-28); padding: var(--space-48) 0 var(--space-40); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-20) 0; }
}


/* ── POST PAGE SHARED (blog post pages only) ── */

/* Post hero */
.post-hero {
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--h-border);
}

.post-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-40);
  display: grid;
  grid-template-columns: 1fr var(--hero-aside);
  gap: var(--space-80);
  align-items: center;
  min-height: 380px;
}

.post-hero-left { padding: var(--space-72) 0; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.8rem;
  color: var(--h-muted);
  text-decoration: none;
  margin-bottom: var(--space-28);
  transition: color 0.15s;
}
.post-back:hover { color: var(--h-text); }

.post-tag-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid transparent;
  padding: var(--space-5) var(--space-12);
  border-radius: var(--radius-4);
}

.post-number { font-size: 0.78rem; color: var(--h-muted); }

.post-title {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--h-text);
  border-left: 3px solid var(--h-text);
  padding-left: var(--space-18);
  margin-bottom: var(--space-24);
}

.post-summary {
  font-size: 1rem;
  color: var(--h-muted);
  line-height: 1.75;
  max-width: var(--summary-max);
  margin-bottom: var(--space-32);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-20);
}

.post-author { font-size: 0.82rem; font-weight: 600; color: var(--h-text); }

.post-meta-dot {
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--h-muted);
  flex-shrink: 0;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 0.8rem;
  color: var(--h-muted);
}
.post-meta-item svg { flex-shrink: 0; opacity: 0.6; }

.post-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-72) 0;
}

.post-illustration {
  width: var(--illustration);
  height: var(--illustration);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Post main layout */
.post-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-40);
  display: grid;
  grid-template-columns: 1fr var(--toc-width);
  gap: 0;
  align-items: start;
}

.post-content-col {
  border-left: 1px solid var(--h-border);
  border-right: 1px solid var(--h-border);
  padding: var(--space-56) var(--space-48) var(--space-96) var(--space-32);
}

/* TL;DR block */
.tldr-block {
  border: 1px solid var(--h-border);
  border-left: 3px solid var(--h-text);
  border-radius: 0 var(--radius-6) var(--radius-6) 0;
  padding: var(--space-22) var(--space-24) var(--space-24);
  background: var(--bg2);
  margin-bottom: var(--space-52);
}

.tldr-label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-bottom: var(--space-18);
}

.tldr-items { list-style: none; }

.tldr-item {
  display: flex;
  gap: var(--space-16);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--h-border);
}
.tldr-item:last-child { border-bottom: none; padding-bottom: 0; }

.tldr-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--h-muted);
  min-width: 16px;
  padding-top: 3px;
  flex-shrink: 0;
}

.tldr-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* Post body content */
.post-body h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--h-text);
  margin-top: 0;
  margin-bottom: var(--space-14);
}

.post-body h2:not(:first-of-type)::before {
  content: '';
  display: block;
  height: var(--space-32);
  background-image: repeating-linear-gradient(-45deg, var(--stripe) 0px, var(--stripe) 1px, transparent 1px, transparent 8px);
  background-clip: padding-box; /* keep the hatch off the two rules, or they bead where a stripe crosses them */
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  margin-left: calc(-1 * var(--space-32));
  width: calc(100% + var(--space-32) + var(--space-48));
  margin-bottom: var(--space-28);
  margin-top: var(--space-48);
}

.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h-text);
  margin-top: var(--space-32);
  margin-bottom: var(--space-10);
}

.post-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: var(--space-18);
}

.post-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-18);
}

.post-body ol {
  padding-left: var(--space-22);
  margin-bottom: var(--space-18);
}

.post-body ul li {
  position: relative;
  padding-left: var(--space-22);
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent);
  background: var(--accent);
}

.post-body ol li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-4) 0 var(--space-4) var(--space-20);
  margin: var(--space-28) 0;
}

.post-body blockquote p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--h-text);
  margin: 0;
}

.post-body blockquote cite {
  display: block;
  margin-top: var(--space-10);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}

.post-body strong { font-weight: 700; color: var(--h-text); }

.post-body a {
  color: var(--h-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--bg3);
  padding: 1px var(--space-6);
  border-radius: var(--radius-3);
}

.highlight {
  background: var(--highlight);
  border-radius: var(--radius-3);
  padding: 0 2px;
}

/* TOC sidebar */
.toc-sidebar {
  position: sticky;
  top: var(--space-80);
  padding: var(--space-56) 0 var(--space-96) var(--space-32);
}

.toc-box {
  border: 1px solid var(--h-border);
  border-radius: var(--radius-6);
  padding: var(--space-18) var(--space-18) var(--space-14);
  background: var(--bg);
}

.toc-label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--h-border);
}

.toc-list { list-style: none; }

.toc-list a {
  display: block;
  font-size: 0.78rem;
  color: var(--h-muted);
  text-decoration: none;
  padding: var(--space-5) var(--space-8) var(--space-5) var(--space-10);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
  border-radius: 0 var(--radius-4) var(--radius-4) 0;
}

.toc-list a:hover { color: var(--h-text); background: var(--bg3); }

.toc-list a.active {
  color: var(--h-text);
  font-weight: 600;
  border-left-color: var(--h-text);
  background: var(--bg2);
}

.toc-progress {
  margin-top: var(--space-14);
  padding-top: var(--space-12);
  border-top: 1px solid var(--h-border);
}

.toc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--h-muted);
  margin-bottom: var(--space-6);
}

.toc-progress-bar {
  height: 3px;
  background: var(--bg3);
  border-radius: var(--radius-2);
  overflow: hidden;
}

.toc-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-2);
  width: 0%;
  transition: width 0.1s;
}

/* FAQ section */
.faq-section {
  margin-top: var(--space-48);
}

.faq-section > h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--h-text);
  margin-bottom: var(--space-28);
}

.faq-item {
  border: 1px solid var(--h-border);
  border-radius: var(--radius-6);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.faq-question {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  background: var(--bg2);
  border: none;
  padding: var(--space-16) var(--space-20);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--h-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
}
.faq-question:hover { background: var(--bg3); }
.faq-item.open .faq-question {
  background: var(--bg2);
  border-bottom: 1px solid var(--h-border);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--h-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: var(--space-18) var(--space-20) var(--space-20);
  background: var(--bg);
}
.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}

/* Responsive — post pages */
@media (max-width: 960px) {
  .post-hero-inner { grid-template-columns: 1fr; gap: 0; padding: 0 var(--space-24); }
  .post-hero-right { display: none; }
  .post-title { font-size: 1.9rem; }
  .post-layout { grid-template-columns: 1fr; padding: 0 var(--space-24); }
  .toc-sidebar { display: none; }
  .post-content-col { border: none; padding: var(--space-40) 0 var(--space-72); }
}

@media (max-width: 480px) {
  .post-hero-inner { padding: 0 var(--space-16); }
  .post-hero-left { padding: var(--space-48) 0; }
  .post-title { font-size: 1.65rem; }
  .post-summary { font-size: 0.92rem; }
  .post-meta { gap: var(--space-10); }
  .post-meta-dot { display: none; }
  .post-layout { padding: 0 var(--space-16); }
  .post-content-col { padding: var(--space-28) 0 var(--space-52); }
  .post-body h2 { font-size: 1.25rem; }
}


/* ── PAGE FRAME (rails, section rules, gaps) ── */
/* Content sits in a railed column; sections are cells in that column.
   Rules run the full width; rails run dashed across the gaps between sections. */

.rule-top    { border-top: 1px solid var(--h-border); }
.rule-bottom { border-bottom: 1px solid var(--h-border); }

.rails {
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--h-border);
  border-right: 1px solid var(--h-border);
}

.rail-gap {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--space-120);
  background-image:
    linear-gradient(var(--h-border) 50%, transparent 50%),
    linear-gradient(var(--h-border) 50%, transparent 50%);
  background-size: 1px 12px, 1px 12px;
  background-repeat: repeat-y, repeat-y;
  background-position: left top, right top;
}
.rail-gap--wide { height: var(--space-160); }

.cell { padding: var(--space-40); min-width: 0; }

.cell h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--h-text);
  max-width: 24em;
  margin-bottom: var(--space-12);
}
.cell h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--h-text);
  margin-bottom: var(--space-8);
}
.cell p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 36em;
}
.cell p + p { margin-top: var(--space-12); }
.cell-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--h-text);
  margin-bottom: var(--space-16);
}

.band {
  padding: var(--space-96) var(--space-40);
  text-align: center;
}
.band h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--h-text);
  margin: 0 auto var(--space-16);
  max-width: 18em;
}
.band p {
  font-size: 1rem;
  color: var(--h-muted);
  line-height: 1.75;
  max-width: 32em;
  margin: 0 auto var(--space-28);
}


/* ── HAIRLINE GRID ── */
/* Cells separated by 1px of h-border showing through a 1px gap: no card gaps, no doubled borders. */

.grid-hairline {
  display: grid;
  gap: 1px;
  background: var(--h-border);
  padding: 1px;
}
.grid-hairline > * { background: var(--bg); min-width: 0; }
.rails > .grid-hairline { margin: 0 -1px; }

.grid-hairline--2 { grid-template-columns: repeat(2, 1fr); }
.grid-hairline--3 { grid-template-columns: repeat(3, 1fr); }
.grid-hairline--4 { grid-template-columns: repeat(4, 1fr); }
.grid-hairline--6 { grid-template-columns: repeat(6, 1fr); }

.stat { padding: var(--space-24) var(--space-40); }
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--h-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-6);
}
.stat span { font-size: 0.82rem; color: var(--h-muted); }


/* ── LOGO WALL ── */

.logo-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-24) var(--space-40) var(--space-16);
  font-size: 0.85rem;
  color: var(--h-muted);
}
.logo-wall-head a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--h-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.logo-wall-head a:hover { color: var(--h-text); }

.logo-wall {
  --logo-h: 32px;                                   /* tallest logo */
  --label-gap: var(--space-5);                      /* from the logo's bottom edge to the label */
  --kind-h: calc(0.72rem + 2 * var(--space-4));     /* the label pill's height */
  --kind-row: 0px;                                  /* extra tile height once any tile has a label */
  line-height: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--h-border);
  padding: 1px;
}
.rails > .logo-wall { margin: 0 -1px; }
.logo-wall:has(.logo-kind) { --kind-row: var(--kind-h); }
.logo-wall > * {
  position: relative;
  background: var(--bg);
  height: calc(var(--space-96) + var(--kind-row));
  display: grid;
  grid-template-rows: 1fr auto 1fr; /* the logo is centred in every tile; a label hangs into the bottom row */
  justify-items: center;
  align-items: center;
  padding: 0 var(--space-32);
  color: var(--h-text);
  line-height: 1;
  min-width: 0;
}
.logo-wall > * > :first-child { grid-row: 2; }
.logo-wall img,
.logo-wall svg { max-height: var(--logo-h); max-width: 110px; width: auto; height: auto; }

/* A cell with something behind it: an anchor (case study) or a button (quote, testimonial), labelled by its kind */
.logo-wall > a,
.logo-wall > button {
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.logo-wall > a:hover,
.logo-wall > button:hover { background: var(--bg2); }
.logo-wall > a:focus-visible,
.logo-wall > button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

.logo-kind {
  grid-row: 3;
  align-self: start;
  margin-top: var(--label-gap);
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-20);
  background: var(--highlight);
  color: var(--h-text);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.logo-wall > a:hover .logo-kind,
.logo-wall > button:hover .logo-kind { background: var(--accent); color: var(--on-accent); }

/* Dashed variant: taller cells, solid rules top and bottom, dashed dividers between cells */
.logo-wall--dashed {
  --logo-h: 40px;
  --label-gap: var(--space-6);
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  background: none;
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
}
.logo-wall--dashed:has(.logo-kind) { --kind-row: 0px; } /* tall enough already */
.logo-wall--dashed > * {
  height: 152px;
  background-clip: padding-box;
  background-image: linear-gradient(var(--h-border) 50%, transparent 50%);
  background-size: 1px 12px;
  background-repeat: repeat-y;
  background-position: left top;
}
.logo-wall--dashed > :first-child { background-image: none; }
.logo-wall--dashed img,
.logo-wall--dashed svg { max-width: 140px; }


/* ── OVERLAYS (quote overlay, video popup) ── */
/* Native <dialog>; the page opens it with showModal() from a logo cell or any other trigger. */

.overlay {
  margin: auto; /* the reset zeroes dialog's own centring margin */
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  color: var(--h-text);
}
.overlay::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(14px);
}
.overlay-panel {
  position: relative;
  width: min(560px, calc(100vw - 2 * var(--space-24)));
  background: var(--bg2);
  border: 1px solid var(--h-border);
  border-radius: var(--radius-6);
  padding: var(--space-40);
}
.overlay-close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  width: var(--space-32);
  height: var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-4);
  background: transparent;
  color: var(--h-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.overlay-close:hover { background: var(--bg3); color: var(--h-text); }
.overlay-close svg { width: 16px; height: 16px; }
.overlay-logo {
  display: flex;
  align-items: center;
  height: 32px;
  margin-bottom: var(--space-24);
  color: var(--h-text);
}
.overlay-logo img,
.overlay-logo svg { max-height: 24px; max-width: 110px; width: auto; height: auto; }

/* Quote overlay: the quote in the display face, the person under it */
.overlay-quote p {
  font-size: 1.45rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--h-text);
  margin: 0 0 var(--space-20);
}
.overlay-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--h-muted);
}
.overlay-quote cite strong { display: block; font-weight: 600; color: var(--accent-text); letter-spacing: 0.02em; }

/* Video popup: a 16:9 frame, wider than the quote panel */
.overlay-panel--video {
  width: min(960px, calc(100vw - 2 * var(--space-24)), calc((100vh - 2 * var(--space-64)) * 16 / 9)); /* never taller than the viewport */
  padding: var(--space-12);
}
.overlay-panel--video .overlay-close { background: var(--bg2); color: var(--h-text); z-index: 1; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: var(--radius-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-muted);
  font-size: 0.82rem;
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ── TABS ── */

/* Pill tabs: filters beside a panel. Active is ink on a h-text fill; the violet stays for the CTA. */
.tabs-pill {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--h-border);
  border-radius: var(--radius-20);
  background: transparent;
  color: var(--h-text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tab-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.tab-pill:hover { border-color: var(--h-muted); background: var(--bg3); }
.tab-pill[aria-selected="true"] {
  background: var(--h-text);
  border-color: var(--h-text);
  color: var(--bg);
}

/* Tab bar: equal cells on a hairline grid, a 2px accent line under the active one, the panel shares the border */
.tabs-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1px;
  background: var(--h-border);
  padding: 1px;
}
.tab-bar {
  position: relative;
  height: 72px;
  background: var(--bg);
  border: none;
  color: var(--h-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s, background 0.5s;
}
.tab-bar:hover { background: var(--bg2); color: var(--h-text); transition-duration: 0.15s, 0s; }
.tab-bar[aria-selected="true"] { color: var(--h-text); }
.tab-bar[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.tabs-panel {
  border: 1px solid var(--h-border);
  border-top: 0;
  padding: var(--space-40);
}
.tabs-panel[hidden] { display: none; }
.tabs-pill + .tabs-panel { border-top: 1px solid var(--h-border); margin-top: var(--space-24); }


/* ── SUB-NAV ── */
/* A 56px bar under the nav for pages that belong together: section name, a divider, the pages. */

.subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--h-border);
}
.subnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-28);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-section {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--h-text);
  padding: var(--space-6) var(--space-12);
  white-space: nowrap;
  text-decoration: none;
}
.subnav-divider {
  width: 1px;
  height: 16px;
  background: var(--subtle);
  margin: 0 var(--space-6);
  flex-shrink: 0;
}
.subnav a:not(.subnav-section) {
  font-size: 0.92rem;
  color: var(--h-muted);
  padding: var(--space-6) var(--space-12);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s;
}
.subnav a:not(.subnav-section):hover,
.subnav a[aria-current="page"] { color: var(--h-text); }


/* ── POST GRID (blog overview) ── */
/* a.post-card cells on a two-column hairline grid: meta on top, title and excerpt pinned to the bottom */

.post-grid { grid-template-columns: repeat(2, 1fr); }

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-40);
  min-height: 248px;
  padding: var(--space-32);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.post-card:hover { background: var(--bg2); }
.post-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: 0.85rem;
  line-height: 1.4;
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 600;
  color: var(--h-text);
  min-width: 0;
}
.post-card-avatars { display: flex; flex-shrink: 0; }
.post-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg3);
  color: var(--h-muted);
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.post-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-card-avatar + .post-card-avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.post-card-when {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--h-muted);
  white-space: nowrap;
}
.post-card-when span + span::before {
  content: "/";
  color: var(--subtle);
  margin-right: var(--space-8);
}
.post-card-when .post-card-cat { color: var(--h-text); font-weight: 600; }

.post-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--h-text);
  margin-bottom: var(--space-8);
  max-width: 24em;
}
.post-card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--h-muted);
  max-width: 30em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover p { color: var(--text); }


/* ── RESPONSIVE — frame, grids, logos, tabs, sub-nav ── */
@media (max-width: 960px) {
  .rails, .rail-gap { margin: 0 var(--space-24); }
  .cell { padding: var(--space-24); }
  .band { padding: var(--space-64) var(--space-24); }
  .grid-hairline--3, .grid-hairline--4, .grid-hairline--6 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .post-card { min-height: 220px; padding: var(--space-24); gap: var(--space-28); }
  .logo-wall--dashed { grid-template-columns: repeat(2, 1fr); }
  .logo-wall--dashed > :nth-child(odd) { background-image: none; }
  .logo-wall--dashed > :nth-child(n+3) { border-top: 1px solid var(--h-border); }
  .logo-wall-head { padding: var(--space-24) var(--space-24) var(--space-16); }
  .tabs-bar { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; }
  .tab-bar { height: 56px; }
  .tabs-panel { padding: var(--space-24); }
  .subnav-inner { padding: 0 var(--space-12); }
}

@media (max-width: 480px) {
  .rails, .rail-gap { margin: 0 var(--space-16); }
  .rail-gap, .rail-gap--wide { height: var(--space-64); }
  .cell { padding: var(--space-16); }
  .band { padding: var(--space-48) var(--space-16); }
  .grid-hairline--2, .grid-hairline--3, .grid-hairline--4, .grid-hairline--6 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 0; padding: var(--space-20) var(--space-16); gap: var(--space-20); }
  .post-card-meta { flex-wrap: wrap; }
  .logo-wall > * { padding: 0 var(--space-16); }
  .overlay-panel { padding: var(--space-24); }
  .overlay-quote p { font-size: 1.2rem; }
  .logo-wall-head { flex-direction: column; align-items: flex-start; gap: var(--space-6); padding: var(--space-20) var(--space-16) var(--space-12); }
  .tabs-bar { grid-template-columns: 1fr; }
  .tabs-panel { padding: var(--space-16); }
  .subnav-inner { padding: 0 var(--space-4); }
}
