/* ──────────────────────────────────────────────────────────
   Vist · content-light
   Inverted neutral ramp for long-form reading. Shares brand
   tokens with marketing-dark. AA-safe.
   ────────────────────────────────────────────────────────── */
:root {
  --bg:        #fbfbf9;
  --bg-1:      #f5f5f1;
  --bg-2:      #ffffff;
  --border:    rgba(15, 18, 25, 0.10);
  --border-2:  rgba(15, 18, 25, 0.18);
  --hairline:  rgba(15, 18, 25, 0.06);

  --text:        #15181f;
  --text-dim:    #525866;
  --text-faint:  #7a8194;

  --accent:      #2e5cd8;
  --accent-soft: rgba(46, 92, 216, 0.08);
  --hot:         #008497;

  --tag-eng:    #3a8a55;
  --tag-mcp:    #2e5cd8;
  --tag-eu:     #b45b25;
  --tag-prod:   #6b5bb9;

  --sans:  'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 7vw, 112px);
  --max: 1280px;
  --max-narrow: 1080px;
  --read: 720px;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv11","ss01","ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(46,92,216,0.20); color: var(--text); }

/* Primitives */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad-x); }

.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border-radius: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-1); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 6px; }

/* Nav (light) */
.nav-outer {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,249,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.wordmark {
  font-family: var(--sans); font-weight: 600;
  font-size: 18px; letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(46,92,216,0.45);
}
.wordmark-img { display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-links a.current { font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .sign-in { font-size: 14px; color: var(--text-dim); padding: 0 10px; }
.nav-right .sign-in:hover { color: var(--text); }

/* Tag chips */
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid currentColor;
  font-weight: 500;
}
.tag-chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.tag-mcp  { color: var(--tag-mcp); }
.tag-eng  { color: var(--tag-eng); }
.tag-eu   { color: var(--tag-eu); }
.tag-prod { color: var(--tag-prod); }

/* ════════════════════ INDEX ════════════════════ */

.blog-header {
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--hairline);
}
.blog-header .crumbs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
}
.blog-header .crumbs a { color: var(--text-dim); }
.blog-header .crumbs a:hover { color: var(--text); }
.blog-header h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
  max-width: 18ch;
  text-wrap: balance;
}
.blog-header h1 .ital {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.005em;
}
.blog-header .sub {
  margin: 0;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.blog-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.blog-header-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.08em;
  text-align: right;
}
.blog-header-meta .num {
  display: block; font-size: 36px; line-height: 1; color: var(--text);
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Featured */
.featured {
  padding: clamp(48px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}
.featured .feat-label { display: inline-block; margin-bottom: 24px; }
.featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color .15s ease;
}
.featured-card:hover { border-color: var(--border-2); }

.feat-hero {
  position: relative;
  padding: 56px 48px;
  background:
    radial-gradient(70% 90% at 20% 20%, rgba(46,92,216,0.10), transparent 60%),
    linear-gradient(180deg, #f0eee5 0%, #ebe7d8 100%);
  border-right: 1px solid var(--hairline);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.feat-hero::before {
  content: "";
  position: absolute;
  top: 56px; left: 48px;
  width: 32px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.feat-hero .feat-quote {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
  max-width: 14ch;
}
.feat-hero .feat-quote .nonital {
  font-family: var(--sans); font-style: normal; font-weight: 600;
  letter-spacing: -0.02em;
}
.feat-hero .feat-foot {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
}
.feat-hero .feat-foot .wm {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em; text-transform: none; color: var(--text);
}

.feat-body {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.feat-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.feat-meta .read-time {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint); letter-spacing: 0.04em;
}
.feat-body h2 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.feat-body .dek {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 42ch;
  text-wrap: pretty;
}
.byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9c08a, #a78448);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 11px;
  flex-shrink: 0;
}
.byline .author { color: var(--text); font-weight: 500; }
.byline .sep { color: var(--border-2); }
.feat-body .read-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 14.5px; color: var(--accent);
  font-weight: 500;
  width: fit-content;
}
.feat-body .read-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Filter row */
.filter-row {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: sticky;
  top: 64px;
  z-index: 40;
  backdrop-filter: blur(6px);
}
.filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 13px; color: var(--text-dim);
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.chip .count {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-faint); letter-spacing: 0.04em;
}
.chip.active .count { color: rgba(255,255,255,0.6); }
.sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Post grid */
.grid-section { padding: clamp(48px, 5vw, 72px) 0; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.post-card {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 32px 28px 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  transition: background .15s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.post-card:hover { background: var(--bg-1); }
.post-card .pc-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.post-card h3 {
  margin: 4px 0 4px;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.post-card h3 .ital { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }
.post-card .dek {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 36ch;
}
.post-card .pc-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.04em;
}
.post-card .pc-foot .author { color: var(--text-dim); }
.post-card .pc-foot .sep { color: var(--border-2); }
.post-card .pc-arrow {
  position: absolute;
  top: 28px; right: 24px;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  color: var(--accent);
}
.post-card:hover .pc-arrow { opacity: 1; transform: translateX(2px); }

/* Archive link (replaces subscribe band per resolved Q2) */
.archive {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.archive .label { display: inline-block; margin-bottom: 14px; }
.archive h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em; font-weight: 600;
  margin: 6px 0 14px;
}
.archive h2 .ital { font-family: var(--serif); font-style: italic; font-weight: 400; }
.archive p {
  margin: 0 auto 22px; max-width: 48ch;
  color: var(--text-dim); font-size: 15px;
}
.archive .rss-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: border-color .15s, color .15s;
}
.archive .rss-pill:hover { color: var(--text); border-color: var(--border-2); }

/* ════════════════════ POST ════════════════════ */

.read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.read-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

.article-header {
  padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--hairline);
}
.article-header .crumbs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
  flex-wrap: wrap;
}
.article-header .crumbs a { color: var(--text-dim); }
.article-header .crumbs a:hover { color: var(--text); }
.article-header .crumbs .sep { color: var(--border-2); }
.header-inner { max-width: 880px; margin: 0 auto; }
.header-inner .h-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.header-inner h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
.header-inner h1 .ital {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.005em;
}
.header-inner .dek {
  margin: 0 0 36px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 60ch;
  text-wrap: pretty;
}
.byline-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.byline-row .author-block {
  display: flex; align-items: center; gap: 12px;
}
.byline-row .avatar {
  width: 36px; height: 36px;
  font-size: 12.5px;
}
.author-block .name { font-size: 14.5px; color: var(--text); font-weight: 500; line-height: 1.2; }
.author-block .role { font-size: 12px; color: var(--text-faint); font-family: var(--mono); letter-spacing: 0.04em; }
.byline-row .meta-stats {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-left: auto;
  flex-wrap: wrap;
}
.byline-row .meta-stats .sep { color: var(--border-2); }

