/* תיק-טק design tokens · generated from tiktak-tokens.json · v1 (2026-10-19)
   Hebrew-first. Set <html lang="he" dir="rtl"> by default, lang="en" dir="ltr" for English.
   Theme: light by default; dark follows the OS unless data-theme is set on <html>. */

@font-face { font-family: "Frank Ruhl Libre"; src: url("./fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("./fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre Hebrew"; src: url("./fonts/frank-ruhl-libre-hebrew-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre Hebrew"; src: url("./fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("./fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("./fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("./fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("./fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("./fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --tt-midnight-counsel: #0e1a2b;
  --tt-jerusalem-stone: #f4efe6;
  --tt-olive-sage: #5e8c7f;
  --tt-counsel-slate: #5b6573;
  --tt-mist: #e3e7ec;
  --tt-signal-brass: #c8a15a;
  --tt-electric-iris: #5b6cff;
  --tt-surface-page: #f4efe6;
  --tt-surface-card: #ffffff;
  --tt-surface-raised: #ffffff;
  --tt-ink: #0e1a2b;
  --tt-ink-muted: #5b6573;
  --tt-border: #e3e7ec;
  --tt-border-strong: #8a93a0;
  --tt-brass: #c8a15a;
  --tt-brass-ink: #7e6128;
  --tt-sage-ink: #3f6e61;
  --tt-ai: #5b6cff;
  --tt-ai-strong: #4453e0;
  --tt-ai-surface: #eef0ff;
  --tt-primary: #0e1a2b;
  --tt-on-primary: #f4efe6;
  --tt-success: #2e7d5b;
  --tt-warning: #9a5b0e;
  --tt-critical: #b23a3a;
  --tt-space-1: 4px;
  --tt-space-2: 8px;
  --tt-space-3: 12px;
  --tt-space-4: 16px;
  --tt-space-6: 24px;
  --tt-space-8: 32px;
  --tt-space-12: 48px;
  --tt-space-16: 64px;
  --tt-radius-sm: 4px;
  --tt-radius-input: 6px;
  --tt-radius-card: 8px;
  --tt-radius-pill: 999px;
  --tt-shadow-card: 0 1px 2px rgba(14,26,43,0.06), 0 4px 16px rgba(14,26,43,0.06);
  --tt-shadow-raised: 0 8px 32px rgba(14,26,43,0.12);
  --tt-font-display: "Frank Ruhl Libre", "Frank Ruhl Libre Hebrew", Georgia, "Times New Roman", serif;
  --tt-font-sans: "IBM Plex Sans", "IBM Plex Sans Hebrew", "Segoe UI", system-ui, sans-serif;
  --tt-font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --tt-duration-fast: 150ms;
  --tt-duration-base: 200ms;
  --tt-duration-slow: 250ms;
  --tt-ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --tt-surface-page: #0e1a2b;
  --tt-surface-card: #16243a;
  --tt-surface-raised: #1f2f48;
  --tt-ink: #eceef1;
  --tt-ink-muted: #a3acb8;
  --tt-border: #2a3a55;
  --tt-border-strong: #6b7a92;
  --tt-brass: #c8a15a;
  --tt-brass-ink: #d9b877;
  --tt-sage-ink: #7fb2a5;
  --tt-ai: #8b97ff;
  --tt-ai-strong: #8b97ff;
  --tt-ai-surface: #1e2550;
  --tt-primary: #f4efe6;
  --tt-on-primary: #0e1a2b;
  --tt-success: #6fbfa0;
  --tt-warning: #e8ae5c;
  --tt-critical: #e68a8a;
  --tt-shadow-card: 0 1px 2px rgba(0,0,0,0.40), 0 8px 24px rgba(0,0,0,0.30);
  --tt-shadow-raised: 0 12px 40px rgba(0,0,0,0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --tt-surface-page: #0e1a2b;
  --tt-surface-card: #16243a;
  --tt-surface-raised: #1f2f48;
  --tt-ink: #eceef1;
  --tt-ink-muted: #a3acb8;
  --tt-border: #2a3a55;
  --tt-border-strong: #6b7a92;
  --tt-brass: #c8a15a;
  --tt-brass-ink: #d9b877;
  --tt-sage-ink: #7fb2a5;
  --tt-ai: #8b97ff;
  --tt-ai-strong: #8b97ff;
  --tt-ai-surface: #1e2550;
  --tt-primary: #f4efe6;
  --tt-on-primary: #0e1a2b;
  --tt-success: #6fbfa0;
  --tt-warning: #e8ae5c;
  --tt-critical: #e68a8a;
  --tt-shadow-card: 0 1px 2px rgba(0,0,0,0.40), 0 8px 24px rgba(0,0,0,0.30);
  --tt-shadow-raised: 0 12px 40px rgba(0,0,0,0.45);
  color-scheme: dark;
}

/* Base: Hebrew body is ~6% larger and airier than English so both read the same size */
body {
  margin: 0;
  background: var(--tt-surface-page);
  color: var(--tt-ink);
  font-family: var(--tt-font-sans);
  font-size: 17px;
  line-height: 28px;
}
:lang(en) body, body:lang(en) { font-size: 16px; line-height: 24px; }

/* Hebrew never uses italics; emphasis is weight */
:lang(he) em, :lang(he) i { font-style: normal; font-weight: 600; }

/* Numbers, case numbers, dates and amounts are never mirrored */
.tt-ref { font-family: var(--tt-font-mono); font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }

/* Type styles */
.tt-display-xl { font-family: var(--tt-font-display); font-size: 56px; line-height: 60px; font-weight: 500; }
.tt-heading-1 { font-family: var(--tt-font-display); font-size: 40px; line-height: 48px; font-weight: 500; }
.tt-heading-2 { font-family: var(--tt-font-display); font-size: 30px; line-height: 38px; font-weight: 500; }
.tt-heading-3 { font-family: var(--tt-font-display); font-size: 22px; line-height: 30px; font-weight: 700; }
.tt-body-he { font-family: var(--tt-font-sans); font-size: 17px; line-height: 28px; font-weight: 400; }
.tt-body-en { font-family: var(--tt-font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.tt-label { font-family: var(--tt-font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.tt-caption { font-family: var(--tt-font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.tt-reference { font-family: var(--tt-font-mono); font-size: 14px; line-height: 20px; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  :root { --tt-duration-fast: 0ms; --tt-duration-base: 0ms; --tt-duration-slow: 0ms; }
}
