/* Oryx design tokens: the one source for colour, type, shape, depth and motion.
   Every surface (OryxBrain, PocketBase pages, Card Reader, Open WebUI, LiteLLM, Wiki.js) loads this file
   or copies these exact values. Brand colours come from brand/oryx-style-guide.pdf (May 2023).
   The font is self-hosted (fonts/, SIL OFL 1.1) because the platform CSP blocks Google Fonts. */

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand (style guide) */
  --oryx-blue: #022A3A;
  --oryx-white: #FFFFFF;
  --oryx-light-blue: #E2ECEE;
  --oryx-dark-grey: #4D4D4D;
  --oryx-light-grey: #979797;
  --oryx-font: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Ink and surfaces */
  --ox-ink: #0B1F2A;
  --ox-ink-2: #4A5B66;
  --ox-ink-3: #5B6A73;
  --ox-bg: #F6F8F9;
  --ox-surface: #FFFFFF;
  --ox-surface-2: #EEF3F5;
  --ox-line: rgba(2, 42, 58, 0.09);
  --ox-line-2: rgba(2, 42, 58, 0.16);

  /* Brand roles */
  --ox-brand: #022A3A;
  --ox-brand-soft: #E2ECEE;
  --ox-accent: #0E7C86;
  --ox-accent-soft: #E1F1F2;

  /* Status (badges and alerts only) */
  --ox-ok: #1F8A5B;      --ox-ok-soft: #E3F4EC;
  --ox-warn: #B7791F;    --ox-warn-soft: #FBF1DF;
  --ox-danger: #C2412D;  --ox-danger-soft: #FBE8E4;
  --ox-info: #2F6FB3;    --ox-info-soft: #E5EEF8;
  /* Status text: darker shades of the same hues, 4.5:1 or more on white and on the soft backgrounds */
  --ox-ok-ink: #17704A;
  --ox-warn-ink: #8A5A0B;
  --ox-danger-ink: #A8341F;
  --ox-info-ink: #2A5F99;

  /* Knowledge graph topics: Oryx brand colours only, told apart by shade and ring */
  --ox-topic-1: #022A3A;                                    /* filled navy */
  --ox-topic-2: #4D4D4D;                                    /* filled dark grey */
  --ox-topic-3: #979797;                                    /* filled light grey */
  --ox-topic-4: #E2ECEE; --ox-topic-4-ring: #022A3A;        /* light blue, navy ring */
  --ox-topic-5: #FFFFFF; --ox-topic-5-ring: #4D4D4D;        /* white, dark grey ring */

  /* Type: Source Sans 3, one scale */
  --ox-font: var(--oryx-font);
  --ox-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --ox-t-xs: 12px;
  --ox-t-sm: 13px;
  --ox-t-base: 15px;
  --ox-t-md: 17px;
  --ox-t-lg: 22px;
  --ox-t-xl: 30px;
  --ox-t-2xl: 40px;
  --ox-heading-weight: 600;
  --ox-heading-tracking: -0.02em;

  /* Shape and depth */
  --ox-r-sm: 6px;
  --ox-r-md: 10px;
  --ox-r-lg: 16px;
  --ox-r-full: 999px;
  --ox-shadow-1: 0 1px 2px rgba(2, 42, 58, 0.06);
  --ox-shadow-2: 0 8px 24px rgba(2, 42, 58, 0.08);

  /* Motion */
  --ox-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ox-fast: 120ms;
  --ox-base: 200ms;
}

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

/* Headings use tight letter-spacing; give the spaces between words back so "Your apps in progress"
   never reads "Your appsin progress". :where() keeps specificity at zero, so any page can override. */
:where(h1, h2, h3, h4, h5, h6) { word-spacing: 0.08em; }
