
/* ==== the blog: one reading column, the index and the article alike, so moving between them never
   shifts the text. Every block (head, answer, prose, tables, questions, sources, share bars) shares
   its edges; 720px holds 18px prose at about 78 characters a line (widened from api's 640px on the
   owner's read that the column felt tight; the posts are long and carry tables). ==== */
.bl-col { width: 100%; max-width: calc(720px + 2 * var(--gut)); margin-inline: auto; padding: 104px var(--gut) 144px; overflow-wrap: break-word; }
.bl-article { padding-bottom: 32px; }

/* ---- the dateline: tag, date, read time (and the byline on the article) ---- */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 400 12px/1.5 var(--mono); letter-spacing: 0; color: var(--t4); }
.bl-tag { text-transform: uppercase; letter-spacing: .06em; color: var(--t2); }
/* the date, then units that each carry their own "·": a wrap falls between units, never after a "·" */
.bl-dl { display: inline-flex; flex-wrap: wrap; column-gap: .55em; }
.bl-dl > * { white-space: nowrap; }
/* a question-then-answer title breaks after its "?" */
.bl-tl { display: block; }
.bl-draft { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--l2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }

/* ---- the index: eyebrow, title, lede, then the posts as ruled rows ---- */
.bl-head { padding-bottom: 64px; }
.bl-eyebrow { margin-bottom: 20px; }
.bl-h1 { max-width: 13ch; }
.bl-lede { margin-top: 24px; max-width: 46ch; font-size: 19px; line-height: 1.55; letter-spacing: -.012em; color: var(--t3); text-wrap: pretty; }
.bl-posts { border-top: 1px solid var(--rule); }
.bl-row { position: relative; padding: 30px 0 28px; border-bottom: 1px solid var(--ls); }
.bl-row-t { margin-top: 12px; }
.bl-row-t a { transition: color .16s var(--ease); }
/* the whole row is the link: the title's link reaches over it, and its focus ring draws round the row */
.bl-row-t a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.bl-row-t a:focus-visible { outline: 0; }
.bl-row-t a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-row:hover .bl-row-t a { color: var(--accent-text); }
.bl-dek { margin-top: 10px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--t3); text-wrap: pretty; }
.bl-read { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--t1); }
.bl-read .ar { transition: transform .16s var(--ease); }
.bl-row:hover .bl-read .ar { transform: translateX(2px); }
.bl-empty { padding: 32px 0; border-top: 1px solid var(--rule); color: var(--t4); }

/* ---- the article head: the way back, the dateline, the title, the dek, the direct answer ---- */
.bl-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: -8px 0 24px; font-size: 14px; font-weight: 500; color: var(--t3); transition: color .1s var(--ease); }
.bl-back .ar { transform: rotate(180deg); transition: transform .16s var(--ease); }
.bl-back:hover { color: var(--t1); }
.bl-back:hover .ar { transform: rotate(180deg) translateX(2px); }
.bl-title { margin-top: 16px; }
.bl-standfirst { margin-top: 20px; font-size: 20px; line-height: 1.5; letter-spacing: -.012em; color: var(--t3); text-wrap: pretty; }
/* the answer: under the engraved double rule (near-ink over a hairline), the post's lead */
.bl-answer { position: relative; margin-top: 36px; padding-top: 24px; }
.bl-answer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ls); }
.bl-answer-t { margin-top: 10px; font-size: 19px; line-height: 1.6; letter-spacing: -.01em; color: var(--t1); text-wrap: pretty; }

/* ---- the share bar: under the head between hairlines, and again at the end ---- */
.bl-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.bl-share-top { margin: 32px 0 48px; padding: 12px 0; border-block: 1px solid var(--ls); }
.bl-share-end { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ls); }
.bl-share-label { font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t4); }
.bl-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-sb { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9999px; cursor: pointer;
  background: rgba(255,255,255,.45); color: var(--t2); box-shadow: inset 0 0 0 1px var(--l2), 0 1px 1px rgba(33,30,38,.04);
  transition: background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease); }
