/* blog.trstctl.com: index and posts, in the site's own type. Built by scripts/blog.mjs. */
.blog-hero .wrap { display: grid; gap: 1rem; justify-items: start; }
.blog-hero h1 { max-width: 16ch; }
.checked { font-size: var(--text-data); color: hsl(var(--muted-foreground)); max-width: 62ch; }
.checked a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.posts li { border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); padding: var(--density); display: grid; gap: 0.5rem; transition: border-color var(--motion-base); }
.posts li:hover { border-color: hsl(var(--brand-accent) / 0.4); }
.posts .meta { font-family: var(--font-mono); font-size: var(--text-caption); color: hsl(var(--muted-foreground)); }
.posts h2 { font-size: var(--text-heading); }
.posts h2 a:hover { color: hsl(var(--brand-accent)); }
.posts p { color: hsl(var(--muted-foreground)); max-width: 60ch; }
.post { padding: clamp(3rem, 7vw, 5rem) 0; }
.post .wrap { max-width: 44rem; }
.post header { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.post header h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem); max-width: 22ch; }
.post header .lede { max-width: 40rem; }
.post .body { font-size: 1.0625rem; line-height: 1.7; }
.post .body p { margin: 0 0 1.1rem; }
.post .body h2 { font-size: var(--text-heading); margin: 2.25rem 0 0.75rem; }
.post .body h3 { font-size: var(--text-title); margin: 1.5rem 0 0.5rem; }
.post .body ul, .post .body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.post .body li { margin: 0.35rem 0; }
.post .body li::marker { color: hsl(var(--brand-accent)); }
.post .body strong { color: hsl(var(--foreground)); }
.post .body a { color: hsl(var(--brand-accent)); text-decoration: underline; text-underline-offset: 0.15em; }
.post .body code { background: hsl(var(--muted) / 0.7); border: 1px solid hsl(var(--border)); border-radius: 0.25rem; padding: 0.05rem 0.35rem; font-size: 0.85em; }
.post .body table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: var(--text-data); }
.post .body th, .post .body td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.post .body th { color: hsl(var(--muted-foreground)); font-size: var(--text-caption); font-weight: 600; }
.post .body .callout { border: 1px solid hsl(var(--status-warning) / 0.45); background: hsl(var(--status-warning) / 0.06); border-radius: var(--radius-panel); padding: 1rem 1.125rem; margin: 1.25rem 0; }
.post .body sup { font-size: 0.7em; line-height: 0; }
.post .body sup a { text-decoration: none; padding: 0 0.1em; }
/* figures: static, in the site's tokens, so they follow the theme */
.post .body figure.viz { margin: 1.5rem 0 1.75rem; display: grid; gap: 0.6rem; }
.post .body figure.viz svg { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.post .body figure.viz figcaption { font-size: var(--text-caption); color: hsl(var(--muted-foreground)); max-width: 60ch; }
.viz .ink { fill: hsl(var(--foreground)); }
.viz .mute { fill: hsl(var(--muted-foreground)); }
.viz .mono { font-family: var(--font-mono); }
.viz .line { stroke: hsl(var(--border)); }
.viz .accent { stroke: hsl(var(--brand-accent)); }
.viz .accent-fill { fill: hsl(var(--brand-accent)); }
.viz .box { fill: hsl(var(--card)); stroke: hsl(var(--border)); stroke-width: 1.5; }
.viz .box.hot { stroke: hsl(var(--brand-accent)); }
.steps { list-style: none; counter-reset: step; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.post .body .steps { padding: 0; }
.steps li { counter-increment: step; border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); padding: 0.75rem 0.875rem; display: grid; gap: 0.2rem; margin: 0; font-size: var(--text-caption); color: hsl(var(--muted-foreground)); line-height: 1.45; }
.steps li::before { content: counter(step); font-family: var(--font-mono); font-size: var(--text-caption); color: hsl(var(--brand-accent)); }
.steps b { display: block; color: hsl(var(--foreground)); font-size: var(--text-data); }
.decide { display: grid; gap: 0.5rem; margin: 1.25rem 0 1.5rem; }
.decide > div { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); padding: 0.7rem 0.875rem; font-size: var(--text-data); }
.decide .chip { justify-self: end; white-space: nowrap; }
.decide .go { border-color: hsl(var(--brand-accent) / 0.55); }
.decide .go .chip { border-color: hsl(var(--brand-accent)); color: hsl(var(--brand-accent)); }
@media (max-width: 40rem) { .decide > div { grid-template-columns: 1fr; } .decide .chip { justify-self: start; } }
.sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); font-size: var(--text-data); color: hsl(var(--muted-foreground)); line-height: 1.55; }
.sources h2 { font-size: var(--text-title); margin: 0 0 0.5rem; }
.post .body .sources ol { padding-left: 1.4rem; margin: 0; }
.sources li { margin: 0.35rem 0; scroll-margin-top: 6rem; }
.sources li:target { color: hsl(var(--foreground)); }
.post .byline { display: flex; align-items: center; gap: 0.875rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: var(--text-data); }
.post .byline .mark { width: 2.25rem; height: 2.25rem; }
.post .byline b { display: block; color: hsl(var(--foreground)); }
.cta-post { margin-top: 2rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius-panel); background: hsl(var(--card)); padding: var(--density); display: grid; gap: 0.75rem; justify-items: start; }
.cta-post p { margin: 0; color: hsl(var(--muted-foreground)); max-width: 60ch; }
.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; font-size: var(--text-data); }
.prevnext a { color: hsl(var(--brand-accent)); text-decoration: none; }
.prevnext a:hover { text-decoration: underline; }
.brand-tag { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-caption); letter-spacing: 0; padding: 0.1rem 0.45rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius-control); color: hsl(var(--muted-foreground)); margin-left: 0.25rem; }
