/* durableexecutionguide.com — "The Recovery Dossier" tokens.
   Warm paper white, warm ink, warm hairlines, one oxblood accent. Every colour on the site is
   declared here; components and CSS reference the variable names only. Light is the default, dark
   follows prefers-color-scheme or [data-theme="dark"]. Token names are the starter's, retuned. */

:root {
  color-scheme: light;
  --background: #fffefb;
  --pane: #fffefb;
  --surface: #faf6ee;
  --foreground: #171310;
  --foreground-strong: #171310;
  --foreground-weak: #5c554c;
  --card: #f8f4ec;
  --card-foreground: #171310;
  --popover: #fffefb;
  --popover-foreground: #171310;
  --primary: #171310;
  --primary-foreground: #fdfaf4;
  --secondary: #f1eadc;
  --secondary-foreground: #171310;
  --muted: #f1eadc;
  --muted-foreground: #5c554c;
  --accent: #f8f4ec;
  --accent-foreground: #171310;
  --destructive: #a01d1d;
  --destructive-foreground: #fffefb;
  --border: #e2d9c9;
  --input: #eee7da;
  --ring: #6b1226;
  --hover: rgb(23 19 16 / 0.045);
  --active: rgb(23 19 16 / 0.08);
  --sidebar: #f8f4ec;
  --sidebar-foreground: #171310;
  --sidebar-primary: #6b1226;
  --sidebar-primary-foreground: #fdfaf4;
  --sidebar-accent: #f1eadc;
  --sidebar-accent-foreground: #171310;
  --sidebar-row: #f8f4ec;
  --sidebar-row-control: #eee7da;
  --sidebar-border: #e2d9c9;
  --sidebar-ring: #6b1226;
  --kortix-base: #6b1226;
  --kortix-green: #1c6b3a;
  --kortix-red: #a01d1d;
  --kortix-orange: #9a5a10;
  --kortix-yellow: #7a5c00;
  --kortix-blue: #1f4f86;
  --kortix-purple: #6a3b86;
  --chart-1: #d8a531;
  --chart-2: #b97324;
  --chart-3: #8f5718;
  --chart-4: #6d3f10;
  --chart-5: #4d2c0b;
  --terminal-surface: #171310;
  --terminal-fg: #f0e9dc;
  --terminal-border: rgb(255 255 255 / 0.14);
  --font-sans: 'Domine', Georgia, 'Times New Roman', serif;
  --font-mono: 'Oxygen Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans-system: 'Titillium Web', ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --font-mono-system: 'Oxygen Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking-tight: -0.01em;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-relaxed: 1.65;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-xl: 4px;
  --radius-2xl: 4px;
  --spacing: 0.25rem;
  --text-xs: 0.8125rem;
  --text-xs-line-height: calc(1.45 / 0.8125);
  --text-sm: 0.875rem;
  --text-sm-line-height: calc(1.5 / 0.875);
  --text-md: 0.9375rem;
  --text-md-line-height: calc(1.6 / 0.9375);
  --text-base: 1rem;
  --text-base-line-height: calc(1.65 / 1);
  --text-lg: 1.0625rem;
  --text-lg-line-height: calc(1.65 / 1.0625);
  --text-xl: 1.25rem;
  --text-xl-line-height: calc(1.5 / 1.25);
  --text-2xl: 1.5rem;
  --text-2xl-line-height: calc(1.25 / 1.5);
  --text-3xl: 1.75rem;
  --text-3xl-line-height: calc(1.2 / 1.75);
  --text-4xl: 2.125rem;
  --text-4xl-line-height: calc(1.15 / 2.125);
  --text-5xl: 2.75rem;
  --text-5xl-line-height: 1.05;
  --text-6xl: 3.5rem;
  --text-6xl-line-height: 1.02;
  --text-7xl: 4.25rem;
  --text-7xl-line-height: 1;
  --text-8xl: 5.25rem;
  --text-8xl-line-height: 1;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --duration-fast: 120ms;
  --duration-normal: 160ms;
  --duration-moderate: 220ms;
  --duration-slow: 320ms;
  --duration-slower: 520ms;
  --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: #121110;
  --pane: #121110;
  --surface: #191715;
  --foreground: #f6f1e9;
  --foreground-strong: #f6f1e9;
  --foreground-weak: #aaa298;
  --card: #1b1917;
  --card-foreground: #f6f1e9;
  --popover: #1b1917;
  --popover-foreground: #f6f1e9;
  --primary: #f6f1e9;
  --primary-foreground: #141110;
  --secondary: #232019;
  --secondary-foreground: #f6f1e9;
  --muted: #232019;
  --muted-foreground: #aaa298;
  --accent: #1b1917;
  --accent-foreground: #f6f1e9;
  --destructive: #e57373;
  --destructive-foreground: #141110;
  --border: #2c2825;
  --input: #232019;
  --hover: rgb(255 255 255 / 0.06);
  --active: rgb(255 255 255 / 0.1);
  --sidebar: #1b1917;
  --sidebar-foreground: #f6f1e9;
  --sidebar-primary: #f6f1e9;
  --sidebar-primary-foreground: #141110;
  --sidebar-accent: #232019;
  --sidebar-accent-foreground: #f6f1e9;
  --sidebar-row: #1b1917;
  --sidebar-row-control: #232019;
  --sidebar-border: #2c2825;
  --sidebar-ring: #d98a97;
  --kortix-green: #6fbf8b;
  --kortix-red: #e57373;
  --kortix-orange: #d9a24f;
  --kortix-yellow: #d7c05a;
  --kortix-blue: #7fb0e6;
  --kortix-purple: #b894d6;
  --chart-1: #d8a531;
  --chart-2: #b97324;
  --chart-3: #8f5718;
  --chart-4: #6d3f10;
  --chart-5: #4d2c0b;
  --terminal-surface: #0d0c0b;
  --terminal-fg: #f0e9dc;
  --terminal-border: rgb(255 255 255 / 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #121110;
    --pane: #121110;
    --surface: #191715;
    --foreground: #f6f1e9;
    --foreground-strong: #f6f1e9;
    --foreground-weak: #aaa298;
    --card: #1b1917;
    --card-foreground: #f6f1e9;
    --popover: #1b1917;
    --popover-foreground: #f6f1e9;
    --primary: #f6f1e9;
    --primary-foreground: #141110;
    --secondary: #232019;
    --secondary-foreground: #f6f1e9;
    --muted: #232019;
    --muted-foreground: #aaa298;
    --accent: #1b1917;
    --accent-foreground: #f6f1e9;
    --destructive: #e57373;
    --destructive-foreground: #141110;
    --border: #2c2825;
    --input: #232019;
    --hover: rgb(255 255 255 / 0.06);
    --active: rgb(255 255 255 / 0.1);
    --sidebar: #1b1917;
    --sidebar-foreground: #f6f1e9;
    --sidebar-primary: #f6f1e9;
    --sidebar-primary-foreground: #141110;
    --sidebar-accent: #232019;
    --sidebar-accent-foreground: #f6f1e9;
    --sidebar-row: #1b1917;
    --sidebar-row-control: #232019;
    --sidebar-border: #2c2825;
    --sidebar-ring: #d98a97;
    --kortix-green: #6fbf8b;
    --kortix-red: #e57373;
    --kortix-orange: #d9a24f;
    --kortix-yellow: #d7c05a;
    --kortix-blue: #7fb0e6;
    --kortix-purple: #b894d6;
    --chart-1: #d8a531;
    --chart-2: #b97324;
    --chart-3: #8f5718;
    --chart-4: #6d3f10;
    --chart-5: #4d2c0b;
    --terminal-surface: #0d0c0b;
    --terminal-fg: #f0e9dc;
    --terminal-border: rgb(255 255 255 / 0.16);
  }
}