.bl-sb:hover { background: rgba(255,255,255,.85); color: var(--t1); box-shadow: inset 0 0 0 1px rgba(33,30,38,.24), 0 1px 1px rgba(33,30,38,.05); }
.bl-sb:active { transform: scale(.96); }
.bl-sb svg { grid-area: 1 / 1; width: 16px; height: 16px; }
.bl-i-brand { fill: currentColor; }
.bl-i-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .16s var(--ease), transform .2s var(--ease-fig); }
.bl-sb .bl-i-check { opacity: 0; transform: scale(.6); }
.bl-sb.bl-done { color: var(--accent-text); }
.bl-sb.bl-done .bl-i-copy { opacity: 0; transform: scale(.6); }
.bl-sb.bl-done .bl-i-check { opacity: 1; transform: none; }

/* ---- prose: the body, rendered from the post's Markdown; every gap is one margin-top ---- */
.bl-prose { font-size: 18px; line-height: 1.7; letter-spacing: -.008em; color: var(--t2); }
.bl-prose > * + * { margin-top: 1.25em; }
.bl-prose > :where(blockquote, hr, .bl-table), .bl-prose > :where(blockquote, hr, .bl-table) + * { margin-top: 2em; }
.bl-prose > * + h2 { margin-top: 2.2em; }
.bl-prose > * + h3 { margin-top: 1.8em; }
.bl-prose > h2 + *, .bl-prose > h3 + * { margin-top: .6em; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose :is(h2, h3), .bl-faq :is(h2, h3), .bl-sources h2 { scroll-margin-top: calc(var(--head) + 24px); color: var(--t1); font-weight: 600; text-wrap: balance; }
/* section heads on the kit's .h3 scale; the prose's own h3 one step under */
.bl-prose h2, .bl-faq h2, .bl-sources h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.bl-prose h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.014em; }
.bl-prose :is(h2, h3) a:hover, .bl-faq :is(h2, h3) a:hover, .bl-sources h2 a:hover { color: var(--accent-text); }
.bl-prose strong { font-weight: 600; color: var(--t1); }
.bl-prose :is(p, li, blockquote, td) a, .bl-src a { color: var(--t1); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--ls2);
  transition: color .1s var(--ease), text-decoration-color .1s var(--ease); }
.bl-prose :is(p, li, blockquote, td) a:hover, .bl-src a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.bl-prose ul { list-style: disc; padding-left: 1.25em; }
/* room for a two-digit mono ordinal ("10.") inside the column's edge */
.bl-prose ol { list-style: decimal; padding-left: 2em; }
.bl-prose li { padding-left: .3em; }
.bl-prose li + li { margin-top: .5em; }
.bl-prose ul li::marker { color: var(--t4); }
.bl-prose ol li::marker { font: 400 .82em var(--mono); color: var(--t4); }
/* a quote: a short engraved rule over it, set larger in ink (no side stripe) */
.bl-prose blockquote { position: relative; padding-top: 24px; font-size: 21px; line-height: 1.45; letter-spacing: -.016em; font-weight: 500; color: var(--t1); text-wrap: pretty; }
.bl-prose blockquote::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ls); }
.bl-prose blockquote p + p { margin-top: .8em; }
.bl-prose hr { height: 1px; border: 0; background: var(--ls); }

/* ---- tables: the column's width, 1px rules, tabular figures. A table never widens the page: an
   overwide one scrolls inside its own wrapper. On a phone a record table (three columns or more)
   stacks each row into a ruled entry (the first cell its title, the rest label and value); a
   two-column table stays a table, since its columns may be parallel lists ---- */
.bl-table { overflow-x: auto; overscroll-behavior-x: contain; }
.bl-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.bl-table th { padding: 10px 20px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: bottom; font-size: 13.5px; font-weight: 600; color: var(--t1); }
.bl-table td { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--ls); vertical-align: top; color: var(--t2); }
.bl-table :is(th, td):last-child { padding-right: 0; }
.bl-table .bl-al-r { text-align: right; }
.bl-table .bl-al-c { text-align: center; }
.bl-table td strong { font-weight: 600; color: var(--t1); }
/* a record table (three columns or more): its first cell keys the row */
.bl-table-stack td:first-child { font-weight: 500; color: var(--t1); }

