/* design tokens, shared with gusto: the same colors, type, space and radius, switched by data-theme */

:root {
  /* Brand ramps. Relay Green is the brand color, Forest its dark partner, Volt the highlight, Carbon and Snow the neutrals. */
  --gu-green-50:  #E7F8EF;
  --gu-green-100: #C3EED8;
  --gu-green-200: #8FDFB7;
  --gu-green-300: #4FCB8B;
  --gu-green-400: #17B96D;
  --gu-green-500: #00A85A; /* Relay Green */
  --gu-green-600: #008F4C;
  --gu-green-700: #00753F; /* Forest */
  --gu-green-800: #005A31;
  --gu-green-900: #003D21;

  --gu-volt: #D8FF36; /* Volt: one spark on a page, never a fill for text */

  --gu-neutral-50:  #F5FBF6; /* Snow */
  --gu-neutral-100: #EAF4EC;
  --gu-neutral-200: #DCE9DF;
  --gu-neutral-300: #C6D6CA;
  --gu-neutral-400: #9BAEA0;
  --gu-neutral-500: #738779;
  --gu-neutral-600: #4F6055;
  --gu-neutral-700: #36443B;
  --gu-neutral-800: #1F2B24;
  --gu-neutral-900: #0E1511; /* Carbon */

  --gu-signal-50:  #EEF0FE;
  --gu-signal-100: #D8DDFD;
  --gu-signal-300: #9AA6FB;
  --gu-signal-500: #596DF8; /* Signal Blue */
  --gu-signal-700: #3A4CD1;
  --gu-signal-900: #23308F;

  /* Semantic, light (default) */
  --gu-bg: var(--gu-neutral-50);
  --gu-bg-subtle: var(--gu-neutral-100);
  --gu-surface: #FFFFFF;
  --gu-surface-sunken: #EDF5EF;
  --gu-border: var(--gu-neutral-200);
  --gu-border-strong: var(--gu-neutral-300);
  --gu-text: var(--gu-neutral-900);
  --gu-text-muted: var(--gu-neutral-700);
  --gu-text-subtle: var(--gu-neutral-600);
  --gu-text-placeholder: #5F7367; /* a placeholder is text: 4.5:1 on the page and on a field */
  --gu-text-nontext: var(--gu-neutral-500); /* icons, dividers, disabled marks. Never a string. */
  --gu-text-inverse: var(--gu-neutral-50);
  --gu-accent: var(--gu-green-500);
  --gu-accent-hover: var(--gu-green-600);
  --gu-accent-press: var(--gu-green-700);
  --gu-accent-text: var(--gu-green-700); /* green that reads as text on the page */
  --gu-accent-text-large: var(--gu-green-600);
  --gu-accent-surface: var(--gu-green-50);
  --gu-on-accent: var(--gu-neutral-900); /* Carbon on Relay Green; solid fills use --gu-accent-solid with its own text */
  --gu-accent-solid: #00844A; /* a solid fill and its text: white on a darker Relay Green */
  --gu-accent-solid-hover: #00743F;
  --gu-on-accent-solid: #FFFFFF;
  --gu-success: var(--gu-green-700);
  --gu-success-surface: var(--gu-green-50);
  --gu-warning: #8A5300;
  --gu-warning-surface: #FBF0DC;
  --gu-danger: #C7362B;
  --gu-danger-surface: #FBEBE8;
  --gu-info: var(--gu-signal-500);
  --gu-info-surface: var(--gu-signal-50);
  --gu-focus: var(--gu-signal-500);
  --gu-hover: var(--gu-neutral-200);
  --gu-rail: var(--gu-surface-sunken);
  --gu-scrim: rgb(14 21 17 / .5);

  /* Type: five sizes, two weights, two line heights, one measure. A role is chosen by its job, never by a pixel. */
  --gu-text-caption: 0.875rem;  /* metadata, labels, badges, table heads */
  --gu-text-body: 1rem;         /* running text, buttons, fields, list rows */
  --gu-text-title: 1.25rem;     /* card and section titles */
  --gu-text-heading: 1.75rem;   /* a page title on a phone, a big number */
  --gu-text-display: 2.5rem;    /* a page title from 40rem, the hero */
  --gu-weight-regular: 400;
  --gu-weight-strong: 600;
  --gu-leading-text: 1.5;       /* caption, body, title */
  --gu-leading-display: 1.25;   /* heading, display */
  --gu-measure: 66ch;           /* the width of a paragraph */
  --gu-tracking-title: -0.01em; /* set a little tighter from the title size up, and not below it */
  --gu-tracking-display: -0.02em;
  --gu-font-display: "IBM Plex Sans", system-ui, sans-serif;
  --gu-font-text: "IBM Plex Sans", system-ui, sans-serif;
  --gu-font-numeric: "IBM Plex Serif", Georgia, serif;  /* credits, prices, time left: numbers that matter */
  --gu-font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* The scale the design system sets its screens in (the React app). The role sizes above stay for the pages not yet ported. */
  --gu-text-xs: 12px;  --gu-text-sm: 14px;  --gu-text-base: 16px; --gu-text-lg: 18px;
  --gu-text-xl: 20px;  --gu-text-2xl: 24px; --gu-text-3xl: 30px; --gu-text-4xl: 36px;
  --gu-page-max: 72rem;
  --gu-terminal: #0b0f0c;

  /* Space (4pt) */
  --gu-space-1: 4px;  --gu-space-2: 8px;   --gu-space-3: 12px;
  --gu-space-4: 16px; --gu-space-5: 20px;  --gu-space-6: 24px;
  --gu-space-8: 32px; --gu-space-10: 40px; --gu-space-12: 48px;
  --gu-space-16: 64px; --gu-space-20: 80px; --gu-space-24: 96px;

  /* Radius */
  --gu-radius-xs: 4px;  --gu-radius-sm: 8px;  --gu-radius-md: 12px;
  --gu-radius-lg: 16px; --gu-radius-xl: 24px; --gu-radius-2xl: 32px;
  --gu-radius-full: 999px;

  /* Elevation — warm shadows only */
  --gu-shadow-1: 0 1px 2px rgba(23,23,23,.06);
  --gu-shadow-2: 0 4px 16px rgba(23,23,23,.08);
  --gu-shadow-3: 0 12px 32px rgba(23,23,23,.12);

  /* Motion */
  --gu-dur-instant: 120ms; --gu-dur-fast: 180ms; --gu-dur-base: 240ms;
  --gu-dur-slow: 320ms;    --gu-dur-breathe: 1600ms;
  --gu-ease-standard: cubic-bezier(.2,0,0,1);
  --gu-ease-out: cubic-bezier(0,0,0,1);
  --gu-ease-in: cubic-bezier(.3,0,1,1);
}