/* Site additions. */
:root {
  /* The accent where it has to read on the ground (links, marks, rules). */
  --kortix-base-ink: var(--kortix-base);
  /* The comparison's poured column: accent field, light ink on it. */
  --slab-bg: #6b1226;
  --slab-fg: #fdf7f2;
  --slab-muted: #ecd3d8;
  /* The closing footer band (inverts in dark). */
  --band-bg: #171310;
  --band-fg: #f4efe5;
  --band-muted: #cbc2b2;
  --band-border: rgb(255 255 255 / 0.16);
  /* Diff tints, read from the status tokens so they stay theme-aware. */
  --diff-add: color-mix(in oklab, var(--kortix-green) 12%, transparent);
  --diff-del: color-mix(in oklab, var(--kortix-red) 12%, transparent);
  --transparent: transparent;
  --mask-solid: #000;
  --shadow-frame: none;
  --shadow-card: none;
}
:root[data-theme="dark"] {
  --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 38%, #ffffff);
  --slab-bg: #5c0f21;
  --slab-fg: #fdf7f2;
  --slab-muted: #e6cdd2;
  --band-bg: #f3ece2;
  --band-fg: #171310;
  --band-muted: #4b433a;
  --band-border: rgb(0 0 0 / 0.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kortix-base-ink: color-mix(in oklab, var(--kortix-base) 38%, #ffffff);
    --slab-bg: #5c0f21;
    --slab-fg: #fdf7f2;
    --slab-muted: #e6cdd2;
    --band-bg: #f3ece2;
    --band-fg: #171310;
    --band-muted: #4b433a;
    --band-border: rgb(0 0 0 / 0.16);
  }
}