/* ---- the end of a post: questions, then sources ---- */
.bl-faq { margin-top: 72px; }
.bl-faq-list { margin-top: 20px; border-top: 1px solid var(--rule); }
.bl-qa { padding: 22px 0 24px; border-bottom: 1px solid var(--ls); }
.bl-qa h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.012em; }
.bl-qa p { margin-top: 8px; font-size: 16.5px; line-height: 1.65; color: var(--t3); text-wrap: pretty; }
.bl-sources { margin-top: 56px; }
.bl-src { margin-top: 16px; padding-left: 2.1em; list-style: decimal; font-size: 15px; line-height: 1.55; color: var(--t3); }
.bl-src li { padding-left: .3em; overflow-wrap: anywhere; }
.bl-src li + li { margin-top: 10px; }
.bl-src li::marker { font: 400 .82em var(--mono); color: var(--t4); }
.bl-pub { color: var(--t4); }

@media (max-width: 1024px) { .bl-col { padding-top: 80px; } }
@media (max-width: 640px) {
  .bl-col { padding: 48px var(--gut) 104px; }
  .bl-article { padding-bottom: 24px; }
  .bl-head { padding-bottom: 40px; }
  .bl-lede { font-size: 17px; }
  .bl-row { padding: 24px 0 22px; }
  .bl-dek { font-size: 15.5px; }
  .bl-read { min-height: 24px; margin-top: 12px; }
  .bl-back { margin-bottom: 16px; }
  .bl-standfirst { font-size: 18px; }
  .bl-answer { margin-top: 28px; padding-top: 20px; }
  .bl-answer-t { font-size: 17px; }
  .bl-share-top { margin: 28px 0 36px; }
  .bl-share-end { margin-top: 44px; }
  .bl-prose { font-size: 16.5px; }
  .bl-prose h2, .bl-faq h2, .bl-sources h2 { font-size: 21px; }
  .bl-prose h3 { font-size: 18px; }
  .bl-prose blockquote { font-size: 19px; }
  .bl-faq { margin-top: 56px; }
  .bl-qa h3 { font-size: 17px; }
  .bl-qa p { font-size: 16px; }
}
/* the narrowest phones: the byline takes its own line, without a separator to strand */
@media (max-width: 380px) {
  .bl-by { flex-basis: 100%; }
  .bl-by .bl-sep { display: none; }
}
@media (max-width: 480px) {
  /* two columns stay a table, tighter */
  .bl-table table { font-size: 14.5px; }
  .bl-table :is(th, td) { padding-right: 14px; }
}
@media (max-width: 560px) {
  /* three or more stack (a five-column record outgrows the column under 560px): each row a ruled
     entry, its first cell the title, the rest label and value */
  .bl-table-stack { overflow: visible; }
  .bl-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bl-table-stack :is(table, tbody, tr, td) { display: block; }
  .bl-table-stack table { font-size: 15px; }
  .bl-table-stack tbody { border-top: 1px solid var(--rule); }
  .bl-table-stack tr { padding: 14px 0 12px; border-bottom: 1px solid var(--ls); }
  .bl-table-stack td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 3px 0; border: 0; text-align: left; }
  .bl-table-stack td.bl-al-r, .bl-table-stack td.bl-al-c { text-align: left; }
  .bl-table-stack td::before { content: attr(data-label); font: 400 12px/1.85 var(--mono); color: var(--t4); }
  .bl-table-stack td:first-child { display: block; padding-bottom: 6px; font-weight: 600; color: var(--t1); }
  .bl-table-stack td:first-child::before { content: none; }
}
/* on touch, heading anchors and links in the prose reach 40px: an invisible layer (the kit's .tlink idiom) */
@media (pointer: coarse) {
  .bl-prose :is(h2, h3, p, li, blockquote, td) a, .bl-src a { position: relative; }
  .bl-prose :is(h2, h3, p, li, blockquote, td) a::before, .bl-src a::before { content: ""; position: absolute; inset: -10px -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-row-t a, .bl-read .ar, .bl-back, .bl-back .ar, .bl-sb, .bl-i-stroke { transition: none; }
}