/* 3-column article layout */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read)) 100px;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(64px, 8vw, 120px);
  align-items: start;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}

/* Full-width variant when a post has no TOC */
.article-layout--full { grid-template-columns: minmax(0, var(--read)) 100px; }
.article-layout--full .toc { display: none; }

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border-left: 1px solid var(--hairline);
  padding-left: 20px;
}
.toc .toc-label {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.toc ul ul { padding-left: 14px; margin-top: 8px; gap: 8px; }
.toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.4;
  border-left: 1px solid transparent;
  margin-left: -21px; padding-left: 20px;
  transition: color .12s ease, border-color .12s ease;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); font-weight: 500; }
.toc ul ul a { font-size: 12.5px; }

.share-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
}
.share-rail .share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono); font-size: 10px;
  color: var(--text-faint); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 8px;
}
.share-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.share-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--bg); }
.share-btn svg { width: 15px; height: 15px; }

/* Article body */
article.post { min-width: 0; }
article.post p,
article.post ul,
article.post ol,
article.post blockquote {
  margin: 0 0 22px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text);
}
article.post p:last-child { margin-bottom: 0; }
article.post > p:first-of-type {
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
}
article.post > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.2em;
  line-height: 0.9;
  float: left;
  padding: 5px 10px 0 0;
  color: var(--text);
}
article.post h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 56px 0 16px;
  color: var(--text);
  scroll-margin-top: 96px;
}
article.post h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
  scroll-margin-top: 96px;
}
article.post a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(46,92,216,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
article.post a:hover { text-decoration-color: var(--accent); }
article.post strong { font-weight: 600; color: var(--text); }
article.post em { font-style: italic; }
article.post ul { padding-left: 24px; list-style: disc; }
article.post ol { padding-left: 24px; list-style: decimal; }
article.post li { margin-bottom: 8px; }
article.post li::marker { color: var(--text-faint); }
article.post code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px; border-radius: 4px;
}
article.post pre {
  background: #14181f;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  margin: 6px 0 28px;
  padding: 16px 18px;
  font-family: var(--mono); font-size: 13.5px;
  line-height: 1.55;
  color: #c5cad3;
  overflow-x: auto;
}
article.post pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}
article.post blockquote {
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: balance;
  margin: 40px 0 36px;
}

/* Article foot */
.article-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 24px;
}
.article-foot .af-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.article-foot .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-foot .mobile-share { display: none; gap: 10px; }
.article-foot .mobile-share .share-btn { width: 34px; height: 34px; }

/* Back-to-all-posts rail (replaces subscribe-compact per resolved Q2) */
.back-rail {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.back-rail a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.back-rail a:hover { color: var(--text); }

/* Related */
.related {
  background: var(--bg-1);
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 6vw, 96px) 0;
}
.related .label { display: inline-block; margin-bottom: 22px; }
.related h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 36px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: var(--bg-2);
}
.rel-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px 30px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-2);
  transition: background .15s ease;
  color: inherit;
  position: relative;
}
.rel-card:hover { background: var(--bg); }
.rel-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.rel-card h4 .ital { font-family: var(--serif); font-style: italic; font-weight: 400; }
.rel-card .dek {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.rel-card .rel-foot {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-faint); letter-spacing: 0.06em;
}

/* Footer (light) */
footer.foot {
  background: var(--bg);
  padding: clamp(64px, 7vw, 96px) 0 36px;
  border-top: 1px solid var(--hairline);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-brand .wordmark { font-size: 22px; }
.foot-brand .obsession {
  margin-top: 18px; max-width: 28ch;
  font-size: 13.5px; color: var(--text-faint);
  line-height: 1.55;
}
.foot-brand .obsession em { font-family: var(--serif); color: var(--text-dim); font-style: italic; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 18px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text-dim); transition: color .15s ease; }
.foot-col a:hover { color: var(--text); }
.foot-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.06em;
  margin-top: 14px;
}
.foot-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #3a8a55; }
.foot-base {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.06em;
}
.foot-base .socials { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot-base .socials a { color: var(--text-faint); }
.foot-base .socials a:hover { color: var(--text); }
.foot-base .rss {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px;
}
.foot-base .rss:hover { color: var(--text); border-color: var(--border-2); }

/* Responsive */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: minmax(0, var(--read));
    justify-content: center;
  }
  .toc, .share-rail { display: none; }
  .article-foot .mobile-share { display: flex; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .feat-hero { border-right: none; border-bottom: 1px solid var(--hairline); min-height: 280px; padding: 36px 28px; }
  .feat-body { padding: 32px 28px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .filter-row { position: static; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .blog-header-meta { display: none; }
  article.post > p:first-of-type::first-letter { font-size: 3.2em; }
}
