/* opensourceperplexitycomputer.com — own palette ("field survey", chart-blue).
   The starter's token names are all kept; only the values are retuned, and a few survey tokens are
   added at the end. This is the ONLY file with colour literals. Light is the default; dark follows
   prefers-color-scheme, or [data-theme="dark"] forces it. The per-site accent (#4338ca) is declared
   once on :root so the page head's `--kortix-base` / `--ring` override wins in both themes. */

:root {
  color-scheme: light;
  --background: #f5f7fb;
  --pane: #ffffff;
  --surface: #eef2f8;
  --foreground: #101a2b;
  --foreground-strong: #0b1322;
  --foreground-weak: #55627a;
  --card: #ffffff;
  --card-foreground: #101a2b;
  --popover: #ffffff;
  --popover-foreground: #101a2b;
  --primary: #101a2b;
  --primary-foreground: #f5f7fb;
  --secondary: #e6ecf5;
  --secondary-foreground: #101a2b;
  --muted: #e9eef6;
  --muted-foreground: #55627a;
  --accent: #eef2f8;
  --accent-foreground: #101a2b;
  --destructive: #b4342a;
  --destructive-foreground: #fafafa;
  --border: #d3dcea;
  --input: #e6ecf5;
  --ring: #4338ca;
  --hover: rgb(16 26 43 / 0.05);
  --active: rgb(16 26 43 / 0.09);
  --sidebar: #eef2f8;
  --sidebar-foreground: #101a2b;
  --sidebar-primary: #4338ca;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e6ecf5;
  --sidebar-accent-foreground: #101a2b;
  --sidebar-row: #eef2f8;
  --sidebar-row-control: #e6ecf5;
  --sidebar-border: #d3dcea;
  --sidebar-ring: #4338ca;
  --kortix-base: #4338ca;
  --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: #0c1524;
  --terminal-fg: #dfe7f3;
  --terminal-border: rgb(255 255 255 / 0.1);
  --font-sans:
    'Karla', ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono:
    'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  --font-sans-system:
    'Karla', ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono-system:
    'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  --font-heading:
    'Spectral', ui-serif, Georgia, 'Times New Roman', Cambria, 'Noto Serif', serif;
  --tracking-tight: -0.02em;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-relaxed: 1.625;
  --radius: 0.375rem;
  --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) + 8px);
  --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(16 26 43 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(16 26 43 / 0.08), 0 1px 2px -1px rgb(16 26 43 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(16 26 43 / 0.08), 0 2px 4px -2px rgb(16 26 43 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(16 26 43 / 0.09), 0 4px 6px -4px rgb(16 26 43 / 0.09);
  --shadow-xl: 0 20px 25px -5px rgb(16 26 43 / 0.1), 0 8px 10px -6px rgb(16 26 43 / 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: #0a0f19;
  --pane: #0c1320;
  --surface: #111a2a;
  --foreground: #eef3fb;
  --foreground-strong: #ffffff;
  --foreground-weak: #93a1b8;
  --card: #121b2b;
  --card-foreground: #eef3fb;
  --popover: #121b2b;
  --popover-foreground: #eef3fb;
  --primary: #eef3fb;
  --primary-foreground: #0a0f19;
  --secondary: #1a2436;
  --secondary-foreground: #eef3fb;
  --muted: #1a2436;
  --muted-foreground: #93a1b8;
  --accent: #111a2a;
  --accent-foreground: #eef3fb;
  --destructive: #ff6467;
  --destructive-foreground: #fafafa;
  --border: #24314a;
  --input: #1a2436;
  --hover: rgb(255 255 255 / 0.06);
  --active: rgb(255 255 255 / 0.1);
  --sidebar: #111a2a;
  --sidebar-foreground: #eef3fb;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1a2436;
  --sidebar-accent-foreground: #eef3fb;
  --sidebar-row: #1a2436;
  --sidebar-row-control: #24314a;
  --sidebar-border: #1a2436;
  --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: #060b14;
  --terminal-fg: #e3ebf7;
  --terminal-border: rgb(255 255 255 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #0a0f19;
    --pane: #0c1320;
    --surface: #111a2a;
    --foreground: #eef3fb;
    --foreground-strong: #ffffff;
    --foreground-weak: #93a1b8;
    --card: #121b2b;
    --card-foreground: #eef3fb;
    --popover: #121b2b;
    --popover-foreground: #eef3fb;
    --primary: #eef3fb;
    --primary-foreground: #0a0f19;
    --secondary: #1a2436;
    --secondary-foreground: #eef3fb;
    --muted: #1a2436;
    --muted-foreground: #93a1b8;
    --accent: #111a2a;
    --accent-foreground: #eef3fb;
    --destructive: #ff6467;
    --destructive-foreground: #fafafa;
    --border: #24314a;
    --input: #1a2436;
    --hover: rgb(255 255 255 / 0.06);
    --active: rgb(255 255 255 / 0.1);
    --sidebar: #111a2a;
    --sidebar-foreground: #eef3fb;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #1a2436;
    --sidebar-accent-foreground: #eef3fb;
    --sidebar-row: #1a2436;
    --sidebar-row-control: #24314a;
    --sidebar-border: #1a2436;
    --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: #060b14;
    --terminal-fg: #e3ebf7;
    --terminal-border: rgb(255 255 255 / 0.1);
  }
}

/* Survey additions (not in the kit). */
:root {
  /* The accent as a glyph or link on the page ground. */
  --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;
  /* Survey chart grid and rules. */
  --grid-line: #e2e8f2;
  --rule-strong: #c3cfe1;
  --grid-step: 1.75rem;
  --shadow-card: 0 12px 32px -14px rgb(16 26 43 / 0.2);
  --shadow-frame: 0 30px 60px -22px rgb(16 26 43 / 0.28);
}
:root[data-theme="dark"] {
  --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 58%, #ffffff);
  --grid-line: #16203294;
  --rule-strong: #2f3d58;
  --shadow-card: 0 12px 32px -14px rgb(0 0 0 / 0.6);
  --shadow-frame: 0 30px 60px -22px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 58%, #ffffff);
    --grid-line: #16203294;
    --rule-strong: #2f3d58;
    --shadow-card: 0 12px 32px -14px rgb(0 0 0 / 0.6);
    --shadow-frame: 0 30px 60px -22px rgb(0 0 0 / 0.7);
  }
}
