/* Design tokens — docs/UI.md. NerdyPros brand: red, black, white (from nerdypros.com).
   Logo colors: charcoal #1f1d1e, signal red #ff3300, light grey #e5e5e5.
   Type: Archivo (variable; condensed uppercase for the wordmark) + JetBrains Mono for numbers.
   Light is default; dark via [data-theme="dark"]. Fonts are self-hosted (CSP font-src 'self'),
   both SIL Open Font License. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 400 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("../fonts/jetbrains-mono-variable-latin.woff2") format("woff2");
}

:root {
  --font-sans: "Archivo", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Brand */
  --brand-red: #ff3300;
  --brand-charcoal: #1f1d1e;
  --brand-grey: #e5e5e5;

  /* Surfaces: white paper, black ink, charcoal sidebar */
  --bg: #f4f4f3;
  --surface: #ffffff;
  --surface-2: #f8f8f7;
  --surface-3: #eeeded;
  --sidebar: #1f1d1e;
  --sidebar-hover: #2c292a;
  --sidebar-active: #363233;
  --sidebar-text: #e5e5e5;
  --sidebar-muted: #8c8682;

  --border: #dcdad8;
  --border-strong: #bdb9b6;
  --divider: #ebe9e7;

  --text: #121011;
  --text-2: #3a3637;
  --muted: #6b6566;
  --faint: #9a9495;

  /* One accent: signal red. Fills use the logo red with charcoal text (as on nerdypros.com);
     red *text* on white uses the deeper --accent-ink for contrast (AA). */
  --accent: #ff3300;
  --accent-hover: #e62e00;
  --accent-ink: #c42a00;
  --accent-soft: #fff0eb;
  --accent-text: #1f1d1e;
  --focus: #ff3300;

  /* Semantic status. "Bad" is a deep crimson so it stays distinct from the brand red. */
  --ok: #1d7a43;      --ok-soft: #e4f3ea;
  --warn: #9a5d00;    --warn-soft: #fbf0dc;
  --bad: #a3122a;     --bad-soft: #fbe6e9;
  --info: #1f5fa8;    --info-soft: #e5eef9;
  --neutral: #5e5859; --neutral-soft: #eeeded;

  --radius: 4px;
  --radius-sm: 3px;
  --shadow-pop: 0 10px 30px rgba(31, 29, 30, .18), 0 2px 6px rgba(31, 29, 30, .10);

  --row-h: 28px;
  --field-h: 30px;
  --fs: 13px;
  --fs-sm: 12px;
  --fs-xs: 11px;
  --fs-lg: 15px;
  --fs-xl: 18px;
  --gap: 12px;
  --sidebar-w: 220px;
  --topbar-h: 44px;
}

:root[data-density="comfortable"] { --row-h: 36px; --field-h: 34px; --gap: 16px; }

:root[data-theme="dark"] {
  --bg: #121011;
  --surface: #1f1d1e;
  --surface-2: #252223;
  --surface-3: #2c292a;
  --sidebar: #0f0e0f;
  --sidebar-hover: #1c1a1b;
  --sidebar-active: #282526;
  --sidebar-text: #e5e5e5;
  --sidebar-muted: #857f7a;

  --border: #3b3738;
  --border-strong: #504a4b;
  --divider: #2c292a;

  --text: #ece8e3;
  --text-2: #c9c4bf;
  --muted: #9a948f;
  --faint: #6d6768;

  --accent: #ff3300;
  --accent-hover: #ff5c3a;
  --accent-ink: #ff6a47;
  --accent-soft: #3a1c14;
  --accent-text: #0f0e0f;
  --focus: #ff5c3a;

  --ok: #4cc27d;      --ok-soft: #133523;
  --warn: #efc46f;    --warn-soft: #3a2b10;
  --bad: #ff7a8a;     --bad-soft: #42161e;
  --info: #7fb0ec;    --info-soft: #172a42;
  --neutral: #a39d98; --neutral-soft: #2c292a;

  --shadow-pop: 0 12px 34px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
}
