/* The blog template: every page tools/build_blog.py writes loads this after style.css.
   Moved out of the coordinate-space post and the blog index, where it lived page-local
   until the owner approved that post's look as the template (2026-11-03). Values are
   unchanged; the rules marked "template" are new and keep the generated markup
   rendering the same as the hand-written pages did. */

/* -- the essay ------------------------------------------------------- */
.post-hero { padding-bottom: 8px; }
.post-hero h1 { max-width: 22ch; margin-bottom: 22px; }
.byline {
    font-family: var(--serif);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.byline b { font-weight: 400; color: var(--ink-2); }

.post { padding-top: 48px; }
.post p {
    font-size: 1.14rem;
    line-height: 1.66;
    max-width: var(--w-prose);
    margin-bottom: 24px;
    color: var(--ink);
}
.post p.lede::first-letter {
    float: left;
    font-size: 4.1em;
    line-height: 0.82;
    padding: 6px 10px 0 0;
    color: var(--accent);
}
.post h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    max-width: 28ch;
    margin: 64px 0 18px;
}
.post h3 {
    font-size: 1.42rem;
    margin: 52px 0 14px;
}
.post h3 .h-no {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.post .pullquote { padding: 56px 0 40px; }
.post .pullquote blockquote { max-width: 34ch; }
.post-figure { margin-top: 30px; }
.post .figure + p { margin-top: 30px; }
/* template: the <img> carries width/height so the page does not jump while it loads;
   without height:auto those attributes would fix the drawn height. */
.post-figure img { height: auto; }

/* -- the numbers ------------------------------------------------------ */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: 30px 0 30px;
}
.stat-strip > div { padding: 22px 26px 20px; border-left: 1px solid var(--rule); }
.stat-strip > div:first-child { border-left: 0; padding-left: 0; }
.stat-n {
    display: block;
    font-family: var(--mono);
    font-size: 27px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-n .unit { font-size: 15px; color: var(--muted); margin-left: 3px; }
.stat-l { display: block; margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* why.html's read-this-chart box in the cream book's furniture. */
.insight {
    margin: 24px 0 0;
    padding: 2px 0 2px 22px;
    border-left: 2px solid var(--accent);
    font-size: 1.02rem;
    line-height: 1.66;
    color: var(--ink-2);
    max-width: var(--w-prose);
}
.post p.insight { font-size: 1.02rem; color: var(--ink-2); }
/* template: Markdown **bold** is <strong>; the hand-written page used <b>. */
.insight b, .insight strong { color: var(--ink); font-weight: 600; }
/* template: was an inline style on the one insight that follows a table. */
.table-scroll + .insight { margin-top: 22px; }

/* -- tables ----------------------------------------------------------- */
.map-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-variant-numeric: tabular-nums; }
.map-table caption {
    text-align: left;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 12px;
}
.map-table caption .lead {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-2);
    margin-top: 8px;
}
.map-table caption .lead:first-of-type { margin-top: 14px; }
.map-table th, .map-table td {
    text-align: left;
    padding: 11px 14px 10px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
    line-height: 1.4;
    vertical-align: baseline;
}
.map-table th {
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--rule-dark);
}
.map-table th.n { text-align: right; }
.map-table td.n { text-align: right; font-family: var(--mono); font-size: 13.5px; }
.map-table td.c { color: var(--ink); }
.map-table td.d { color: var(--ink-2); white-space: nowrap; }
.map-table tr.today td { color: var(--ink); background: var(--card); }
.map-table tr.today td:first-child { padding-left: 10px; }
.map-table tr.today td.c::after {
    content: "today";
    font-family: var(--serif);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-left: 10px;
}
.table-scroll { overflow-x: auto; }

.end-notes { max-width: var(--w-prose); padding-left: 1.5em; margin: 0 0 8px; }
.end-notes li { font-size: 1.02rem; line-height: 1.66; color: var(--ink-2); margin-bottom: 14px; padding-left: 6px; }
.end-notes li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--accent); }
.post .footnotes { max-width: var(--w-content); margin-top: 56px; }
.post .footnotes p { font-size: 0.9rem; color: var(--ink-2); max-width: none; margin-bottom: 8px; }

.post-close { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule-dark); }
.post-close p { font-size: 1.22rem; font-style: italic; max-width: 40ch; }
/* template: was an inline style on the buttons row. */
.post-close .hero-actions { margin-top: 26px; }

@media (max-width: 720px) {
    .stat-strip > div { border-left: 0; padding-left: 0; }
    .post .pullquote { padding: 40px 0 28px; }
}

/* -- the index, and "More from the blog" under a post ------------------ */
.index-hero h1 { margin-bottom: 18px; }
.post-hero .deck {
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: var(--w-prose);
}
.post-list { padding-top: 40px; }
.post-item {
    display: block;
    max-width: var(--w-prose);
    padding: 30px 0 32px;
    border-top: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
}
.post-item:last-of-type { border-bottom: 1px solid var(--rule); }
.post-item .when {
    font-family: var(--serif);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.post-item h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    margin: 12px 0 10px;
    max-width: 28ch;
}
.post-item p {
    font-size: 1.05rem;
    line-height: 1.62;
    color: var(--ink-2);
    margin: 0;
}
.post-item .more {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 1rem;
}
.post-item:hover h2 { color: var(--accent); }
/* template: the heading over related posts. */
.post-related { padding-top: 8px; }
.post-related .eyebrow { display: block; margin-bottom: 18px; }
