/* ==========================================================================
   kern.ia — blog
   Hereda los tokens de styles.css. Solo tipografía de artículo y tarjetas
   de índice; no redefine colores ni el chrome del sitio.
   ========================================================================== */

/* ---------- índice ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}
.post-card:hover { border-color: rgba(255,255,255,.16); background: var(--surface-2); }
.post-card h2 {
  font-size: 19px;
  line-height: 1.3;
}
.post-card h2 a { color: var(--fg); }
.post-card h2 a:hover { color: var(--accent-strong); }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .02em;
}
.post-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-pill);
}
.post-card .read-more { font-size: 13.5px; font-weight: 500; margin-top: auto; }

/* ---------- artículo ---------- */
.article-head { padding-top: 88px; padding-bottom: 8px; max-width: 760px; }
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  margin-top: 18px;
}
.article-head .article-standfirst {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted-2);
}
.article-byline strong { color: var(--muted); font-weight: 510; }

.article-body { max-width: 760px; padding-bottom: 24px; }
.article-body > * + * { margin-top: 22px; }
.article-body p {
  font-size: 16.5px;
  line-height: 1.72;
  color: #C9CCD1;
}
.article-body p strong { color: var(--fg); font-weight: 600; }
.article-body h2 {
  font-size: 25px;
  line-height: 1.25;
  margin-top: 52px;
  color: var(--fg);
}
.article-body h3 {
  font-size: 17.5px;
  line-height: 1.35;
  margin-top: 34px;
  color: var(--fg);
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  color: #C9CCD1;
  font-size: 16.5px;
  line-height: 1.72;
}
.article-body li + li { margin-top: 10px; }
.article-body li::marker { color: var(--muted-2); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin-top: 28px;
}
.article-body thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}
.article-body tbody td {
  padding: 13px 14px;
  color: #C9CCD1;
  line-height: 1.55;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.article-body tbody td:first-child { color: var(--muted); font-weight: 510; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* bloque de cierre / CTA dentro del artículo */
.article-cta {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-cta h2 { margin-top: 0; font-size: 21px; }
.article-cta p { margin-top: 12px; font-size: 15.5px; }
.article-cta .btn-primary { margin-top: 20px; }

/* siguiente lectura */
.next-read { max-width: 760px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.next-read .eyebrow { margin-bottom: 14px; display: block; }
.next-read ul { list-style: none; padding: 0; margin: 0; }
.next-read li + li { margin-top: 10px; }
.next-read a { font-size: 15.5px; }

@media (max-width: 640px) {
  .article-head { padding-top: 72px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 16px; }
  .article-body h2 { font-size: 22px; margin-top: 42px; }
}
