/* The blog (src/site/blog.ts; dev/plan.md, section 18), on the detail pages' template
   (detail.css): a post's long title, its date, the index's list, and a post's prose, which
   its Markdown writes with no class of its own (src/domain/post-markdown.ts). Colours,
   radii and type are the design system's tokens, so both themes follow. */
.i-title.is-long { max-width: 26ch; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; }
.b-meta { margin: 0; font-size: 14px; color: var(--text-3); }
.b-meta a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* Writers (decided on 2026-11-12): a photograph, round; the box under a post; a writer's page. */
.b-photo { flex: none; display: block; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.b-author { max-width: 68ch; margin-top: 40px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; color: var(--text-2); }
.b-author-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.b-author-text p { margin: 0; }
.b-author-name { font-weight: 600; color: var(--text); }
.b-author-name a { color: var(--text); text-decoration: none; }
.b-author-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-author-role { font-size: 14px; color: var(--text-3); }
.b-profile { max-width: 68ch; display: flex; gap: 20px; align-items: flex-start; }
.b-profile-text { min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.b-profile-text p { margin: 0; }
.b-profile-link { font-size: 14px; }
.b-profile-posts { margin: 48px 0 20px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }

.b-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; max-width: 68ch; }
.b-item { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.b-item:first-child { padding-top: 0; border-top: 0; }
.b-date { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.b-item-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.b-item-title a { color: var(--text); text-decoration: none; }
.b-item-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-item p { margin: 0; color: var(--text-2); }
.b-empty { margin: 0; color: var(--text-2); }
/* After the post or the list; the detail pages' column sets its paragraphs' margins to none. */
.i-column > .b-feed, .i-column > .b-back { margin: 40px 0 0; font-size: 14px; }
.i-column > .b-preview-note { margin: 0 0 28px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-8); background: var(--surface); font-size: 14px; color: var(--text-2); }

/* A post's prose. */
.b-prose { max-width: 68ch; font-size: 16.5px; line-height: 1.7; color: var(--text-2); overflow-wrap: break-word; }
.b-prose > :first-child { margin-top: 0; }
.b-prose > :last-child { margin-bottom: 0; }
.b-prose p, .b-prose ul, .b-prose ol, .b-prose blockquote, .b-prose pre, .b-prose table { margin: 0 0 1.1em; }
.b-prose h2, .b-prose h3, .b-prose h4 { margin: 1.9em 0 0.6em; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.b-prose h2 { font-size: 26px; }
.b-prose h3 { font-size: 21px; }
.b-prose h4 { font-size: 17.5px; }
.b-prose strong { font-weight: 600; color: var(--text); }
.b-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.b-prose a:hover { text-decoration-color: currentColor; }
.b-prose a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.b-prose ul, .b-prose ol { padding-left: 1.4em; }
.b-prose li + li { margin-top: 0.35em; }
.b-prose li > ul, .b-prose li > ol { margin: 0.35em 0 0; }
.b-prose li > p { margin: 0 0 0.5em; }
.b-prose blockquote { padding: 2px 0 2px 18px; border-left: 3px solid var(--line-strong); }
.b-prose blockquote > :last-child { margin-bottom: 0; }
.b-prose code { padding: 1px 5px; border: 1px solid var(--line); border-radius: var(--radius-4); background: var(--code); font-family: var(--font-mono); font-size: 0.86em; }
.b-prose pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--code); font-size: 13.5px; line-height: 1.6; color: var(--text); }
.b-prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.b-prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.b-prose img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius-8); }
.b-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.b-prose th, .b-prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.b-prose th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.b-prose td { background: var(--surface); }
.b-prose del { color: var(--text-3); }
