/* Timothy Theme v1 (Direction B): Fraunces display + Inter UI. Self-hosted, SIL OFL 1.1, no runtime CDN. */
@font-face { font-family: "Inter"; src: url("./fonts/Inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("./fonts/Fraunces-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("./fonts/Fraunces-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("./fonts/Fraunces-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Timothy visual system (docs/crm/ui-visual-system.md). The same token names and values are
     defined for Desktop in desktop/src/renderer/desktopTheme.css. */
  --timothy-ink: #26312e;
  --timothy-ink-hover: #34433d;
  --timothy-text: #2b2d2f;
  --timothy-muted: #657080;
  --timothy-gold: #806839;
  /* Crest gold: accent text and thin rules on ink only (7.5:1 on ink). On light backgrounds use --timothy-gold. */
  --timothy-crest-gold: #d8c078;
  --timothy-gold-text: #6f5718;
  --timothy-gold-wash: #f1eadc;
  --timothy-gold-line: #d8c8a7;
  --timothy-paper: #f6f5f2;
  --timothy-paper-deep: #efeee8;
  --timothy-surface: #fff;
  --timothy-line: #dedfdd;
  --timothy-line-strong: #cfccc1;
  --timothy-control-line: #838b83;
  --timothy-focus: #4866df;
  --timothy-danger: #a63b32;
  --timothy-danger-soft: #fff0ee;
  --timothy-success: #267254;
  --timothy-success-soft: #eaf5ee;
  --timothy-warning: #76511c;
  --timothy-warning-soft: #fff5df;
  --timothy-disabled-bg: #e8e9e6;
  --timothy-disabled-text: #8a9290;
  --timothy-scrim: rgb(38 49 46 / .42);

  /* Names the website already used, now pointing at the shared values. */
  --timothy-canvas: var(--timothy-paper);
  --timothy-nav: var(--timothy-surface);
  --timothy-border: var(--timothy-line);
  --timothy-primary: var(--timothy-ink);
  --timothy-primary-hover: var(--timothy-ink-hover);
  --timothy-primary-soft: var(--timothy-gold-wash);

  /* RGB channels retain Tailwind's existing opacity modifier behaviour. */
  --timothy-canvas-rgb: 246 245 242;
  --timothy-surface-rgb: 255 255 255;
  --timothy-nav-rgb: 255 255 255;
  --timothy-text-rgb: 43 45 47;
  --timothy-muted-rgb: 101 112 128;
  --timothy-border-rgb: 222 223 221;
  --timothy-primary-rgb: 38 49 46;
  --timothy-success-rgb: 38 114 84;
  --timothy-danger-rgb: 166 59 50;
  --timothy-warning-rgb: 118 81 28;

  --timothy-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --timothy-font-display: "Fraunces", Georgia, serif;
  --timothy-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --timothy-fs-caption: 12px;
  --timothy-fs-small: 13px;
  --timothy-fs-body: 14px;
  --timothy-fs-lead: 16px;
  --timothy-fs-h3: 18px;
  --timothy-fs-h2: 20px;
  --timothy-fs-title: 24px;
  --timothy-fs-kpi: 28px;
  --timothy-fs-h1: 32px;
  --timothy-fs-display: 40px;
  --timothy-track-display: -.025em;
  --timothy-track-h1: -.02em;
  --timothy-track-title: -.015em;
  --timothy-track-h2: -.01em;
  --timothy-track-caps: .06em;
  --timothy-lh-display: 1.1;
  --timothy-lh-heading: 1.2;
  --timothy-lh-snug: 1.35;
  --timothy-lh-body: 1.5;
  --timothy-lh-relaxed: 1.6;

  --timothy-space-1: 4px;
  --timothy-space-2: 8px;
  --timothy-space-3: 12px;
  --timothy-space-4: 16px;
  --timothy-space-5: 24px;
  --timothy-space-6: 32px;
  --timothy-space-7: 40px;
  --timothy-space-8: 48px;
  --timothy-space-9: 64px;

  --timothy-radius-xs: 4px;
  --timothy-radius-sm: 8px;
  --timothy-radius-md: 12px;
  --timothy-radius-lg: 16px;
  --timothy-radius-pill: 999px;

  --timothy-control-sm: 32px;
  --timothy-control-md: 40px;
  --timothy-control-lg: 48px;

  /* Light from above: a top highlight, then layered low-alpha shade beneath. */
  --timothy-highlight: inset 0 1px 0 rgb(255 255 255 / .8);
  --timothy-highlight-ink: inset 0 1px 0 rgb(255 255 255 / .14);
  --timothy-elev-0: none;
  --timothy-elev-1: 0 1px 1px rgb(38 49 46 / .04), 0 2px 4px rgb(38 49 46 / .05);
  --timothy-elev-2: 0 0 0 1px rgb(38 49 46 / .05), 0 2px 4px rgb(38 49 46 / .05), 0 8px 16px rgb(38 49 46 / .08), 0 20px 40px rgb(38 49 46 / .08);
  --timothy-elev-3: 0 0 0 1px rgb(38 49 46 / .06), 0 8px 16px rgb(38 49 46 / .08), 0 24px 48px rgb(38 49 46 / .14), 0 48px 96px rgb(38 49 46 / .1);
  --timothy-shadow: var(--timothy-elev-1);

  --timothy-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2326312e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --timothy-chart-1: #26312e;
  --timothy-chart-2: #806839;
  --timothy-chart-3: #657080;
  --timothy-chart-4: #c2b28e;
  --timothy-chart-5: #a9b0b3;
  --timothy-chart-grid: #dedfdd;

  /* NEW (website visual polish, for the lead to review): the sign-in hero headline. Theme v1
     allows the website a display size up to 64px; no other surface uses this token. */
  --timothy-fs-hero: 56px;

  color-scheme: light;
  font-family: var(--timothy-font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--timothy-primary-soft);
  color: var(--timothy-text);
}

/* Direction B: display voice only for headings; UI/body/numbers stay Inter tabular. */
h1, h2 { font-family: var(--timothy-font-display); font-weight: 600; letter-spacing: var(--timothy-track-title); line-height: var(--timothy-lh-heading); }
h1 { letter-spacing: var(--timothy-track-h1); }
body, button, input, select, textarea { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 2px solid var(--timothy-focus); outline-offset: 2px; }
