/* GENERATED by tools/gen_books_tokens.py from design/tokens/thumabooks.tokens.json — do not edit by hand. */
/* ADOPTED 2026-10-04 — Option A, plum on slate (decisions/2026-10-04-thumabooks-product-palette.md). */

/* Fallback faces sized to the web fonts, so text does not move when they
   arrive (no layout shift). Measured by tools/font_fallback_metrics.py. */
@font-face { font-family: "Manrope fallback"; font-weight: 100 599; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"), local("Roboto"); size-adjust: 103.48%; ascent-override: 103.01%; descent-override: 28.99%; line-gap-override: 0.0%; }
@font-face { font-family: "Manrope fallback"; font-weight: 600 950; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Roboto Bold"); size-adjust: 102.51%; ascent-override: 103.99%; descent-override: 29.27%; line-gap-override: 0.0%; }
@font-face { font-family: "Inter fallback"; font-weight: 100 599; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"), local("Roboto"); size-adjust: 97.82%; ascent-override: 99.03%; descent-override: 24.66%; line-gap-override: 0.0%; }
@font-face { font-family: "Inter fallback"; font-weight: 600 950; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Roboto Bold"); size-adjust: 96.02%; ascent-override: 100.9%; descent-override: 25.12%; line-gap-override: 0.0%; }

/* Light only: the website is bright, with no dark theme and no dark
   mode (the founder, 26 Oct 2026, decisions/2026-10-26-website-bright-no-dark.md). */
:root {
  --tb-font-display: Manrope, "Manrope fallback", Inter, "Inter fallback", system-ui, sans-serif;
  --tb-font-text: Inter, "Inter fallback", system-ui, sans-serif;
  --tb-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --tb-size-caption: 12px;
  --tb-size-body-sm: 13px;
  --tb-size-body: 15px;
  --tb-size-title: 18px;
  --tb-size-heading: 22px;
  --tb-size-display: 30px;
  --tb-size-figure: 40px;
  --tb-weight-regular: 400;
  --tb-weight-medium: 500;
  --tb-weight-semibold: 600;
  --tb-weight-bold: 700;
  --tb-weight-heavy: 800;
  --tb-space-1: 4px;
  --tb-space-2: 8px;
  --tb-space-3: 12px;
  --tb-space-4: 16px;
  --tb-space-5: 20px;
  --tb-space-6: 24px;
  --tb-space-8: 32px;
  --tb-space-10: 40px;
  --tb-space-12: 48px;
  --tb-radius-sm: 8px;
  --tb-radius-md: 12px;
  --tb-radius-lg: 16px;
  --tb-radius-pill: 999px;
  --tb-shadow-card: 0 1px 2px rgba(9,13,18,.06), 0 6px 20px rgba(9,13,18,.06);
  --tb-shadow-overlay: 0 24px 64px rgba(9,13,18,.35);
  --tb-glass-blur: 18px;
  --tb-duration-instant: 90ms;
  --tb-duration-quick: 160ms;
  --tb-duration-base: 240ms;
  --tb-duration-settle: 900ms;
  --tb-ease-standard: cubic-bezier(.2,0,0,1);
  --tb-ease-settle: cubic-bezier(.34,1.3,.64,1);
  --tb-ease-exit: cubic-bezier(.3,0,1,1);
  --tb-touch: 44px;
  --tb-row-compact: 32px;
  --tb-row-comfortable: 44px;
  --tb-content-max: 1360px;
  --tb-bg: #f5f7f9;
  --tb-surface: #ffffff;
  --tb-surface-raised: #ffffff;
  --tb-surface-sunken: #e9edf1;
  --tb-brand-surface: #2a0f24;
  --tb-on-brand: #f5f7f9;
  --tb-border: #d3dae1;
  --tb-border-subtle: #e9edf1;
  --tb-chip: #e9edf1;
  --tb-field: #e9edf1;
  --tb-text: #090d12;
  --tb-text-muted: #3a4756;
  --tb-text-faint: #5d6b7a;
  --tb-action: #6b2a5a;
  --tb-action-ink: #5a2049;
  --tb-on-action: #ffffff;
  --tb-action-soft: #f4e7f0;
  --tb-action-soft-border: #e5c3da;
  --tb-analytics: #5136f2;
  --tb-inflow: #00775a;
  --tb-inflow-soft: #e3fbf3;
  --tb-outflow: #c42345;
  --tb-outflow-soft: #fdebee;
  --tb-warning: #8a4f00;
  --tb-warning-soft: #fff3df;
  --tb-focus: #6b2a5a;
  --tb-glass: rgba(255,255,255,0.70);
  --tb-glass-border: rgba(14,20,27,0.08);
  --tb-chart-grid: #e9edf1;
  --tb-chart-inflow: #00775a;
  --tb-chart-outflow: #c42345;
  color-scheme: light;
}

/* Figures line up in columns: every number is tabular. */
.tb-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tb-figure { font-family: var(--tb-font-display); font-size: var(--tb-size-figure); font-weight: var(--tb-weight-bold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tb-glass { background: var(--tb-glass); border: 1px solid var(--tb-glass-border); backdrop-filter: blur(var(--tb-glass-blur)); -webkit-backdrop-filter: blur(var(--tb-glass-blur)); }

/* Breakpoints: tablet 600px · desktop 1024px · wide 1440px. Custom properties cannot be used inside @media, so these are the numbers to use. */
@media (prefers-reduced-motion: reduce) {
  :root { --tb-duration-quick: 0ms; --tb-duration-base: 0ms; --tb-duration-settle: 0ms; }
}
