/*
 * Kaitake Radiology Systems (KRS) — brand tokens
 * Single source of truth. Other projects @import or copy this file.
 *
 * Light values live on :root. The dark block overrides them under
 * (prefers-color-scheme: dark). Consume via var(--krs-*).
 */

:root {
  /* Text */
  --krs-text: #16202b;
  --krs-text-muted: #5b6b7c;

  /* Brand */
  --krs-primary: #0096b7;
  --krs-primary-bright: #00b4d8;
  --krs-secondary: #d96a00;

  /* Accessible variants. --krs-primary on white is 3.47:1 and --krs-secondary
     3.49:1 — large-text only under WCAG AA. Use the -deep values wherever the
     colour carries small text, or where white text sits ON the colour (chips,
     badges, buttons): both clear 4.5:1. See STYLE-GUIDE.md §4. */
  --krs-primary-deep: #00819e;
  --krs-secondary-deep: #bb5c00;

  /* Surfaces */
  --krs-surface: #ffffff;
  --krs-border: #d7dee8;

  /* Shape */
  --krs-radius: 2px;

  /* Page gradient (top -> bottom) */
  --krs-page-from: #ffffff;
  --krs-page-to: #f5f7fa;

  /* Typography */
  --krs-font-display: Orbitron, sans-serif;
  --krs-font-body: 'Nebula Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --krs-font-mono: 'Source Code Pro', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --krs-text: #e8eaed;
    --krs-text-muted: #b0b8c4;

    --krs-primary: #00b4d8;
    --krs-primary-bright: #48cae4;
    --krs-secondary: #f77f00;

    /* On the dark surface the base tokens already clear AAA (7.72:1 and
       7.24:1), so -deep collapses onto them rather than darkening further —
       darkening would reduce contrast here, not improve it. */
    --krs-primary-deep: #00b4d8;
    --krs-secondary-deep: #f77f00;

    --krs-surface: #0d1017;
    --krs-border: #1e2532;

    --krs-page-from: #07080c;
    --krs-page-to: #0b0f18;
  }
}
