/* Craik brand tokens: tokens.css

   GENERATED from brand/DESIGN.md (version 1.5, 2026-10-06)
   by fidoria_internal_processes/tools/build_brand_css.py.
   Do not edit this file by hand. Change DESIGN.md and run the generator.

   Load this file before components.css. Light mode is the default;
   set data-theme="dark" on the <html> element for dark mode.

   Copyright 2026 Craik AI Inc. */

/* Fonts: self-hosted from fonts/, under the SIL Open Font License
   (fonts/OFL-Barlow.txt, fonts/OFL-IBM-Plex.txt). */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Light mode colours (the default). */
:root, [data-theme="light"] {
  color-scheme: light;
  --brand-color-background: #F5F6F6;
  --brand-color-surface: #FBFCFC;
  --brand-color-surface-sunken: #EBEDEE;
  --brand-color-border: #B5BCC1;
  --brand-color-control-border: #838F97;
  --brand-color-text: #0A141F;
  --brand-color-text-muted: #687078;
  --brand-color-primary: #1B8050;
  --brand-color-signature: #BE29BC;
  --brand-color-link: #9B641F;
  --brand-color-supporting: #5A628F;
  --brand-color-supporting-tint: #5A628F14;
  --brand-color-supporting-tint-strong: #5A628F24;
  --brand-color-info: #3173B7;
  --brand-color-data-viz: #B94D4E;
  --brand-color-error: #AE2825;
  --brand-color-button-fill: #22A165;
  --brand-color-button-fill-hover: #27BA75;
  --brand-color-button-fill-pressed: #1E905A;
  --brand-color-button-label: #0A141F;
}

/* Dark mode colours: set data-theme="dark" on the <html> element. */
[data-theme="dark"] {
  color-scheme: dark;
  --brand-color-background: #0A141F;
  --brand-color-surface: #10231D;
  --brand-color-surface-sunken: #142F1C;
  --brand-color-border: #31483A;
  --brand-color-control-border: #4F745D;
  --brand-color-text: #DFF9FD;
  --brand-color-text-muted: #B5BCC1;
  --brand-color-primary: #25AE6D;
  --brand-color-signature: #D94CD6;
  --brand-color-link: #E6B982;
  --brand-color-supporting: #7F86AF;
  --brand-color-supporting-tint: #7F86AF14;
  --brand-color-supporting-tint-strong: #7F86AF24;
  --brand-color-info: #498CCF;
  --brand-color-data-viz: #C97576;
  --brand-color-error: #DD605D;
  --brand-color-button-fill: #25AE6D;
  --brand-color-button-fill-hover: #2AC77D;
  --brand-color-button-fill-pressed: #219D62;
  --brand-color-button-label: #0A141F;
}

