/* File: css/blog.css */
/* Blog index, blog post and the checklist page. Uses the design tokens of basic.css. */
.main-content { padding-top: 7rem; padding-bottom: 5rem; }

.blog-hero { text-align: center; margin-bottom: 4rem; }
.hero-title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-subtitle { color: var(--fg-muted); font-size: 1.2rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.blog-card h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.3; margin: 0; }
.blog-card h2 a { color: var(--fg); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); }
.blog-meta { color: var(--fg-muted); font-size: 0.85rem; font-weight: 600; margin: 0; }
.blog-excerpt { color: var(--fg-muted); line-height: 1.7; margin: 0; flex: 1; }
.blog-more { color: var(--accent); font-weight: 700; text-decoration: none; }
.blog-empty { max-width: 560px; margin: 0 auto; padding: 3rem; text-align: center; color: var(--fg-muted); }

.pagination-wrapper { display: flex; justify-content: center; gap: 0.8rem; margin-top: 3rem; }
.page-btn { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--border-color); background: var(--bg-secondary); text-decoration: none; color: var(--fg); font-weight: 800; }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.post { max-width: 780px; margin: 0 auto; padding: 3rem; }
.post-back { display: inline-block; color: var(--fg-muted); text-decoration: none; font-weight: 600; margin-bottom: 1.5rem; }
.post h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; margin: 0.5rem 0 2rem; letter-spacing: -0.02em; }
.post-body { font-size: 1.08rem; line-height: 1.85; }
.post-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; font-weight: 800; }
.post-body h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; font-weight: 700; }
.post-body p { margin: 0 0 1.25rem; }
.post-body ul { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--accent); }
.post-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.post-cta p { flex-basis: 100%; margin: 0 0 0.5rem; color: var(--fg-muted); }

.lead-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 980px; margin: 0 auto; align-items: start; }
.lead-points, .lead-form { padding: 2.5rem; }
.lead-points h2, .lead-form h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }
.lead-points ul { margin: 0; padding-left: 1.2rem; line-height: 1.8; }
.lead-form .form-group { margin-bottom: 1.25rem; }
.lead-form label { font-weight: 700; display: block; margin-bottom: 0.4rem; }
.lead-form input[type="email"] { width: 100%; padding: 1rem; background: var(--bg); border: 2px solid var(--border-color); border-radius: 0.75rem; color: var(--fg); font-size: 1rem; font-family: inherit; }
.lead-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.lead-consent { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 1.25rem !important; }
.lead-consent input { margin-top: 0.25rem; }
.lead-consent a { color: var(--accent); }

@media (max-width: 800px) {
    .lead-layout { grid-template-columns: 1fr; }
    .post { padding: 1.75rem; }
}
