/* 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 is the default; dark follows the system unless the page sets
   data-theme. Same guard pattern as the Desk and the sites. */
: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;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tb-bg: #090d12;
    --tb-surface: #0e141b;
    --tb-surface-raised: #131b24;
    --tb-surface-sunken: #090d12;
    --tb-brand-surface: #2a0f24;
    --tb-on-brand: #f5f7f9;
    --tb-border: #24303d;
    --tb-border-subtle: #18222d;
    --tb-chip: #18222d;
    --tb-field: #18222d;
    --tb-text: #f5f7f9;
    --tb-text-muted: #aeb8c3;
    --tb-text-faint: #8794a2;
    --tb-action: #d97bb8;
    --tb-action-ink: #e9a3d0;
    --tb-on-action: #090d12;
    --tb-action-soft: #3a2234;
    --tb-action-soft-border: #5a2e4c;
    --tb-analytics: #8c7bff;
    --tb-inflow: #2df0b4;
    --tb-inflow-soft: rgba(0,214,154,0.13);
    --tb-outflow: #ff7a8f;
    --tb-outflow-soft: rgba(255,122,143,0.13);
    --tb-warning: #ffb84d;
    --tb-warning-soft: rgba(255,184,77,0.13);
    --tb-focus: #d97bb8;
    --tb-glass: rgba(24,34,45,0.70);
    --tb-glass-border: rgba(255,255,255,0.10);
    --tb-chart-grid: #18222d;
    --tb-chart-inflow: #00ad7d;
    --tb-chart-outflow: #c93049;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --tb-bg: #090d12;
  --tb-surface: #0e141b;
  --tb-surface-raised: #131b24;
  --tb-surface-sunken: #090d12;
  --tb-brand-surface: #2a0f24;
  --tb-on-brand: #f5f7f9;
  --tb-border: #24303d;
  --tb-border-subtle: #18222d;
  --tb-chip: #18222d;
  --tb-field: #18222d;
  --tb-text: #f5f7f9;
  --tb-text-muted: #aeb8c3;
  --tb-text-faint: #8794a2;
  --tb-action: #d97bb8;
  --tb-action-ink: #e9a3d0;
  --tb-on-action: #090d12;
  --tb-action-soft: #3a2234;
  --tb-action-soft-border: #5a2e4c;
  --tb-analytics: #8c7bff;
  --tb-inflow: #2df0b4;
  --tb-inflow-soft: rgba(0,214,154,0.13);
  --tb-outflow: #ff7a8f;
  --tb-outflow-soft: rgba(255,122,143,0.13);
  --tb-warning: #ffb84d;
  --tb-warning-soft: rgba(255,184,77,0.13);
  --tb-focus: #d97bb8;
  --tb-glass: rgba(24,34,45,0.70);
  --tb-glass-border: rgba(255,255,255,0.10);
  --tb-chart-grid: #18222d;
  --tb-chart-inflow: #00ad7d;
  --tb-chart-outflow: #c93049;
  color-scheme: dark;
}

/* 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; }
}
