/* ═══════════════════════════════════════════════════════════════════════════
   blog.css — article typography for blog/ (built by tools/build_blog.py).

   Blog pages wear outline.css first, which gives them the topnav, the brand
   mark, the page shell and dark mode (the html:not([data-theme="light"])
   filter at the bottom of that file). This adds only what an article needs
   that an outline does not: a measured column, prose headings, lists without
   the outline's dot rows, code blocks, and the post list on the index.
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-shell { justify-content: center; }
.blog-content {
  max-width: 720px; width: 100%;
  font-family: 'Georgia', serif; font-size: 16px; line-height: 1.7;
}

.blog-home { font-weight: 700; }

/* ── post header ─────────────────────────────────────────────────────────── */
.post-head { margin: 8px 0 28px; }
.post-title {
  font-family: 'Georgia', serif; font-size: 30px; line-height: 1.2;
  font-weight: 700; color: #0d2b5e; margin: 0 0 10px; letter-spacing: -0.01em;
}
.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 12.5px; color: #6b7280; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px;
}
.post-dot { color: #c8d3e8; }
.post-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #0d2b5e; background: #eef2fa; border: 1px solid #d5deef;
  border-radius: 20px; padding: 1px 8px;
}
.blog-blurb { color: #4a4a48; margin: 0; }
.blog-blurb a { color: #0d2b5e; }

/* ── article body ────────────────────────────────────────────────────────── */
.post-body h2 {
  font-size: 21px; margin: 40px 0 12px; padding: 0; border: 0;
  color: #0d2b5e; font-family: 'Georgia', serif;
}
.post-body h3 { font-size: 17px; margin: 28px 0 8px; color: #1a1a1a; }
.post-body p { margin: 0 0 16px; }
.post-body a { color: #0d2b5e; text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 26px; }
.post-body li { margin: 4px 0; list-style: revert; }
.post-body blockquote {
  margin: 0 0 16px; padding: 4px 18px; border-left: 3px solid #c8d3e8;
  color: #4a4a48; background: #f7f9fd; border-radius: 0 8px 8px 0;
}
.post-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 18px auto; }
.post-body figure { margin: 18px 0; }
.post-body figcaption, .post-body img + em { font-size: 13px; color: #6b7280; text-align: center; display: block; }
.post-body hr { border: 0; border-top: 1px solid #e3e9f4; margin: 32px 0; }
.post-body table { border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; width: 100%; }
.post-body th, .post-body td { border: 1px solid #e3e9f4; padding: 6px 10px; text-align: left; vertical-align: top; }
.post-body th { background: #f7f9fd; font-weight: 700; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; background: #f3f5fa; border: 1px solid #e3e9f4;
  border-radius: 4px; padding: 1px 5px;
}
.post-body pre {
  background: #f7f9fd; border: 1px solid #e3e9f4; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; margin: 0 0 18px; line-height: 1.5;
}
.post-body pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }

.post-foot {
  margin-top: 44px; padding-top: 16px; border-top: 1px solid #e3e9f4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13.5px;
}
.post-foot a { color: #0d2b5e; text-decoration: none; }
.post-foot a:hover { text-decoration: underline; }

/* ── index ───────────────────────────────────────────────────────────────── */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 18px 0; border-top: 1px solid #e3e9f4;
}
.post-item:first-child { border-top: 0; }
.post-item-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 12.5px; color: #6b7280; padding-top: 4px;
}
.post-item-title {
  font-size: 20px; font-weight: 700; color: #0d2b5e; text-decoration: none; line-height: 1.3;
}
.post-item-title:hover { text-decoration: underline; }
.post-item-summary { margin: 6px 0 0; color: #4a4a48; font-size: 15px; }
.post-item-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .blog-content { padding: 20px 18px 48px; font-size: 15.5px; }
  .post-title { font-size: 25px; }
  .post-item { grid-template-columns: 1fr; gap: 4px; }
}
