/* Spare Minds design kit: /kit/sm.css. Fixed tokens and components; see site_read for the reference. */
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(/fonts/Geist-var.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 300 700; font-display: swap; src: url(/fonts/JetBrainsMono-var.woff2) format("woff2"); }
:root { --sm-ink: #0b0b0f; --sm-ink-2: #33353d; --sm-mute: #6b6f7b; --sm-faint: #a0a4b0; --sm-line: #e7e8ee; --sm-soft: #f6f7fa; --sm-surface: #ffffff; --sm-accent: #1f3dff; --sm-accent-soft: #eef0ff; --sm-accent-line: #c9d0ff; --sm-caution: #8a4b00; --sm-caution-soft: #fff3e0; --sm-good: #0ca30c; --sm-warning: #fab219; --sm-serious: #ec835a; --sm-critical: #d03b3b; --sm-chart-1: #2a78d6; --sm-chart-2: #eb6834; --sm-chart-3: #1baf7a; --sm-chart-4: #eda100; --sm-chart-5: #e87ba4; --sm-chart-6: #008300; --sm-chart-7: #6250d6; --sm-chart-8: #e34948; --sm-chart-grid: #e7e8ee; --sm-chart-axis: #6b6f7b; --sm-sans: "Geist", system-ui, sans-serif; --sm-mono: "JetBrains Mono", ui-monospace, monospace; --sm-text-xs: 13px; --sm-text-sm: 15px; --sm-text-md: 17px; --sm-text-lg: 20px; --sm-text-xl: 26px; --sm-text-2xl: 36px; --sm-text-3xl: 40px; --sm-space-1: 4px; --sm-space-2: 8px; --sm-space-3: 12px; --sm-space-4: 16px; --sm-space-5: 24px; --sm-space-6: 32px; --sm-space-7: 48px; --sm-space-8: 72px; --sm-radius: 10px; --sm-radius-lg: 14px; --sm-width: 1160px; --sm-width-prose: 720px; --sm-gutter: 28px; }
@media (max-width: 900px) { :root { --sm-gutter: 20px; --sm-text-3xl: 34px; --sm-text-2xl: 26px; } }
@media (max-width: 420px) { :root { --sm-gutter: 16px; --sm-text-3xl: 30px; --sm-text-2xl: 24px; --sm-text-xl: 21px; } }
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body) { margin: 0; background: var(--sm-surface); color: var(--sm-ink); font: 400 var(--sm-text-md)/1.55 var(--sm-sans); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { font-family: var(--sm-sans); color: var(--sm-ink); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 var(--sm-space-3); }
:where(h1) { font-size: var(--sm-text-2xl); line-height: 1.08; font-weight: 600; font-stretch: 86%; letter-spacing: -0.03em; word-spacing: .06em; }
:where(h2) { font-size: var(--sm-text-xl); font-weight: 600; letter-spacing: -0.015em; margin-top: var(--sm-space-6); }
:where(h3) { font-size: var(--sm-text-lg); font-weight: 600; margin-top: var(--sm-space-5); }
:where(h4) { font-size: var(--sm-text-md); font-weight: 600; margin-top: var(--sm-space-4); }
:where(h1, h2, h3, h4):first-child { margin-top: 0; }
:where(p, li) { text-wrap: pretty; }
:where(p) { margin: 0 0 var(--sm-space-4); }
:where(a) { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--sm-accent-line); }
:where(a:hover) { color: var(--sm-accent); }
:where(code, kbd, pre) { font-family: var(--sm-mono); font-size: .9em; }
:where(table) { border-collapse: collapse; width: 100%; max-width: var(--sm-width-prose); margin: var(--sm-space-5) 0 var(--sm-space-6); font-size: var(--sm-text-sm); line-height: 1.45; }
:where(caption) { caption-side: top; text-align: left; font-size: var(--sm-text-sm); font-weight: 600; color: var(--sm-ink-2); padding-bottom: var(--sm-space-3); }
:where(th) { text-align: left; vertical-align: bottom; font-size: var(--sm-text-xs); font-weight: 600; color: var(--sm-mute); border-bottom: 1px solid var(--sm-line); padding: 0 var(--sm-space-3) var(--sm-space-2); }
:where(td) { border-bottom: 1px solid var(--sm-line); padding: var(--sm-space-3); vertical-align: top; }
:where(th:first-child, td:first-child) { padding-left: 0; }
:where(th:last-child, td:last-child) { padding-right: 0; }
:where(tbody th) { text-transform: none; letter-spacing: 0; font-size: var(--sm-text-sm); font-weight: 600; color: var(--sm-ink); vertical-align: top; padding-top: var(--sm-space-3); }
.sm-table-wide { max-width: none; }
.sm-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(hr) { border: 0; border-top: 1px solid var(--sm-line); margin: var(--sm-space-6) 0; }
:where(svg text) { font-family: var(--sm-sans); fill: var(--sm-chart-axis); }

