/* Blog: plain and editorial, matches the About and legal pages. */

/* ---------- Index ---------- */
.blog-wrap { padding: 56px 0 96px; }
.blog-inner { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.blog-head h1 { margin: 0; }
.blog-head p { color: var(--text-dim); margin-top: 12px; max-width: 560px; line-height: 1.7; }

.blog-list { margin-top: 36px; }
.blog-card { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.blog-card:first-child { border-top: 0; padding-top: 8px; }
.blog-card.no-thumb { grid-template-columns: 1fr; }
.blog-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--surface-2); display: block; }
.blog-card-date { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }
.blog-card-title { font-size: 21px; font-weight: 560; color: var(--text); letter-spacing: -0.015em; margin: 7px 0 8px; line-height: 1.25; transition: color .16s; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-ex { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; margin: 0; }
.blog-card-more { display: inline-block; margin-top: 11px; color: var(--accent); font-size: 13.5px; font-weight: 560; }

.blog-empty { margin-top: 44px; padding: 40px 0; border-top: 1px solid var(--rule); }
.blog-empty h3 { margin: 0 0 6px; font-size: 18px; }

/* ---------- Single post ---------- */
.post-wrap { padding: 44px 0 96px; }
.post-inner { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.post-back { color: var(--text-dim); font-size: 13.5px; text-decoration: none; }
.post-back:hover { color: var(--text); }
.post-hero { width: 100%; max-height: 440px; object-fit: cover; border-radius: 14px; display: block; margin: 22px 0 0; }
.post-title { font-size: clamp(28px, 4.2vw, 42px); font-weight: 560; letter-spacing: -0.022em; line-height: 1.12; margin: 26px 0 10px; }
.post-meta { color: var(--text-faint); font-size: 13.5px; margin: 0; }

.post-body { margin-top: 28px; color: #c8ccd3; font-size: 17px; line-height: 1.85; }
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 18px; }
.post-body h2 { color: var(--text); font-size: 23px; font-weight: 560; letter-spacing: -0.01em; margin: 34px 0 12px; }
.post-body h3 { color: var(--text); font-size: 18.5px; font-weight: 600; margin: 26px 0 10px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; display: block; }
.post-body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--rule); color: var(--text-dim); }
.post-body code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }

.post-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }

@media (max-width: 620px) {
  .blog-card { grid-template-columns: 1fr; gap: 12px; }
  .blog-thumb { aspect-ratio: 16 / 9; }
}
