/* Blog pages (generated by scripts/build-pages.js). Colours and fonts come from style.css. */

/* Language switch as links: each article exists in the four languages. */
.langs a { padding: 6px 7px; color: var(--ink-3); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.blog-main { padding-block: clamp(32px, 6vw, 72px) var(--section); }
.blog-head { margin-bottom: 32px; }
.blog-head h1, .post-head h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; max-width: 20em; }

.post { max-width: calc(720px + var(--gutter) * 2); }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post-head { padding-bottom: 24px; border-bottom: 1.5px solid var(--ink); margin-bottom: 32px; }
.post-lede { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.post-meta { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { margin-top: 2em; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.post-body h3 { margin-top: 1.6em; font-size: 19px; line-height: 1.3; }
.post-body h2 + *, .post-body h3 + * { margin-top: 0.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--ink-3); }
.post-body li + li { margin-top: 0.45em; }
.post-body a { color: var(--blue); text-underline-offset: 3px; }
.post-body strong { font-weight: 700; }
.post-body blockquote { margin-left: 0; padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.post-body .table-scroll { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 480px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post-body th { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink); }
.post-body .note { padding: 14px 18px; background: var(--mark); border-radius: var(--r-sm); font-size: 16px; }

.post-cta { margin-top: 48px; padding: 24px; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--card); display: grid; gap: 10px; justify-items: start; }
.post-cta-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.post-cta p { color: var(--ink-2); max-width: 36em; }
.post-cta .btn { margin-top: 6px; }

.post-more { margin-top: var(--section); max-width: calc(720px + var(--gutter) * 2); }
.post-more h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: grid; gap: 6px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover .post-list-title { text-decoration: underline; text-underline-offset: 4px; }
.post-list-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.post-list-desc { color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 40em; }
.post-list-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.post-list-index { max-width: 820px; }
.post-list-index .post-list-title { font-size: 24px; }
.post-back { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .post-body { font-size: 17px; }
  .post-lede { font-size: 17.5px; }
  .post-cta { padding: 20px; }
}