/* Layout */
.sm-page { max-width: var(--sm-width); margin: 0 auto; padding: 0 var(--sm-gutter) var(--sm-space-8); }
.sm-prose { max-width: var(--sm-width-prose); }
.sm-section { padding-block: var(--sm-space-7); border-top: 1px solid var(--sm-line); }
.sm-section:first-child { border-top: 0; }
.sm-stack { display: flex; flex-direction: column; gap: var(--sm-space-4); }
.sm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sm-space-3); }
.sm-grid { display: grid; gap: var(--sm-space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.sm-split { display: grid; gap: var(--sm-space-6); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 900px) { .sm-split { grid-template-columns: minmax(0, 1fr); } }

/* Type */
.sm-eyebrow { font-size: var(--sm-text-xs); font-weight: 600; color: var(--sm-mute); margin: 0 0 var(--sm-space-3); }
.sm-lead { font-size: var(--sm-text-md); line-height: 1.55; color: var(--sm-ink-2); max-width: var(--sm-width-prose); }
.sm-muted { color: var(--sm-mute); }
.sm-small { font-size: var(--sm-text-sm); }
.sm-mono { font-family: var(--sm-mono); }
.sm-number { font-variant-numeric: tabular-nums; }

/* Components */
.sm-card { display: block; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: var(--sm-radius-lg); padding: var(--sm-space-5); text-decoration: none; color: inherit; }
a.sm-card:hover { border-color: var(--sm-accent-line); box-shadow: 0 18px 40px -32px var(--sm-ink); color: inherit; }
.sm-card > :last-child { margin-bottom: 0; }
.sm-stat { display: flex; flex-direction: column; gap: var(--sm-space-1); }
.sm-stat b, .sm-stat .sm-stat-value { font-size: var(--sm-text-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sm-stat span, .sm-stat .sm-stat-label { font-size: var(--sm-text-sm); color: var(--sm-mute); }
.sm-claim { font-size: var(--sm-text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--sm-ink); }
.sm-tag { display: inline-flex; align-items: center; gap: var(--sm-space-1); font-size: var(--sm-text-xs); font-weight: 600; color: var(--sm-ink-2); background: var(--sm-soft); border: 1px solid var(--sm-line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.sm-tag.is-accent { color: var(--sm-accent); background: var(--sm-accent-soft); border-color: var(--sm-accent-line); }
.sm-tag.is-good { color: var(--sm-ink); border-color: var(--sm-good); }
.sm-tag.is-caution { color: var(--sm-caution); background: var(--sm-caution-soft); border-color: var(--sm-caution-soft); }
.sm-callout { border-left: 3px solid var(--sm-accent); background: var(--sm-accent-soft); border-radius: 0 var(--sm-radius) var(--sm-radius) 0; padding: var(--sm-space-4) var(--sm-space-5); }
.sm-callout.is-caution { border-left-color: var(--sm-caution); background: var(--sm-caution-soft); }
.sm-callout > :last-child { margin-bottom: 0; }
.sm-crumbs { display: flex; flex-wrap: wrap; gap: var(--sm-space-2); font-size: var(--sm-text-sm); color: var(--sm-mute); margin: var(--sm-space-5) 0; }
.sm-crumbs a { color: var(--sm-mute); text-decoration: none; }
.sm-crumbs a:hover { color: var(--sm-ink); }
.sm-crumbs > * + *::before { content: "/"; margin-right: var(--sm-space-2); color: var(--sm-faint); }
.sm-more { font-weight: 600; color: var(--sm-accent); text-decoration: none; }
.sm-more::after { content: " →"; }
.sm-details { border-top: 1px solid var(--sm-line); }
.sm-details > summary { list-style: none; cursor: pointer; padding: var(--sm-space-4) 0; display: flex; gap: var(--sm-space-4); align-items: baseline; justify-content: space-between; }
.sm-details > summary::-webkit-details-marker { display: none; }
.sm-details > summary::after { content: "+"; color: var(--sm-mute); font-weight: 400; }
.sm-details[open] > summary::after { content: "−"; }
.sm-details > :not(summary) { padding-bottom: var(--sm-space-4); }
.sm-source { font-size: var(--sm-text-xs); color: var(--sm-mute); }
.sm-source a { color: var(--sm-mute); }
.sm-figure { margin: 0; }
.sm-figure figcaption { font-size: var(--sm-text-sm); color: var(--sm-mute); margin-top: var(--sm-space-2); }
.sm-table-wrap { overflow-x: auto; }
