/* ── Blog — styled to match /assets/styles.css ───────────────────── */

/* Index */
.blog-page { padding: 72px 0 100px; }
.blog-page .section-head { margin-bottom: 56px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.blog-card-link { display: block; padding: 30px; color: inherit; }
.blog-card-meta { font-size: 12.5px; color: var(--faint); margin-bottom: 12px; font-weight: 500; }
.blog-card-title { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt {
  font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.blog-empty { text-align: center; color: var(--faint); padding: 60px 0; font-size: 16px; }

.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.blog-pg-num, .blog-pg-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.blog-pg-num:hover, .blog-pg-arrow:hover { border-color: var(--accent); color: var(--accent); }
.blog-pg-current { background: var(--accent); border-color: transparent; color: #fff; }
.blog-pg-current:hover { color: #fff; }
.blog-pg-disabled { opacity: .35; pointer-events: none; }

.blog-cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px;
  background: var(--alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.blog-cta-text { display: flex; flex-direction: column; gap: 4px; }
.blog-cta-text strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.blog-cta-text span { color: var(--muted); font-size: 14.5px; font-weight: 300; }

/* Post */
.blog-post-page { padding: 56px 0 100px; }
.blog-post-page .container { max-width: 760px; }
.blog-back { display: inline-block; margin-bottom: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.blog-back:hover { color: var(--accent); }

.blog-post-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.blog-post-meta { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.blog-post-meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-title { font-size: clamp(30px, 4.5vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }

.blog-post-body { font-size: 17.5px; color: var(--muted); font-weight: 300; line-height: 1.75; }
.blog-post-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: var(--ink); margin: 40px 0 14px; letter-spacing: -0.02em; }
.blog-post-body h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin: 28px 0 10px; }
.blog-post-body p { margin-bottom: 20px; }
.blog-post-body ul { list-style: disc; padding-left: 22px; margin-bottom: 20px; display: grid; gap: 8px; }
.blog-post-body ol { list-style: decimal; padding-left: 22px; margin-bottom: 20px; display: grid; gap: 8px; }
.blog-post-body li { line-height: 1.7; }
.blog-post-body strong { color: var(--ink); font-weight: 500; }
.blog-post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 20px; }
.blog-post-body blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent);
  color: var(--ink-2); font-style: italic;
}

.blog-post-cta {
  margin-top: 48px; padding: 36px;
  background: var(--alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-align: center;
}
.blog-post-cta strong { display: block; font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em; }
.blog-post-cta p { color: var(--muted); font-weight: 300; margin-bottom: 22px; }

/* Responsive */
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-cta-strip { flex-direction: column; align-items: flex-start; padding: 22px; }
  .blog-post-cta { padding: 28px 22px; }
}
