/* Editorial reading layout using the site's existing type and color tokens.
   Design variance 3/10, motion 1/10, density 5/10: compact index, calm articles. */
.skip-link { position: absolute; top: -100px; left: 20px; padding: 10px 16px; background: var(--paper); z-index: 2; }
.skip-link:focus { top: 10px; }
.blog-index { max-width: 900px; margin: 0 auto; padding: 36px 0 48px; }
.blog-heading { margin-bottom: 30px; }
.blog-heading h1 { margin: 0; font-size: 2rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.3; }
.blog-heading p { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.post-list { display: grid; gap: 28px; }
.post-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 28px; }
.post-info { min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-row h2 { margin: 6px 0; font-size: 1.125rem; line-height: 1.55; font-weight: 650; letter-spacing: -.015em; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { color: var(--accent); text-decoration: underline; }
.post-row p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.post-art { display: block; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.post-art img { display: block; width: 100%; height: 82px; object-fit: contain; }
.blog-footer { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.blog-footer a { margin-inline: 4px; }
.article-layout { max-width: 760px; margin: 0 auto; padding: 28px 0 56px; }
.back-link { color: var(--muted); font-size: .875rem; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.article-header { margin: 24px 0 30px; }
.article-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 650; line-height: 1.5; letter-spacing: -.025em; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.article-toc { margin: 0 0 30px; padding: 12px 16px; background: var(--soft); border-radius: var(--radius); font-size: .9375rem; }
.article-toc summary { cursor: pointer; font-weight: 600; }
.article-toc ol { margin: 12px 0 0; padding-left: 24px; }
.article-toc li { margin: 6px 0; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.post-body { font-size: 1.0625rem; line-height: 1.95; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 { margin: 2em 0 .8em; font-size: 1.4rem; font-weight: 650; line-height: 1.55; scroll-margin-top: 24px; }
.post-body h3 { margin: 1.6em 0 .7em; font-size: 1.15rem; line-height: 1.6; scroll-margin-top: 24px; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.post-body li { margin-bottom: .5em; }
.post-body a { color: var(--accent); }
.post-body figure { margin: 28px 0; }
.post-body figure a { display: block; }
.post-body img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; border-radius: 3px; background: #fff; }
.post-body figcaption { color: var(--muted); font-size: .875rem; line-height: 1.7; margin-top: 12px; }
.post-body math { font-size: 1em; }
.post-body math[display="block"] { display: block math; max-width: 100%; overflow-x: auto; padding: 14px 0; margin: 20px 0; }
.post-body pre { overflow-x: auto; padding: 16px; background: var(--soft); border-radius: var(--radius); font-size: .875rem; }
.article-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.article-footer p { margin: 0 0 14px; }
@media (max-width: 600px) {
    .blog-index { padding-top: 24px; }
    .blog-heading { margin-bottom: 26px; }
    .post-list { gap: 26px; }
    .post-row { grid-template-columns: 1fr; }
    .post-art { display: none; }
    .post-row h2 { font-size: 1.0625rem; }
    .post-meta { gap: 4px 10px; font-size: .75rem; }
    .post-row p { font-size: .875rem; }
    .article-layout { padding-top: 24px; }
    .article-header { margin-top: 22px; }
    .article-header h1 { font-size: 1.6rem; }
    .post-body { font-size: 1rem; line-height: 1.9; }
    .post-body h2 { font-size: 1.25rem; }
}
@media (max-width: 360px) {
    .post-row { grid-template-columns: 1fr; }
    .post-art { display: none; }
}
