/* The blog (/blog, /blog/<slug>) — on top of site.css: same surfaces, hairlines and the one teal accent. */

/* ---------- list ---------- */
.bl-head { padding: 72px 24px 30px; }
.bl-head h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; }
.bl-head p { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 60ch; margin-top: 14px; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.bl-tags a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px;
    font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.bl-tags a span { font: 12px var(--mono); color: var(--faint); }
.bl-tags a:hover { color: var(--text); background: var(--bg-1); }
.bl-tags a.on { color: var(--bright); background: var(--bg-2); border-color: rgba(47,181,160,.45); }

.bc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); overflow: hidden;
    text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease); }
.bc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bc-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.bc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.bc:hover .bc-cover img { transform: scale(1.025); }
.bc-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.bc-fallback .ico { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
.bc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bc-tag { font-size: 13px; color: var(--accent); }
.bc-title { font-size: 19px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; color: var(--bright); }
.bc-ex { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--faint); }
.bc.feature { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 22px; }
.bc.feature .bc-cover { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 340px; }
.bc.feature .bc-body { justify-content: center; padding: 36px 40px; gap: 12px; }
.bc.feature .bc-title { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
.bc.feature .bc-ex { font-size: 16px; -webkit-line-clamp: 4; }
.bc.feature .bc-meta { margin-top: 6px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bl-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 90px 24px; color: var(--muted); }
.bl-empty > i { font-size: 34px; color: var(--faint); margin-bottom: 6px; }
.bl-empty h1, .bl-empty h2 { font-size: 26px; color: var(--bright); }
.bl-empty .btn { margin-top: 12px; }

/* ---------- one post ---------- */
.bp-draft { margin-top: 24px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); color: var(--muted); font-size: 14px; }
.bp-draft i { color: var(--accent); margin-right: 6px; }
.bp-draft a { color: var(--accent); }
.bp-head { padding-top: 64px; padding-bottom: 30px; }
.bp-crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.bp-crumbs a { color: var(--muted); text-decoration: none; }
.bp-crumbs a:hover { color: var(--accent); }
.bp-crumbs i { font-size: 9px; color: var(--faint); }
.bp-head h1 { margin-top: 18px; font-size: 46px; line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; }
.bp-lead { color: var(--muted); font-size: 19px; line-height: 1.65; max-width: 62ch; margin-top: 18px; }
.bp-cover img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.bp-grid { padding-top: 48px; }
.bp-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.bp-grid.no-toc .bp-body { margin: 0 auto; }

.bp-body h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 100px; }
.bp-body h2::before { content: none; }
.bp-body > h2:first-child, .bp-body > .toc-mobile + h2 { margin-top: 0; }
.bp-body h3 { font-size: 19px; font-weight: 600; color: var(--bright); margin: 32px 0 10px; scroll-margin-top: 100px; }
.bp-body h4 { font-size: 16px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.bp-body p + p, .bp-body ul + p, .bp-body ol + p { margin-top: 16px; }
.bp-body ul, .bp-body ol { margin: 16px 0; }
.bp-body ol { padding: 0; list-style: none; counter-reset: li; }
.bp-body ol li { counter-increment: li; padding-left: 30px; }
.bp-body ol li::before { content: counter(li); top: .2em; left: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--bg-3);
    font: 500 12px/21px var(--mono); color: var(--text); text-align: center; }
.bp-body em { color: var(--text); }
.bp-body blockquote { margin: 26px 0; padding: 16px 20px; border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-1); }
.bp-body blockquote p, .bp-body blockquote li { color: var(--text); }
.bp-body blockquote > :first-child { margin-top: 0; }
.bp-body blockquote > :last-child { margin-bottom: 0; }
.bp-body figure { margin: 30px 0; }
.bp-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.bp-body figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--faint); }
.bp-body pre { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); overflow-x: auto; }
.bp-body pre code { padding: 0; border: 0; background: none; font-size: 13.5px; line-height: 1.6; }
.bp-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.bp-table { margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bp-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--faint); background: var(--bg-1); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bp-table td { padding: 12px 16px; color: #bfc0c4; line-height: 1.55; vertical-align: top; }
.bp-table tr + tr td { border-top: 1px solid var(--line); }
.bp-table td:first-child { color: var(--text); }

.bp-cta { display: flex; align-items: center; gap: 16px; margin: 30px 0; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-1); }
.bp-cta .ico { width: 44px; height: 44px; font-size: 19px; background: var(--b-bg, var(--bg-3)); color: var(--b-fg, var(--bright)); border: 0; }
.bp-cta > div { flex: 1; min-width: 0; }
.bp-cta b { display: block; color: var(--bright); font-size: 16px; font-weight: 600; }
.bp-cta small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bp-cta .btn { flex: none; }
.bp-body .bp-cta .btn-primary, .bp-body .bp-cta .btn-primary:hover { color: var(--accent-ink); text-decoration: none; }
.bp-cta.big { margin-top: 52px; padding: 24px; }

.bp-more { margin-top: 48px; padding-top: 56px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.bp-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.bp-more-head h2 { font-size: 24px; letter-spacing: -0.015em; }
.bp-more-head a { color: var(--accent); font-size: 14px; text-decoration: none; }

@media (max-width: 980px) {
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bc.feature { grid-template-columns: 1fr; }
    .bc.feature .bc-cover { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 9; }
    .bc.feature .bc-body { padding: 24px; }
    .bc.feature .bc-title { font-size: 24px; }
}
@media (max-width: 640px) {
    .bl-head { padding-top: 44px; }
    .bl-head h1 { font-size: 36px; }
    .bl-head p { font-size: 16px; }
    .bl-grid { grid-template-columns: 1fr; }
    .bp-head { padding-top: 40px; }
    .bp-head h1 { font-size: 32px; }
    .bp-lead { font-size: 17px; }
    .bp-cover img { border-radius: 12px; }
    .bp-grid { padding-top: 32px; }
    .bp-body h2 { font-size: 22px; margin-top: 40px; }
    .bp-cta { flex-wrap: wrap; }
    .bp-cta .btn { width: 100%; justify-content: center; }
}
