/* Blog público (blog.php). Usa os tokens do app.css e o topo/rodapé da landing.css. */

.blog-main { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.lp-nav a.is-active { color: var(--text); }

/* Lista */
.blog-hero { text-align: center; padding: 48px 0 32px; max-width: 760px; margin: 0 auto; }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); line-height: 1.1; letter-spacing: -.04em; font-weight: 800; margin: 12px 0; }
.blog-hero p { color: var(--text-2); font-size: 17px; margin: 0 auto 20px; max-width: 36em; }

.blog-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.blog-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.blog-card img { width: calc(100% + 44px); margin: -22px -22px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.blog-card h2, .blog-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.blog-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0; flex: 1; }
.blog-card-date { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.blog-card-more { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }

/* Artigo */
.post { max-width: 740px; margin: 0 auto; padding: 28px 0 8px; }
.post-crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.post-crumbs a { color: var(--text-2); }
.post h1 { font-family: var(--font-display); font-size: clamp(28px, 5.5vw, 42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin: 0 0 12px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.post-body { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin: 0 0 1.15em; }
.post-body h2 { font-family: var(--font-display); font-size: 25px; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; margin: 1.8em 0 .6em; }
.post-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 1.5em 0 .5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: .35em 0; }
.post-body li::marker { color: var(--accent); font-weight: 700; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 700; }
.post-body blockquote {
  padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft); color: var(--text); font-size: 16px;
}
.post-cta {
  margin: 2em 0 1em; padding: 22px; border-radius: var(--radius); text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.post-cta p { margin: 0 0 14px; font-size: 16px; }
.post-cta .btn { text-decoration: none; color: var(--accent-ink); }

.blog-more { max-width: 1180px; margin: 48px auto 0; }
.blog-more h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.blog-final { margin-top: 56px; text-align: center; }
.blog .empty { text-align: center; }

@media (min-width: 720px) {
  .blog-main { padding: 0 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card.is-featured { grid-column: 1 / -1; padding: 30px; }
  .blog-card.is-featured h2 { font-size: 26px; }
  .blog-card.is-featured img { width: calc(100% + 60px); margin: -30px -30px 8px; aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-hero { padding-top: 64px; }
}
