/* Pindu Labs — blog (research) layer.
   Sits on top of the site tokens (styles.css) and the shared prose.css.
   Two jobs: (1) give the article prose the Labs typographic voice
   (serif headings, mono meta, Noto Serif SC for Chinese); (2) style the
   research index as printed, bordered entries. Figures keep their own
   semantic data-viz palette and are left to prose.css. */

/* ---------- Article prose ---------- */
.prose { font-family: var(--font-prose); padding-bottom: 0; }

.prose h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.prose .subtitle { font-family: var(--font-serif); font-style: normal; }

.prose .meta {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Crisp "printed sheet" for the article body panel (opaque in light + dark) */
.prose .paper { background: var(--surface); margin-bottom: 0; }

/* Table of contents + footnote backref keep the mono voice */
.prose .toc details summary { font-family: var(--font-mono); }

/* Chinese runs render in the serif CJK face */
.prose [lang="zh-Hans"],
.prose [lang="zh"],
.prose .ch { font-family: var(--font-zh); }

/* ---------- Research index ---------- */
.research-head {
  padding-block: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
}
.research-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.research-head .lede {
  color: var(--muted);
  font-size: var(--fs-lg);
  max-width: 62ch;
  margin: 0;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}

.research-entry {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.research-entry:hover,
.research-entry:focus-visible {
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.research-entry:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.research-entry .entry-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-2);
}
.research-entry h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.014em;
  margin: 0 0 var(--space-2);
  transition: color 0.18s ease;
}
.research-entry:hover h2 { color: var(--teal); }
.research-entry .entry-dek {
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.research-entry .entry-more {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--teal);
}

@media (max-width: 560px) {
  .research-entry { padding: var(--space-3); }
}

/* ---------- End-of-article CTA ---------- */
/* One restrained, prose-width card (matches the .paper above it), held a
   small, equal distance from the article above and the footer below. */
.post-cta-row {
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: var(--space-4) auto;
}
.post-cta {
  text-align: left;
  background: var(--overlay-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  gap: var(--space-3);
}
.post-cta .cta-text {
  margin: 0;
  color: var(--text);
}
.post-cta .cta-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--teal);
  text-decoration: none;
}
.post-cta .cta-link:hover,
.post-cta .cta-link:focus-visible {
  color: var(--teal-bright);
  text-decoration: underline;
}
