/* Blog pages only (blog.html, blog/*.html). Loaded after site.css and uses its tokens:
   warm paper, black ink, one yellow, Schibsted Grotesk, ruled lines. No cards, pills or gradients. */

/* ---------- index and topic pages ---------- */
.blog-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.blog-hero h1 { max-width: 16ch; }
.blog-sec { padding-top: 0; border-top: 0; }

/* the category bar: a ruled strip of plain links, the current one underlined like the main nav */
.cat-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 4px; font: 600 .95rem/1.3 var(--sans); }
.cat-bar > span { font-weight: 400; color: var(--ink-2); margin-right: 8px; }
.cat-bar a { color: var(--ink); text-decoration: none; padding: 6px 10px 6px 0; margin-right: 8px; white-space: nowrap; }
.cat-bar a + a { border-left: 1px solid var(--rule); padding-left: 14px; }
.cat-bar a small { font: 400 .85rem/1 var(--sans); color: var(--ink-2); margin-left: 6px; font-variant-numeric: tabular-nums; }
.cat-bar a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cat-bar a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 520px) { .cat-bar > span { flex-basis: 100%; } .cat-bar a + a { border-left: 0; padding-left: 0; } }

/* the list of posts: ruled entries, date in the margin */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 24px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.post-list time { font: 600 .9rem/1.4 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-t { font: 700 clamp(1.2rem, 2.2vw, 1.55rem)/1.22 var(--head); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.pl-t:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .16em; color: var(--ink); }
.post-list p { margin: 8px 0 8px; color: var(--ink-2); font-size: 1.02rem; max-width: 70ch; }
.post-list small { display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 .9rem/1.4 var(--sans); color: var(--ink-2); }
.post-list small a { color: var(--ink); font-weight: 600; }
.post-list small span::before { content: '\00b7'; margin: 0 10px; color: var(--ink-3); }
@media (max-width: 600px) { .post-list li { grid-template-columns: minmax(0, 1fr); } }
.blog-feed { margin: 18px 0 0; font: 400 .92rem/1.5 var(--sans); color: var(--ink-2); max-width: none; }
.blog-feed a { color: var(--ink); }

/* ---------- a post ---------- */
.post-head { padding-bottom: clamp(24px, 3.5vw, 40px); border-bottom: 1px solid var(--ink); }
.post-head .wrap { display: block; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); max-width: 20ch; margin-bottom: 18px; }
.post-head .lede { max-width: 56ch; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 22px 0 0; font: 400 .92rem/1.4 var(--sans); color: var(--ink-2); max-width: none; }
.post-meta time { color: var(--ink); font-weight: 600; }
.post-meta span::before { content: '\00b7'; margin: 0 10px; color: var(--ink-3); }

.post-body { max-width: 68ch; padding: clamp(28px, 4vw, 48px) 0 8px; font-size: 1.08rem; line-height: 1.65; }
.post-body > :first-child { margin-top: 0; }
.post-body p { max-width: none; margin: 0 0 1.05em; }
.post-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.15; margin: 1.9em 0 .55em; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 30ch; }
.post-body h3 { font-size: 1.18rem; margin: 1.5em 0 .4em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-body li { margin: 0 0 .5em; padding-left: .2em; }
.post-body li::marker { color: var(--ink-2); }
.post-body a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { font-weight: 700; }
.post-body code { font: 500 .92em/1 var(--sans); background: var(--paper-2); padding: 1px 5px; border: 1px solid var(--rule); }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); }
.post-body blockquote p { margin: 0; font-weight: 500; }
.post-plate { margin: 1.6em 0 1.8em; }
.post-plate .slot { max-height: 380px; }

.post-sources { max-width: 68ch; margin: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); padding-top: 14px; border-top: 2px solid var(--ink); }
.post-sources h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-sources > p { font: 400 .95rem/1.5 var(--sans); color: var(--ink-2); }
.post-sources ol { margin: 0; padding: 0; list-style: none; counter-reset: src; }
.post-sources li { counter-increment: src; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--rule); font: 400 .98rem/1.45 var(--sans); }
.post-sources li::before { content: counter(src); grid-row: span 2; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post-sources li a { color: var(--ink); overflow-wrap: anywhere; }
.post-sources li small { color: var(--ink-2); font-size: .86rem; }
.blog-more .sec-head { margin-bottom: 18px; }
.blog-more .post-list { border-top: 2px solid var(--ink); }
