/* Blog list and post pages. Built on site.css tokens. */
.post-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.post-title { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin: 0 0 10px; text-wrap: balance; }
.post-meta { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.post-back { margin: 0 0 16px; font-size: 16px; }
.post-back a { color: var(--muted); }
.post-cover { display: block; width: 100%; height: auto; border-radius: 6px; margin: 0 0 32px; }
.post-body { font-size: 19px; line-height: 1.65; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 1.6em 0 0.5em; }
.post-body h2 { font-size: 30px; }
.post-body h3 { font-size: 24px; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); color: var(--muted); }
.post-body pre { background: var(--grey); padding: 16px; overflow-x: auto; border-radius: 6px; font-size: 15px; }
.post-body code { background: var(--grey); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
.post-body pre code { background: none; padding: 0; }
.post-body a { color: var(--blue); }
.post-draft-banner { background: #fff3cd; border: 1px solid #e0c36a; color: #5c4700; padding: 12px 16px; border-radius: 6px; font-weight: 700; }
.post-staff-edit { margin-top: 40px; }
.post-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.post-card:not(:has(.post-card-cover)) { grid-template-columns: minmax(0, 1fr); }
.post-card-cover img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 6px; }
.post-card-title { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover, .post-card-title a:focus-visible { text-decoration: underline; }
.post-card-summary { margin: 0; }
.post-card .post-meta { margin-bottom: 10px; }
.blog-empty { color: var(--muted); font-size: 19px; }
.blog-pager { display: flex; gap: 12px; justify-content: space-between; margin-top: 32px; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
}
