/* Kortix tokens for openwebuialternative.com — The Card Catalogue.
   Names match the kit's tokens.css (skills/kortix-brand/references/visual/tokens.css); the values
   are this site's own palette: pale sage-bone paper with a deep rust accent.
   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: #f2f4ee;
  --pane: #fbfcf9;
  --surface: #eaede4;
  --foreground: #191c17;
  --foreground-strong: #10130e;
  --foreground-weak: #5c6257;
  --card: #e9ece3;
  --card-foreground: #191c17;
  --popover: #fbfcf9;
  --popover-foreground: #191c17;
  --primary: #191c17;
  --primary-foreground: #f5f7f1;
  --secondary: #e4e8dd;
  --secondary-foreground: #191c17;
  --muted: #e4e8dd;
  --muted-foreground: #5c6257;
  --accent: #e9ece3;
  --accent-foreground: #191c17;
  --destructive: #e7000b;
  --destructive-foreground: #fafafa;
  --border: #d3d8c8;
  --input: #e4e8dd;
  --ring: #a8410f;
  --hover: rgb(0 0 0 / 0.045);
  --active: rgb(0 0 0 / 0.075);
  --sidebar: #e9ece3;
  --sidebar-foreground: #191c17;
  --sidebar-primary: #a8410f;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e4e8dd;
  --sidebar-accent-foreground: #191c17;
  --sidebar-row: #e9ece3;
  --sidebar-row-control: #e4e8dd;
  --sidebar-border: #d3d8c8;
  --sidebar-ring: #a8410f;
  --kortix-base: #a8410f;
  --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: #14170f;
  --terminal-fg: #e9ece3;
  --terminal-border: rgb(255 255 255 / 0.1);
  --font-sans: Roobert, ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono: 'Roobert 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.5rem;
  --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: #12140f;
  --pane: #14170f;
  --surface: #1a1e15;
  --foreground: #eef1e6;
  --foreground-strong: #ffffff;
  --foreground-weak: #9aa192;
  --card: #1a1e15;
  --card-foreground: #eef1e6;
  --popover: #1a1e15;
  --popover-foreground: #eef1e6;
  --primary: #eef1e6;
  --primary-foreground: #12140f;
  --secondary: #232820;
  --secondary-foreground: #eef1e6;
  --muted: #232820;
  --muted-foreground: #9aa192;
  --accent: #1a1e15;
  --accent-foreground: #eef1e6;
  --destructive: #ff6467;
  --destructive-foreground: #fafafa;
  --border: #333a2c;
  --input: #232820;
  --hover: rgb(255 255 255 / 0.06);
  --active: rgb(255 255 255 / 0.1);
  --sidebar: #1a1e15;
  --sidebar-foreground: #eef1e6;
  --sidebar-primary-foreground: #12140f;
  --sidebar-accent: #232820;
  --sidebar-accent-foreground: #eef1e6;
  --sidebar-row: #232820;
  --sidebar-row-control: #333a2c;
  --sidebar-border: #262c1f;
  --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: #0f110c;
  --terminal-fg: #e9ece3;
  --terminal-border: rgb(255 255 255 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #12140f;
    --pane: #14170f;
    --surface: #1a1e15;
    --foreground: #eef1e6;
    --foreground-strong: #ffffff;
    --foreground-weak: #9aa192;
    --card: #1a1e15;
    --card-foreground: #eef1e6;
    --popover: #1a1e15;
    --popover-foreground: #eef1e6;
    --primary: #eef1e6;
    --primary-foreground: #12140f;
    --secondary: #232820;
    --secondary-foreground: #eef1e6;
    --muted: #232820;
    --muted-foreground: #9aa192;
    --accent: #1a1e15;
    --accent-foreground: #eef1e6;
    --destructive: #ff6467;
    --destructive-foreground: #fafafa;
    --border: #333a2c;
    --input: #232820;
    --hover: rgb(255 255 255 / 0.06);
    --active: rgb(255 255 255 / 0.1);
    --sidebar: #1a1e15;
    --sidebar-foreground: #eef1e6;
    --sidebar-primary-foreground: #12140f;
    --sidebar-accent: #232820;
    --sidebar-accent-foreground: #eef1e6;
    --sidebar-row: #232820;
    --sidebar-row-control: #333a2c;
    --sidebar-border: #262c1f;
    --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: #0f110c;
    --terminal-fg: #e9ece3;
    --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 22px 45px -14px rgb(0 0 0 / 0.22);
  --shadow-card: 0 8px 26px -14px rgb(0 0 0 / 0.18);
}
:root[data-theme="dark"] {
  --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 45%, #ffffff);
  --shadow-frame: 0 22px 45px -14px rgb(0 0 0 / 0.62);
  --shadow-card: 0 8px 26px -14px rgb(0 0 0 / 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 45%, #ffffff);
    --shadow-frame: 0 22px 45px -14px rgb(0 0 0 / 0.62);
    --shadow-card: 0 8px 26px -14px rgb(0 0 0 / 0.55);
  }
}
