/* openworkalternative.com tokens — the site's own palette, on the Kortix token names.
   Derived from skills/kortix-brand/references/visual/tokens.css (same names, same scale),
   retuned to the site's cool record-paper neutrals around the deep-umber accent #5b3a29.
   This is the ONLY file with colour literals. Light is the default; dark follows
   prefers-color-scheme, or [data-theme="dark"] forces it. */

:root {
  color-scheme: light;
  --background: #eef1f5;
  --pane: #ffffff;
  --surface: #f6f8fb;
  --foreground: #14181e;
  --foreground-strong: #14181e;
  --foreground-weak: #6a7482;
  --card: #e6ebf1;
  --card-foreground: #14181e;
  --popover: #ffffff;
  --popover-foreground: #14181e;
  --primary: #14181e;
  --primary-foreground: #ffffff;
  --secondary: #e2e8ef;
  --secondary-foreground: #14181e;
  --muted: #e6ebf1;
  --muted-foreground: #5c6673;
  --accent: #e6ebf1;
  --accent-foreground: #14181e;
  --destructive: #e7000b;
  --destructive-foreground: #fafafa;
  --border: #d2dae3;
  --input: #e2e8ef;
  --ring: #5b3a29;
  --hover: rgb(0 0 0 / 0.045);
  --active: rgb(0 0 0 / 0.075);
  --sidebar: #e6ebf1;
  --sidebar-foreground: #14181e;
  --sidebar-primary: #5b3a29;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e2e8ef;
  --sidebar-accent-foreground: #14181e;
  --sidebar-row: #e6ebf1;
  --sidebar-row-control: #e2e8ef;
  --sidebar-border: #d2dae3;
  --sidebar-ring: #5b3a29;
  --kortix-base: #5b3a29;
  --kortix-green: #199338;
  --kortix-red: #f14b4c;
  --kortix-orange: #d18b19;
  --kortix-yellow: #cca300;
  --kortix-blue: #2b91f7;
  --kortix-purple: #ab80d6;
  --chart-1: #ffd230;
  --chart-2: #fe9a00;
  --chart-3: #e17100;
  --chart-4: #bb4d00;
  --chart-5: #973c00;
  --terminal-surface: #0f0f0f;
  --terminal-fg: #e5e5e5;
  --terminal-border: rgb(255 255 255 / 0.1);
  --font-sans: Archivo, ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono: 'Azeret Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --font-sans-system: ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono-system: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --tracking-tight: -0.025em;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-relaxed: 1.625;
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --spacing: 0.23rem;
  --text-xs: 0.8125rem;
  --text-xs-line-height: calc(1 / 0.8125);
  --text-sm: 0.875rem;
  --text-sm-line-height: calc(1.25 / 0.875);
  --text-md: 0.9rem;
  --text-md-line-height: calc(1.375 / 0.9375);
  --text-base: 1rem;
  --text-base-line-height: calc(1.5 / 1);
  --text-lg: 1.125rem;
  --text-lg-line-height: calc(1.75 / 1.125);
  --text-xl: 1.25rem;
  --text-xl-line-height: calc(1.75 / 1.25);
  --text-2xl: 1.5rem;
  --text-2xl-line-height: calc(2 / 1.5);
  --text-3xl: 1.875rem;
  --text-3xl-line-height: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --text-4xl-line-height: calc(2.5 / 2.25);
  --text-5xl: 3rem;
  --text-5xl-line-height: 1;
  --text-6xl: 3.75rem;
  --text-6xl-line-height: 1;
  --text-7xl: 4.5rem;
  --text-7xl-line-height: 1;
  --text-8xl: 6rem;
  --text-8xl-line-height: 1;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --duration-fast: 100ms;
  --duration-normal: 150ms;
  --duration-moderate: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  --ease-default: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0f1216;
  --pane: #14181d;
  --surface: #161b21;
  --foreground: #eef2f6;
  --foreground-strong: #eef2f6;
  --foreground-weak: #98a3af;
  --card: #191e25;
  --card-foreground: #eef2f6;
  --popover: #171c22;
  --popover-foreground: #eef2f6;
  --primary: #eef2f6;
  --primary-foreground: #0f1216;
  --secondary: #1e242c;
  --secondary-foreground: #eef2f6;
  --muted: #1e242c;
  --muted-foreground: #98a3af;
  --accent: #191e25;
  --accent-foreground: #eef2f6;
  --destructive: #ff6467;
  --destructive-foreground: #fafafa;
  --border: #2a323c;
  --input: #1e242c;
  --hover: rgb(255 255 255 / 0.06);
  --active: rgb(255 255 255 / 0.1);
  --sidebar: #191e25;
  --sidebar-foreground: #eef2f6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1e242c;
  --sidebar-accent-foreground: #eef2f6;
  --sidebar-row: #1e242c;
  --sidebar-row-control: #2a323c;
  --sidebar-border: #222933;
  --kortix-green: #199338;
  --kortix-red: #f14b4c;
  --kortix-orange: #d18b19;
  --kortix-yellow: #cca300;
  --kortix-blue: #2b91f7;
  --kortix-purple: #ab80d6;
  --chart-1: #ffd230;
  --chart-2: #fe9a00;
  --chart-3: #e17100;
  --chart-4: #bb4d00;
  --chart-5: #973c00;
  --terminal-surface: #0f0f0f;
  --terminal-fg: #e5e5e5;
  --terminal-border: rgb(255 255 255 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #0f1216;
    --pane: #14181d;
    --surface: #161b21;
    --foreground: #eef2f6;
    --foreground-strong: #eef2f6;
    --foreground-weak: #98a3af;
    --card: #191e25;
    --card-foreground: #eef2f6;
    --popover: #171c22;
    --popover-foreground: #eef2f6;
    --primary: #eef2f6;
    --primary-foreground: #0f1216;
    --secondary: #1e242c;
    --secondary-foreground: #eef2f6;
    --muted: #1e242c;
    --muted-foreground: #98a3af;
    --accent: #191e25;
    --accent-foreground: #eef2f6;
    --destructive: #ff6467;
    --destructive-foreground: #fafafa;
    --border: #2a323c;
    --input: #1e242c;
    --hover: rgb(255 255 255 / 0.06);
    --active: rgb(255 255 255 / 0.1);
    --sidebar: #191e25;
    --sidebar-foreground: #eef2f6;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #1e242c;
    --sidebar-accent-foreground: #eef2f6;
    --sidebar-row: #1e242c;
    --sidebar-row-control: #2a323c;
    --sidebar-border: #222933;
    --kortix-green: #199338;
    --kortix-red: #f14b4c;
    --kortix-orange: #d18b19;
    --kortix-yellow: #cca300;
    --kortix-blue: #2b91f7;
    --kortix-purple: #ab80d6;
    --chart-1: #ffd230;
    --chart-2: #fe9a00;
    --chart-3: #e17100;
    --chart-4: #bb4d00;
    --chart-5: #973c00;
    --terminal-surface: #0f0f0f;
    --terminal-fg: #e5e5e5;
    --terminal-border: rgb(255 255 255 / 0.1);
  }
}

/* Site additions (not in the kit). */
:root {
  --kortix-base-ink: var(--kortix-base);
  --transparent: transparent;
  --mask-solid: #000;
  --shadow-frame: 0 25px 50px -12px rgb(0 0 0 / 0.18);
  --shadow-card: 0 10px 30px -12px rgb(0 0 0 / 0.16);
}
:root[data-theme="dark"] {
  --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 42%, #ffffff);
  --shadow-frame: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  --shadow-card: 0 10px 30px -12px rgb(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 42%, #ffffff);
    --shadow-frame: 0 25px 50px -12px rgb(0 0 0 / 0.6);
    --shadow-card: 0 10px 30px -12px rgb(0 0 0 / 0.5);
  }
}
