/*
  veha design tokens — the single source of truth for colors, type, radii and densities.
  Visual reference: the style guide board on the veha platform prototypes canvas,
  https://claude.ai/artifact/N7auRzRQwdk3oLk4xjWpjq (keep the two in sync).

  Three layers, changing at different speeds:
  - brand core: logo {vehadev}, accent orange, ink, Inter + JetBrains Mono — almost never;
  - tokens (this file): palettes for both themes, radii, borders, shadows — rarely, here only;
  - presentation: "paper" texture and density — free to change per surface.

  Densities:
  - marketing (landing, shorts, posts): dotted background, 2px ink borders, hard shadows,
    orange CTA buttons;
  - product (cabinet, trainer): flat background, 1px line borders, no hard shadows,
    ink primary buttons, orange only as an accent (progress, labels, logo).

  Orange #FF5A1F is a fill color only (dark text on it). For orange text and links use
  --veha-accent-text: plain orange text on white fails contrast.
*/
:root {
  --veha-font: Inter, "Segoe UI", system-ui, sans-serif;
  --veha-mono: "JetBrains Mono", ui-monospace, monospace;

  /* light theme ("paper") */
  --veha-bg: #F3EFE6;
  --veha-surface: #FFFFFF;
  --veha-sunken: #EFEAE0;
  --veha-line: #E4DDD0;
  --veha-ink: #141414;
  --veha-dim: #5F5F5F;
  --veha-accent: #FF5A1F;
  --veha-accent-text: #C2410C;
  --veha-accent-soft: #FFF1EA;
  --veha-accent-line: #FFC9AE;
  --veha-mark: #FFD43B;
  --veha-mark-soft: #FFF6D1;
  --veha-good: #15803D;
  --veha-good-soft: #E8F5EC;
  --veha-bad: #BE123C;
  --veha-bad-soft: #FDEBEF;
  --veha-code-bg: #1E1E1E;

  /* code syntax (code blocks are dark in both themes) */
  --veha-code-text: #F5F5F5;
  --veha-code-keyword: #FF8A5B;
  --veha-code-method: #F9A8D4;
  --veha-code-annotation: #FFD43B;
  --veha-code-comment: #9CA3AF;

  /* radii */
  --veha-r-card: 14px;
  --veha-r-control: 10px;
  --veha-r-tag: 6px;

  /* density: marketing */
  --veha-mk-border: 2px solid var(--veha-ink);
  --veha-mk-shadow: 6px 6px 0 var(--veha-ink);
  --veha-mk-shadow-sm: 4px 4px 0 var(--veha-ink);

  /* density: product */
  --veha-pr-border: 1px solid var(--veha-line);

  /* buttons: product primary is ink, marketing CTA is orange */
  --veha-btn-bg: var(--veha-ink);
  --veha-btn-fg: var(--veha-bg);
  --veha-cta-bg: var(--veha-accent);
  --veha-cta-fg: #141414;
}

/* dark theme — heir of the old v1 style; for user choice and code-heavy screens */
[data-theme="dark"] {
  --veha-bg: #121212;
  --veha-surface: #1B1B1B;
  --veha-sunken: #262626;
  --veha-line: #2E2E2E;
  --veha-ink: #F3EFE6;
  --veha-dim: #A8A29E;
  --veha-accent: #FF6A2E;
  --veha-accent-text: #FF8A5B;
  --veha-accent-soft: #26170F;
  --veha-accent-line: #5A2E18;
  --veha-mark: #FFD43B;
  --veha-mark-soft: #2B2610;
  --veha-good: #4ADE80;
  --veha-good-soft: #12261A;
  --veha-bad: #FB7185;
  --veha-bad-soft: #2A1218;
  --veha-code-bg: #0B0B0B;
  --veha-btn-bg: #F3EFE6;
  --veha-btn-fg: #141414;
}
