/* Blog reading surfaces use the shared site palette and remain usable without JavaScript. */
.blog-page main { width: min(780px, calc(100% - 28px)); }
.blog-page .masthead { width: 100%; padding-top: 34px; }
.blog-archive, .blog-content {
  color: var(--text);
  overflow-wrap: anywhere;
}
.blog-post-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.blog-post-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--surface-radius); background: var(--panel); box-shadow: var(--shadow-raised); }
.blog-post-item h2 { margin: 5px 0 8px; font: 600 clamp(1.2rem, 3vw, 1.55rem)/1.25 Georgia, serif; }
.blog-post-item h2 a { color: var(--text); text-decoration: none; }
.blog-post-item h2 a:hover { color: var(--accent); }
.blog-post-date, .blog-post-summary, .blog-empty { color: var(--muted); }
.blog-post-item p { margin: 8px 0; }
.blog-post-item .blog-post-pdf { font-size: .92rem; }
.blog-content { max-width: 72ch; margin: 26px auto 48px; line-height: 1.75; }
.blog-content :where(img, video, svg) { display: block; max-width: 100%; height: auto; }
.blog-content figure { max-width: 100%; margin: 1.8rem 0; }
.blog-content figcaption { color: var(--muted); font-size: .9rem; }
.blog-content pre, .blog-content .math, .blog-content [role="math"] { max-width: 100%; overflow-x: auto; }
.blog-content pre { padding: 1rem; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--panel); white-space: pre; }
.blog-content :not(pre) > code { overflow-wrap: anywhere; }
.blog-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.blog-content th, .blog-content td { min-width: 7ch; padding: .45rem .65rem; border: 1px solid var(--line); text-align: start; }
.blog-content th { background: var(--panel-2); }
.blog-home .blog-post-list { gap: 0; }
.blog-home .blog-post-item { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.blog-home .blog-post-item h2 { font-size: 1.2rem; }
.blog-home .blog-post-summary { margin-bottom: 0; }
.blog-home .blog-empty { margin: 0; }
@media (max-width: 600px) {
  .blog-post-item { padding: 17px; }
  .blog-content { font-size: .98rem; }
}
