/* Blog: lista de artigos e página de artigo (gerados por gerar_blog.py). */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--line); background: var(--white); transition: border-color 160ms ease, transform 160ms ease; }
.post-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.post-card a { display: flex; height: 100%; flex-direction: column; color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--purple-soft); }
.post-card h2 { margin: 20px 22px 10px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.post-card p { margin: 0 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-card time { margin: auto 22px 22px; color: var(--purple); font-size: 13px; font-weight: 700; }

.post-narrow { max-width: 760px; }
.post-hero { padding: 64px 0 40px; background: var(--cream); }
.post-breadcrumb { margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.post-breadcrumb a { color: var(--purple); font-weight: 700; }
.post-hero h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(36px, 5.5vw, 56px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
.post-meta { margin: 0; color: var(--muted); font-size: 14px; }
.post-cover { width: 100%; height: auto; margin: 40px 0 8px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--purple-soft); }

.post-body { padding: 32px 0 16px; font-size: 18px; line-height: 1.8; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body table { margin: 0 0 22px; }
.post-body h2 { margin: 44px 0 16px; font-family: var(--serif); font-size: clamp(28px, 4vw, 34px); font-weight: 400; line-height: 1.2; }
.post-body h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.post-body h4 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--purple); color: var(--muted); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { background: var(--purple-soft); }

.post-cta { margin: 24px 0 48px; padding: 32px; border: 1px solid var(--line); background: var(--purple-soft); }
.post-cta h2 { margin-bottom: 10px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.post-cta p { margin-bottom: 22px; color: var(--muted); line-height: 1.7; }

.post-more { padding-bottom: 96px; }
.post-more h2 { margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); }
.post-more ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-more li { border-bottom: 1px solid var(--line); }
.post-more a { display: block; padding: 16px 0; font-weight: 600; }
.post-more a:hover { color: var(--purple); }

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-hero { padding: 44px 0 28px; }
  .post-body { font-size: 17px; }
  .post-cta { padding: 24px; }
}
