/* The shared design tokens. Every page reads these; the old names below are aliases so existing rules keep working. */
:root {
  /* surfaces: page and card are one colour, a card is drawn by its line */
  --ui-page: #fffefb;
  --ui-card: #fffefb;
  --ui-line: #ede4d8;
  --ui-r-card: 12px;      /* ordinary cards only; pills, circles and charts keep their own */
  --ui-dark: #1a1410;
  --ui-on-dark: #fffaf3;
  --ui-line-dark: rgba(255, 250, 243, .12);

  /* type: Geist for prose, Geist Mono with tabular figures for numbers */
  --ui-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ui-ink: #1a1410;
  --ui-ink-2: #4a4038;
  --ui-mute: #8a7f74;      /* decorative text only: about 3.9:1, never for meaning */
  --ui-meta: #6e6358;      /* meaningful timestamps, source labels and status metadata: at least 4.5:1 */
  --ui-accent: #fe6102;
  --ui-accent-ink: #b84700;
  --ui-accent-2: #e07a2e;
  --ui-accent-wash: #fff4ec;
  --ui-accent-wash-2: #ffe7d9;
  --ui-sand: #f7efe4;
  --ui-track: #f2e8da;      /* segmented controls and bar tracks */
  --ui-line-2: #d9ccb9;

  /* page titles and state text (state text is ink-2 so it clears 4.5:1 on the page) */
  --ui-title-size: 22px;
  --ui-title-weight: 600;
  --ui-state-size: 14px;
  --ui-state-lh: 20px;
  --ui-state-ink: var(--ui-ink-2);
  --ui-state-gap: 12px;

  /* skeleton: one colour, motion and corner set */
  --ui-sk: #f1e9de;
  --ui-sk-hi: #f8f3ec;
  --ui-sk-dark: rgba(255, 250, 243, .07);
  --ui-sk-dark-hi: rgba(255, 250, 243, .14);
  --ui-sk-radius: 4px;
  --ui-sk-dur: 1.2s;

  /* layout caps: the header spans the container, content pages sit centred inside it */
  --ui-head-cap: 1872px;
  --ui-content-cap: 1392px;

  /* aliases for the names the pages already use */
  --vx-c-card: var(--ui-card);
  --vx-c-bg: var(--ui-page);
  --vx-c-line: var(--ui-line);
  --vx-c-ink: var(--ui-ink);
  --vx-c-ink-2: var(--ui-ink-2);
  --vx-c-mute: var(--ui-mute);
  --vx-c-orange: var(--ui-accent);
  --vx-c-orange-ink: var(--ui-accent-ink);
  --vx-c-orange-2: var(--ui-accent-2);
  --vx-c-sand: var(--ui-sand);
  --vx-c-sk: var(--ui-sk);
  --vx-c-sk-hi: var(--ui-sk-hi);
  --geist: var(--ui-sans);
  --bg: var(--ui-page);
}
