/* ==========================================================================
   Kabine — Blog
   Estilos exclusivos de /blog/index.html e /blog/<slug>.html. Ficam fora de
   sections.css porque não existem na home — só carregam nas páginas de blog.
   ========================================================================== */

/* ------------------------------------------------------------ VOLTAR/TRILHA */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.back-link .chev { transform: rotate(180deg); transition: transform var(--dur) var(--ease); }
.back-link:hover { color: var(--text); }
.back-link:hover .chev { transform: rotate(180deg) translateX(3px); }

/* ------------------------------------------------------------- CABEÇALHO */
.article-head {
  max-width: var(--container-prose);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* ----------------------------------------------------------------- CAPA */
.article-cover { max-width: var(--container-wide); margin: var(--sp-7) auto 0; }

/* ---------------------------------------------------------------- CORPO */
.article-body {
  max-width: var(--container-prose);
  margin: var(--sp-7) auto 0;
  color: var(--text);
}

.article-body p { font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: var(--sp-5); }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-size: var(--fs-display-m);
  font-weight: var(--w-display);
  letter-spacing: var(--tr-display-m);
  line-height: var(--lh-display-m);
  margin: var(--sp-8) 0 var(--sp-4);
}

.article-body h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--tr-h4);
  margin: var(--sp-6) 0 var(--sp-3);
}

.article-body ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding-left: var(--sp-5);
  list-style: disc;
}

.article-body li { line-height: var(--lh-body); }
.article-body li::marker { color: var(--accent); }

.article-body strong { font-weight: 600; }

.article-body a,
.article-head .lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover,
.article-head .lead a:hover { color: var(--accent-hover); }

.article-body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

/* --------------------------------------------------------------- CTA FINAL */
.article-cta {
  max-width: var(--container-prose);
  margin: var(--sp-8) auto 0;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.article-cta p { margin: 0; max-width: 42ch; }
.article-cta h3 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--sp-1); }

@media (max-width: 640px) {
  .article-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* -------------------------------------------------------- LISTAGEM DO BLOG */
.blog-head { text-align: center; max-width: var(--container-prose); margin-inline: auto; }

/* O card inteiro é clicável: o <a> assume o papel de layout que o .post
   original delegava à flexbox direto nos filhos. */
.post > a { display: flex; flex-direction: column; flex: 1; }