/* Values that do not change with the mode. */
:root {
  --brand-color-gradient-start: #25AE6D;
  --brand-color-gradient-mid: #5A628F;
  --brand-color-gradient-end: #D437D1;
  --brand-type-display-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-display-size: 62px;
  --brand-type-display-weight: 600;
  --brand-type-display-line-height: 1.02;
  --brand-type-display-tracking: 0.005em;
  --brand-type-display: 600 62px/1.02 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-headline-lg-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-headline-lg-size: 34px;
  --brand-type-headline-lg-weight: 600;
  --brand-type-headline-lg-line-height: 1.05;
  --brand-type-headline-lg-tracking: 0.005em;
  --brand-type-headline-lg: 600 34px/1.05 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-headline-md-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-headline-md-size: 24px;
  --brand-type-headline-md-weight: 600;
  --brand-type-headline-md-line-height: 1.1;
  --brand-type-headline-md-tracking: 0.005em;
  --brand-type-headline-md: 600 24px/1.1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-stat-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-stat-size: 48px;
  --brand-type-stat-weight: 600;
  --brand-type-stat-line-height: 1;
  --brand-type-stat-tracking: 0.005em;
  --brand-type-stat: 600 48px/1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-chat-speaker-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-chat-speaker-size: 20px;
  --brand-type-chat-speaker-weight: 600;
  --brand-type-chat-speaker-line-height: 1.2;
  --brand-type-chat-speaker-tracking: 0em;
  --brand-type-chat-speaker: 600 20px/1.2 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --brand-type-eyebrow-family: Barlow, system-ui, sans-serif;
  --brand-type-eyebrow-size: 12px;
  --brand-type-eyebrow-weight: 600;
  --brand-type-eyebrow-line-height: 1.3;
  --brand-type-eyebrow-tracking: 0.12em;
  --brand-type-eyebrow: 600 12px/1.3 Barlow, system-ui, sans-serif;
  --brand-type-body-marketing-family: Barlow, system-ui, sans-serif;
  --brand-type-body-marketing-size: 17px;
  --brand-type-body-marketing-weight: 400;
  --brand-type-body-marketing-line-height: 1.55;
  --brand-type-body-marketing-tracking: 0em;
  --brand-type-body-marketing: 400 17px/1.55 Barlow, system-ui, sans-serif;
  --brand-type-body-ui-family: Barlow, system-ui, sans-serif;
  --brand-type-body-ui-size: 15px;
  --brand-type-body-ui-weight: 400;
  --brand-type-body-ui-line-height: 1.5;
  --brand-type-body-ui-tracking: 0em;
  --brand-type-body-ui: 400 15px/1.5 Barlow, system-ui, sans-serif;
  --brand-type-caption-family: Barlow, system-ui, sans-serif;
  --brand-type-caption-size: 13px;
  --brand-type-caption-weight: 400;
  --brand-type-caption-line-height: 1.4;
  --brand-type-caption-tracking: 0em;
  --brand-type-caption: 400 13px/1.4 Barlow, system-ui, sans-serif;
  --brand-type-button-primary-family: Barlow, system-ui, sans-serif;
  --brand-type-button-primary-size: 15px;
  --brand-type-button-primary-weight: 600;
  --brand-type-button-primary-line-height: 1;
  --brand-type-button-primary-tracking: 0em;
  --brand-type-button-primary: 600 15px/1 Barlow, system-ui, sans-serif;
  --brand-type-button-secondary-family: Barlow, system-ui, sans-serif;
  --brand-type-button-secondary-size: 15px;
  --brand-type-button-secondary-weight: 500;
  --brand-type-button-secondary-line-height: 1;
  --brand-type-button-secondary-tracking: 0em;
  --brand-type-button-secondary: 500 15px/1 Barlow, system-ui, sans-serif;
  --brand-type-chip-family: Barlow, system-ui, sans-serif;
  --brand-type-chip-size: 13px;
  --brand-type-chip-weight: 500;
  --brand-type-chip-line-height: 1;
  --brand-type-chip-tracking: 0em;
  --brand-type-chip: 500 13px/1 Barlow, system-ui, sans-serif;
  --brand-type-chat-input-family: Barlow, system-ui, sans-serif;
  --brand-type-chat-input-size: 15px;
  --brand-type-chat-input-weight: 400;
  --brand-type-chat-input-line-height: 1.5;
  --brand-type-chat-input-tracking: 0em;
  --brand-type-chat-input: 400 15px/1.5 Barlow, system-ui, sans-serif;
  --brand-type-chat-message-family: Barlow, system-ui, sans-serif;
  --brand-type-chat-message-size: 15px;
  --brand-type-chat-message-weight: 400;
  --brand-type-chat-message-line-height: 1.5;
  --brand-type-chat-message-tracking: 0em;
  --brand-type-chat-message: 400 15px/1.5 Barlow, system-ui, sans-serif;
  --brand-type-chat-response-family: Barlow, system-ui, sans-serif;
  --brand-type-chat-response-size: 15px;
  --brand-type-chat-response-weight: 400;
  --brand-type-chat-response-line-height: 1.6;
  --brand-type-chat-response-tracking: 0em;
  --brand-type-chat-response: 400 15px/1.6 Barlow, system-ui, sans-serif;
  --brand-type-chat-helper-family: Barlow, system-ui, sans-serif;
  --brand-type-chat-helper-size: 12px;
  --brand-type-chat-helper-weight: 400;
  --brand-type-chat-helper-line-height: 1.4;
  --brand-type-chat-helper-tracking: 0em;
  --brand-type-chat-helper: 400 12px/1.4 Barlow, system-ui, sans-serif;
  --brand-type-code-inline-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-inline-size: 0.9em;
  --brand-type-code-inline-weight: 400;
  --brand-type-code-inline-line-height: 1.5;
  --brand-type-code-inline-tracking: 0em;
  --brand-type-code-inline: 400 0.9em/1.5 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-block-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-block-size: 13.5px;
  --brand-type-code-block-weight: 400;
  --brand-type-code-block-line-height: 1.65;
  --brand-type-code-block-tracking: 0em;
  --brand-type-code-block-features: 'liga' 0, 'calt' 0;
  --brand-type-code-block: 400 13.5px/1.65 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-header-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-header-size: 12px;
  --brand-type-code-header-weight: 400;
  --brand-type-code-header-line-height: 1.4;
  --brand-type-code-header-tracking: 0em;
  --brand-type-code-header: 400 12px/1.4 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-line-number-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-code-line-number-size: 13.5px;
  --brand-type-code-line-number-weight: 400;
  --brand-type-code-line-number-line-height: 1.65;
  --brand-type-code-line-number-tracking: 0em;
  --brand-type-code-line-number: 400 13.5px/1.65 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-data-label-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-type-data-label-size: 12px;
  --brand-type-data-label-weight: 500;
  --brand-type-data-label-line-height: 1.3;
  --brand-type-data-label-tracking: 0.04em;
  --brand-type-data-label: 500 12px/1.3 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --brand-radius-sm: 4px;
  --brand-radius-md: 6px;
  --brand-radius-lg: 8px;
  --brand-radius-full: 9999px;
  --brand-space-xs: 4px;
  --brand-space-sm: 8px;
  --brand-space-md: 12px;
  --brand-space-lg: 16px;
  --brand-space-xl: 24px;
  --brand-space-2xl: 32px;
  --brand-space-3xl: 48px;
  --brand-space-4xl: 64px;
}

