/* Blog: the same thread, one long reply per post. Builds on site.css tokens. */

.topnav a[aria-current="page"] { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Index */
.posts { margin-top: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--line); }
.post-item { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.post-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.kind {
  padding: 2px 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.kind--draft { background: var(--chip); }
.post-item__title {
  margin-top: 10px;
  max-width: 28ch;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post-item__title a { text-decoration: none; }
.post-item__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-item__desc { max-width: 40em; margin-top: 8px; font-size: 17px; color: var(--text-muted); }

/* Article */
.post-title {
  margin-top: 14px;
  max-width: 20ch;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  font-stretch: 96%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.prose { max-width: 38em; margin-top: clamp(24px, 3.4vw, 40px); font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.9em;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 3px; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--text-muted); }
.prose blockquote { padding: 14px 18px; background: var(--surface-sunk); color: var(--text-muted); }
.prose code { padding: 1px 5px; background: var(--surface-sunk); font-size: 0.92em; /* no mono face: DESIGN.md */ }
.prose pre { padding: 16px 18px; overflow-x: auto; background: var(--surface-sunk) !important; border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

/* Tables scroll inside their own box on narrow screens */
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; border-bottom: 2px solid var(--ink); white-space: nowrap; }

.sources { max-width: 38em; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); }
.sources__title { font-size: 16px; font-weight: 700; }
.sources ul { margin-top: 8px; }
.sources li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 4px 0; font-size: 16px; }
.sources a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources span { color: var(--text-muted); }

/* Closing turn */
.post-cta__title {
  max-width: 18ch;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  font-stretch: 96%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.post-cta__text { max-width: 34em; margin-top: 14px; font-size: 18px; color: var(--on-yellow-soft); }
.post-cta__title + .post-cta__text + .hero__actions .textlink { font-weight: 650; }
