/* Articles: one readable column (about 68 characters), the site's header and status bar, light and dark.
   "Morning and night" (2026-11-08): sans headings like the other tabs, mono only for dates, labels and code. */
main { padding-block: clamp(32px, 6vw, 64px) 40px; }
main:focus { outline: none; }
.article { max-width: 68ch; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; font-size: 18px; line-height: 1.72; }
.article > * + * { margin-top: 1.1em; }
.crumb { display: flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumb::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article h1 { margin-top: 14px; color: var(--head); font: 400 clamp(2.2rem, 6vw, 3.1rem)/1.06 var(--sans); letter-spacing: -0.032em; text-wrap: balance; }
.article .lead { margin-top: 18px; font-size: 1.22em; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.byline { margin-top: 12px; font: 400 12.5px/1.7 var(--mono); color: var(--muted); }
.byline .with { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.byline .dot, .statusbar .dot { margin-inline: 8px; opacity: .5; font-style: normal; }
.article h2 { margin-top: 2.2em; color: var(--head); font: 500 1.45rem/1.25 var(--sans); letter-spacing: -0.015em; scroll-margin-top: 80px; }
.article h2 + * { margin-top: .7em; }
.article a { color: var(--accent); text-underline-offset: 3px; }
.article strong { font-weight: 600; color: var(--head); }
.article code { padding: 1px 6px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); font: 500 .84em var(--mono); overflow-wrap: anywhere; }
.article ol { padding-left: 1.4em; }
.article li + li { margin-top: .5em; }
.article li::marker { font: 500 .85em var(--mono); color: var(--accent); }
/* Tiny's own words: a hairline in the accent and a quiet tint */
.article blockquote { padding: 14px 20px; border-left: 1px solid var(--accent); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--accent-soft) 55%, transparent); color: var(--head); font-style: italic; }
.article blockquote p { text-wrap: pretty; }
.article blockquote p + p { margin-top: .6em; }
/* tables scroll sideways inside their own box on a phone, never the page */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--sunk); font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.table td:first-child { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--head); }
@media (max-width: 559px) { .table table:has(th:nth-child(3)) { min-width: 560px; } }   /* three columns scroll; two wrap */
/* the loop diagram: drawn with the site's colours, so it follows light and dark; sideways scroll on a phone */
.flow-fig { margin-block: 1.6em; }
.flow-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--mono); }
.flow-box rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.flow-gate rect { fill: var(--accent); stroke: var(--accent); }
.flow text { text-anchor: middle; }
.flow-label { font-size: 12.5px; font-weight: 600; fill: var(--head); }
.flow .flow-n { text-anchor: start; font-size: 10.5px; fill: var(--muted); }
.flow .flow-gate .flow-label, .flow .flow-gate .flow-n, .flow .flow-gate .flow-sub { fill: var(--on-accent); }
.flow-sub { font-size: 10.5px; fill: var(--muted); }
.flow-title { font-size: 14px; font-weight: 600; fill: var(--head); }
.flow-arrow { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.flow-loop { stroke: var(--accent); stroke-dasharray: 4 4; }
.flow-loop-label { fill: var(--accent); }
.flow-headpath { fill: var(--muted); }
.flow-fig figcaption { margin-top: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
/* the article list: rows split by hairlines */
.list { list-style: none; padding: 0; margin-top: 2em; border-top: 1px solid var(--line); }
.list li { padding-block: 1.5em; border-bottom: 1px solid var(--line); }
.list li + li { margin-top: 0; }
.list a { font: 500 1.4rem/1.3 var(--sans); letter-spacing: -0.015em; text-decoration: none; color: var(--head); }
.list a:hover { color: var(--accent); }
.list p { margin-top: 6px; color: var(--muted); }
.list .byline { margin-top: 6px; }
/* the status bar as the page's foot */
.page-foot { max-width: var(--max); margin: 16px auto 28px; }
.page-foot .statusbar { border: 1px solid var(--line); border-radius: 999px; padding-inline: 20px; }
@media (max-width: 759px) { .page-foot .statusbar { border-radius: var(--radius); } }
/* the list's "Read →" link, and the small closing note at the end of a post */
.list .more { margin-top: 4px; }
.list .more a { font: 500 13.5px var(--mono); color: var(--accent); text-underline-offset: 3px; }
.post-end { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font: 400 14.5px/1.65 var(--mono); color: var(--muted); }
.post-end p + p { margin-top: .5em; }
.article.reading { max-width: 680px; }   /* the Foundry posts: a 680px column (Break It on Purpose keeps 68ch) */