/* Values that point at colour roles. Declared on every [data-theme]
   element as well as :root, so each one resolves in its own mode. */
:root, [data-theme] {
  --brand-color-syntax-keyword: var(--brand-color-signature);
  --brand-color-syntax-string: var(--brand-color-primary);
  --brand-color-syntax-function: var(--brand-color-info);
  --brand-color-syntax-comment: var(--brand-color-text-muted);
  --brand-button-primary-background: var(--brand-color-button-fill);
  --brand-button-primary-color: var(--brand-color-button-label);
  --brand-button-primary-font: var(--brand-type-button-primary);
  --brand-button-primary-tracking: var(--brand-type-button-primary-tracking);
  --brand-button-primary-radius: var(--brand-radius-md);
  --brand-button-primary-padding: 12px 20px;
  --brand-button-primary-hover-background: var(--brand-color-button-fill-hover);
  --brand-button-primary-pressed-background: var(--brand-color-button-fill-pressed);
  --brand-button-secondary-background: transparent;
  --brand-button-secondary-color: var(--brand-color-supporting);
  --brand-button-secondary-border-color: var(--brand-color-supporting);
  --brand-button-secondary-font: var(--brand-type-button-secondary);
  --brand-button-secondary-tracking: var(--brand-type-button-secondary-tracking);
  --brand-button-secondary-radius: var(--brand-radius-md);
  --brand-button-secondary-padding: 12px 20px;
  --brand-button-secondary-hover-background: var(--brand-color-supporting-tint);
  --brand-button-secondary-hover-color: var(--brand-color-text);
  --brand-button-secondary-hover-border-color: var(--brand-color-text);
  --brand-button-secondary-pressed-background: var(--brand-color-supporting-tint-strong);
  --brand-button-secondary-pressed-color: var(--brand-color-text);
  --brand-button-secondary-pressed-border-color: var(--brand-color-text);
  --brand-tag-background: var(--brand-color-surface);
  --brand-tag-color: var(--brand-color-supporting);
  --brand-tag-border-color: var(--brand-color-border);
  --brand-tag-font: var(--brand-type-chip);
  --brand-tag-tracking: var(--brand-type-chip-tracking);
  --brand-tag-radius: var(--brand-radius-full);
  --brand-tag-padding: 4px 10px;
  --brand-link-color: var(--brand-color-link);
  --brand-input-background: var(--brand-color-surface);
  --brand-input-color: var(--brand-color-text);
  --brand-input-border-color: var(--brand-color-control-border);
  --brand-input-font: var(--brand-type-body-ui);
  --brand-input-tracking: var(--brand-type-body-ui-tracking);
  --brand-input-radius: var(--brand-radius-md);
  --brand-input-padding: 10px 12px;
  --brand-input-focus-border-color: var(--brand-color-primary);
  --brand-card-background: var(--brand-color-surface);
  --brand-card-border-color: var(--brand-color-border);
  --brand-card-radius: var(--brand-radius-lg);
  --brand-card-padding: 24px;
  --brand-alert-error-background: var(--brand-color-surface);
  --brand-alert-error-color: var(--brand-color-text);
  --brand-alert-error-border-color: var(--brand-color-error);
  --brand-alert-error-radius: var(--brand-radius-lg);
  --brand-alert-error-padding: 12px 16px;
  --brand-alert-error-label-color: var(--brand-color-error);
  --brand-hero-emphasis-color: var(--brand-color-signature);
  --brand-chat-message-user-background: var(--brand-color-surface-sunken);
  --brand-chat-message-user-color: var(--brand-color-text);
  --brand-chat-message-user-font: var(--brand-type-chat-message);
  --brand-chat-message-user-tracking: var(--brand-type-chat-message-tracking);
  --brand-chat-message-user-radius: var(--brand-radius-lg);
  --brand-chat-message-user-padding: 10px 14px;
  --brand-chat-response-color: var(--brand-color-text);
  --brand-chat-response-font: var(--brand-type-chat-response);
  --brand-chat-response-tracking: var(--brand-type-chat-response-tracking);
  --brand-chat-speaker-color: var(--brand-color-primary);
  --brand-chat-speaker-font: var(--brand-type-chat-speaker);
  --brand-chat-speaker-tracking: var(--brand-type-chat-speaker-tracking);
  --brand-code-inline-background: var(--brand-color-surface-sunken);
  --brand-code-inline-color: var(--brand-color-text);
  --brand-code-inline-font: var(--brand-type-code-inline);
  --brand-code-inline-tracking: var(--brand-type-code-inline-tracking);
  --brand-code-inline-radius: var(--brand-radius-sm);
  --brand-code-inline-padding: 1px 4px;
  --brand-code-block-background: var(--brand-color-surface);
  --brand-code-block-color: var(--brand-color-text);
  --brand-code-block-border-color: var(--brand-color-border);
  --brand-code-block-font: var(--brand-type-code-block);
  --brand-code-block-tracking: var(--brand-type-code-block-tracking);
  --brand-code-block-radius: var(--brand-radius-lg);
  --brand-code-block-padding: 16px;
  --brand-code-line-number-color: var(--brand-color-text-muted);
  --brand-code-line-number-font: var(--brand-type-code-line-number);
  --brand-code-line-number-tracking: var(--brand-type-code-line-number-tracking);
}
