/* Kortix tokens for opensourcecopilotalternative.com — "The Line Diagram" (rebuild, 2026-10-18).
   Base: the starter's tokens.css (every token name kept); values retuned to this site's own
   palette: pure white ground, warm ink, deep amber line. Light is the default; dark follows
   prefers-color-scheme, or [data-theme="dark"] to force it. This is the ONLY file with colour
   literals; the per-site accent also arrives as the page-head :root override. */

:root {
  color-scheme: light;
  --background: #ffffff;
  --pane: #f7f3ea;
  --surface: #faf7f0;
  --foreground: #221c12;
  --foreground-strong: #221c12;
  --foreground-weak: #6a6355;
  --card: #f2ecdf;
  --card-foreground: #221c12;
  --popover: #ffffff;
  --popover-foreground: #221c12;
  --primary: #221c12;
  --primary-foreground: #ffffff;
  --secondary: #ece5d5;
  --secondary-foreground: #221c12;
  --muted: #ece5d5;
  --muted-foreground: #5d564a;
  --accent: #f2ecdf;
  --accent-foreground: #221c12;
  --destructive: #e7000b;
  --destructive-foreground: #fafafa;
  --border: #e4dccb;
  --input: #ece5d5;
  --ring: #b45309;
  --hover: rgb(0 0 0 / 0.045);
  --active: rgb(0 0 0 / 0.075);
  --sidebar: #f7f3ea;
  --sidebar-foreground: #221c12;
  --sidebar-primary: #b45309;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #ece5d5;
  --sidebar-accent-foreground: #221c12;
  --sidebar-row: #f7f3ea;
  --sidebar-row-control: #ece5d5;
  --sidebar-border: #e4dccb;
  --sidebar-ring: #b45309;
  --kortix-base: #b45309;
  --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: #17130d;
  --terminal-fg: #f2ecdf;
  --terminal-border: rgb(255 255 255 / 0.12);
  --font-sans: Karla, ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono: 'Red Hat 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.01em;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-relaxed: 1.65;
  --radius: 0.125rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 2px);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 6px);
  --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 0 0 rgb(34 28 18 / 0.05);
  --shadow-sm: 0 1px 2px 0 rgb(34 28 18 / 0.06);
  --shadow-md: 0 2px 8px -2px rgb(34 28 18 / 0.08);
  --shadow-lg: 0 8px 24px -12px rgb(34 28 18 / 0.14);
  --shadow-xl: 0 16px 40px -20px rgb(34 28 18 / 0.18);
  --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: #14110c;
  --pane: #1e1a12;
  --surface: #1a1711;
  --foreground: #f4eee2;
  --foreground-strong: #f4eee2;
  --foreground-weak: #aaa08b;
  --card: #241f16;
  --card-foreground: #f4eee2;
  --popover: #1e1a12;
  --popover-foreground: #f4eee2;
  --primary: #f4eee2;
  --primary-foreground: #14110c;
  --secondary: #2a2418;
  --secondary-foreground: #f4eee2;
  --muted: #2a2418;
  --muted-foreground: #a89e88;
  --accent: #241f16;
  --accent-foreground: #f4eee2;
  --destructive: #ff6467;
  --destructive-foreground: #fafafa;
  --border: #352d21;
  --input: #2a2418;
  --hover: rgb(255 255 255 / 0.06);
  --active: rgb(255 255 255 / 0.1);
  --sidebar: #1e1a12;
  --sidebar-foreground: #f4eee2;
  --sidebar-primary-foreground: #f4eee2;
  --sidebar-accent: #2a2418;
  --sidebar-accent-foreground: #f4eee2;
  --sidebar-row: #1e1a12;
  --sidebar-row-control: #2a2418;
  --sidebar-border: #2c2619;
  --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: #17130d;
  --terminal-fg: #f2ecdf;
  --terminal-border: rgb(255 255 255 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #14110c;
    --pane: #1e1a12;
    --surface: #1a1711;
    --foreground: #f4eee2;
    --foreground-strong: #f4eee2;
    --foreground-weak: #aaa08b;
    --card: #241f16;
    --card-foreground: #f4eee2;
    --popover: #1e1a12;
    --popover-foreground: #f4eee2;
    --primary: #f4eee2;
    --primary-foreground: #14110c;
    --secondary: #2a2418;
    --secondary-foreground: #f4eee2;
    --muted: #2a2418;
    --muted-foreground: #a89e88;
    --accent: #241f16;
    --accent-foreground: #f4eee2;
    --destructive: #ff6467;
    --destructive-foreground: #fafafa;
    --border: #352d21;
    --input: #2a2418;
    --hover: rgb(255 255 255 / 0.06);
    --active: rgb(255 255 255 / 0.1);
    --sidebar: #1e1a12;
    --sidebar-foreground: #f4eee2;
    --sidebar-primary-foreground: #f4eee2;
    --sidebar-accent: #2a2418;
    --sidebar-accent-foreground: #f4eee2;
    --sidebar-row: #1e1a12;
    --sidebar-row-control: #2a2418;
    --sidebar-border: #2c2619;
    --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: #17130d;
    --terminal-fg: #f2ecdf;
    --terminal-border: rgb(255 255 255 / 0.12);
  }
}

/* Site additions (not in the kit). */
:root {
  /* The accent as a glyph or link on the page ground. Dark: mixed toward the ink. */
  --kortix-base-ink: var(--kortix-base);
  /* `transparent` as a variable: the CSS minifier rewrites the bare keyword to the literal #0000. */
  --transparent: transparent;
  /* Opaque paint for CSS masks. Only its alpha matters. */
  --mask-solid: #000;
  /* The Kortix lane wash inside the line diagram: the accent over the page ground. */
  --wash: color-mix(in oklab, var(--kortix-base) 7%, var(--background));
  /* The terminus route line in the closing band: the accent at its readable weight, and brighter
     than the raw accent on the near-black ground. */
  --route-line: var(--kortix-base-ink);
  /* Large framed previews. */
  --shadow-frame: 0 14px 32px -18px rgb(34 28 18 / 0.3);
  --shadow-card: 0 2px 10px -6px rgb(34 28 18 / 0.16);
}
:root[data-theme="dark"] {
  --route-line: color-mix(in oklab, var(--kortix-base) 45%, #ffffff);
  --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 62%, #ffffff);
  --wash: color-mix(in oklab, var(--kortix-base) 22%, var(--background));
  --shadow-frame: 0 14px 32px -18px rgb(0 0 0 / 0.7);
  --shadow-card: 0 2px 10px -6px rgb(0 0 0 / 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --route-line: color-mix(in oklab, var(--kortix-base) 45%, #ffffff);
    --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 62%, #ffffff);
    --wash: color-mix(in oklab, var(--kortix-base) 22%, var(--background));
    --shadow-frame: 0 14px 32px -18px rgb(0 0 0 / 0.7);
    --shadow-card: 0 2px 10px -6px rgb(0 0 0 / 0.55);
  }
}