[data-theme="dark"] {
  --gu-bg: #0E1511;
  --gu-bg-subtle: #131C16;
  --gu-surface: #18231B;
  --gu-surface-sunken: #0B110D;
  --gu-border: #263329;
  --gu-border-strong: #35453A;
  --gu-text: #F5FBF6;
  --gu-text-muted: #9FB3A5;
  --gu-text-subtle: #9FB3A5; /* dark panels carry one muted value */
  --gu-text-placeholder: #8FA395;
  --gu-text-nontext: #6F8576;
  --gu-text-inverse: #0E1511;
  --gu-accent: #1DBF70;
  --gu-accent-hover: #45D18B;
  --gu-accent-press: #00A85A;
  --gu-accent-text: #6FE0A5;
  --gu-accent-surface: #0F2A1D;
  --gu-on-accent: #06130C;
  --gu-accent-solid: #00844A;
  --gu-accent-solid-hover: #00743F;
  --gu-on-accent-solid: #FFFFFF;
  --gu-success: #5FD99A;
  --gu-success-surface: #0F2A1D;
  --gu-warning: #E3A21F;
  --gu-warning-surface: #2E200F;
  --gu-danger: #E8695C;
  --gu-danger-surface: #2E1512;
  --gu-info: #9AA6FB;
  --gu-info-surface: #1A1D3A;
  /* Dark surfaces separate with border + raised fill, not shadow */
  --gu-shadow-1: none;
  --gu-shadow-2: none;
  --gu-shadow-3: 0 12px 32px rgba(0,0,0,.5);
  --gu-hover: #1D2B21;
  --gu-rail: #0B110D;
  --gu-scrim: rgb(0 0 0 / .6);
}
