/* ==========================================================================
   ORELSIS Design System — Tokens (v2.2, Path C port: plain CSS, no Tailwind)
   Source: ~/.claude/skills/orelsis-design-system/assets/css/tokens.css
   The @theme values are exposed as plain custom properties with the same
   names; the per-theme blocks are byte-identical to the skill.
   Per-project edits: only the lines marked [accent] (Coborel uses the default).
   ========================================================================== */

:root {
  /* Brand primitives — wordmark colours. Never change. */
  --color-orel: #2e54a5;
  --color-sis: #b7b7b8;

  /* Brand accent */
  --color-primary: #2e54a5;            /* [accent] */
  --color-primary-hover: #3864c2;      /* [accent] */
  --color-primary-foreground: #ffffff;

  /* Sentiment */
  --color-positive: #30d158;
  --color-negative: #ff453a;
  --color-warning: #ff9f0a;
  --color-neutral: #8e8e93;

  /* Topic accents — categories, chart series 2+, illustrations. Never UI chrome. */
  --color-topic-violet: #8b7cf6;
  --color-topic-amber: #f0a63a;
  --color-topic-emerald: #2fbf8f;
  --color-topic-blue: #5b8def;
  --color-topic-cyan: #3fb8d6;
  --color-topic-rose: #ef5f8a;
  --color-topic-orange: #f47a3d;
  --color-topic-lime: #9acd32;
  --color-topic-indigo: #7b86f5;

  --color-white: #ffffff; /* on-media text, scrims, switch thumbs only */
  --color-black: #000000; /* scrims only */

  /* Type — Inter */
  --font-sans: "Inter", "Inter Variable", -apple-system, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;

  --text-micro: 9px;           --text-micro--line-height: 14px;
  --text-caption-small: 10px;  --text-caption-small--line-height: 14px;
  --text-caption: 11px;        --text-caption--line-height: 16px;
  --text-label: 12px;          --text-label--line-height: 16px;
  --text-body-small: 13px;     --text-body-small--line-height: 18px;
  --text-body-medium: 15px;    --text-body-medium--line-height: 22px;
  --text-body-large: 17px;     --text-body-large--line-height: 26px;
  --text-title-18: 18px;       --text-title-18--line-height: 24px;
  --text-title-20: 20px;       --text-title-20--line-height: 26px;
  --text-title-24: 24px;       --text-title-24--line-height: 30px;
  --text-display-medium: 28px; --text-display-medium--line-height: 34px;
  --text-display-large: clamp(28px, 2.2vw + 18px, 40px);  --text-display-large--line-height: 1.12;
  --text-display-xl: clamp(36px, 4.4vw + 14px, 64px);     --text-display-xl--line-height: 1.04;
  --text-display-hero: clamp(40px, 6vw + 12px, 88px);     --text-display-hero--line-height: 1.02;

  --tracking-display: -0.028em;
  --tracking-hero: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wider: 0.06em;
  --tracking-widest: 0.12em;

  /* Radius */
  --radius-xxs: 2px;
  --radius-xs: 4px;
  --radius-tiny: 6px;
  --radius-small: 8px;
  --radius-control: 10px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-focus: 0 0 0 3px color-mix(in oklab, var(--color-primary) 25%, transparent);
  --shadow-overlay: var(--overlay-shadow);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container-page: 80rem;  /* 1280 */
  --container-prose: 42rem; /* 672 */

  --nav-h: 48px;
  --section-y: 72px;
  --page-x: 16px;
  --z-sticky: 30;
  --z-floating: 40;
  --z-header: 50;
  --z-dropdown: 60;
  --z-overlay: 80;
  --z-modal: 90;
  --z-toast: 100;
}
@media (min-width: 768px) {
  :root { --section-y: 104px; --page-x: 24px; }
}

/* ---------- Dark (default) ---------- */
:root,
.dark {
  color-scheme: dark;
  --bg: #030303;
  --bg-elevated: #0a0a0b;
  --card: #131315;
  --card-elevated: #1c1c1e;
  --text: #fafafa;
  --text-secondary: rgb(255 255 255 / 0.75);
  --text-tertiary: rgb(255 255 255 / 0.55);
  --text-muted: rgb(255 255 255 / 0.35);
  --glass-tint: rgb(255 255 255 / 0.03);
  --glass-tint-hover: rgb(255 255 255 / 0.07);
  --glass-tint-active: rgb(255 255 255 / 0.1);
  --glass-border: rgb(255 255 255 / 0.08);
  --glass-border-strong: rgb(255 255 255 / 0.15);
  --fill: rgb(255 255 255 / 0.1);
  --fill-hover: rgb(255 255 255 / 0.15);
  --primary-text: #7b9ef0;                   /* [accent] */
  --primary-subtle: rgb(91 140 240 / 0.1);   /* [accent] */
  --chrome-bg: rgb(0 0 0 / 0.7);
  --chrome-border: rgb(255 255 255 / 0.1);
  --dropdown-bg: rgb(10 10 12 / 0.72);
  --overlay-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5);
}

/* ---------- Light ---------- */
html.light,
.light {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --text: #0b0d12;
  --text-secondary: rgb(11 13 18 / 0.72);
  --text-tertiary: rgb(11 13 18 / 0.52);
  --text-muted: rgb(11 13 18 / 0.36);
  --glass-tint: rgb(17 24 39 / 0.035);
  --glass-tint-hover: rgb(17 24 39 / 0.06);
  --glass-tint-active: rgb(17 24 39 / 0.09);
  --glass-border: rgb(17 24 39 / 0.08);
  --glass-border-strong: rgb(17 24 39 / 0.16);
  --fill: rgb(17 24 39 / 0.05);
  --fill-hover: rgb(17 24 39 / 0.1);
  --primary-text: #2e54a5;                   /* [accent] */
  --primary-subtle: rgb(46 84 165 / 0.08);   /* [accent] */
  --chrome-bg: rgb(255 255 255 / 0.72);
  --chrome-border: rgb(60 60 67 / 0.14);
  --dropdown-bg: rgb(255 255 255 / 0.78);
  --overlay-shadow: 0 6px 20px -6px rgb(17 24 39 / 0.18);
}
