/* The blog (web/site/blog.mjs): the index of posts and one post, at reading width.
   Every size, corner and colour is a design.css token. */

.blog { max-width: var(--width-read); }

/* The index: one post per row, newest first. */
.blog .posts { list-style: none; padding: 0; margin: 32px 0; }
.blog .posts li { padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.blog .posts li:last-child { border-bottom: 1px solid var(--line); }
.blog .posts a { font: 600 var(--text-22)/1.25 var(--display); color: var(--ink); text-decoration: none; }
.blog .posts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog .posts time { display: block; font-size: var(--text-13); color: var(--muted); margin: 8px 0 4px; }
.blog .posts p { margin: 0; color: var(--muted); }
.blog .empty { margin: 32px 0; color: var(--muted); }

/* One post. */
.post .back { font-size: var(--text-13); margin: 0 0 16px; }
.post .back a { color: var(--muted); }
.post .byline { font-size: var(--text-14); color: var(--muted); margin: 0 0 32px; }
.post .prose { font-size: var(--text-16); }
.post .prose h2 { font-size: var(--text-30); }
.post .prose h3 { font-size: var(--text-18); margin-top: 1.4em; }
.post .prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-12); }
.post .prose blockquote { margin: 0 0 1em; padding: 0 0 0 16px; border-left: 2px solid var(--line); color: var(--muted); }
.post .prose code { font-size: var(--text-14); background: var(--sunk); border-radius: var(--radius-8); padding: 0 4px; }
.post .prose pre { overflow-x: auto; background: var(--sunk); border-radius: var(--radius-12); padding: 16px; margin: 0 0 1em; }
.post .prose pre code { background: none; padding: 0; }
.post .cta-row { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
