/*
 * Larthia design tokens: the one source of every colour, size and motion value.
 * The logo SVGs in web/brand use the same literal values; internal/brand's
 * tests check that, and that no other colour appears in a CSS or SVG file.
 */
:root {
  /* Surfaces */
  --carbon-950: #0A0B0D;   /* page background base, weave shadow */
  --carbon-800: #16181C;   /* weave highlight, raised surfaces */
  --slate-700: #363A41;    /* panels, from the 2019 logo */
  --slate-500: #5B616B;    /* borders and dividers */

  /* Accent: the 2019 amber, shifted towards orange */
  --accent-500: #F5A524;
  --accent-600: #C77F0A;   /* pressed state */
  --accent-300: #FFC766;   /* hover highlight */
  --accent-200: #FFE3A3;   /* light on the knight: lit links */
  --accent-100: #FFF8E8;   /* light on the knight: sparks and rims */

  /* Text */
  --text-100: #F2F0EA;     /* body text */
  --text-400: #B4B8BF;     /* secondary text */

  /* Feedback */
  --danger-400: #FF8A80;

  /* Carbon-fibre weave: the tile (generated by cmd/brandgen) runs from the dark
     tone to the peak, the crown of a thread; the sheen is the strongest light
     the CSS lays over it. Text contrast is measured at peak plus sheen. */
  --weave-dark: var(--carbon-950);
  --weave-peak: #2A2D33;
  --weave-sheen: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: "Chakra Petch", "Eurostile", "Bahnschrift", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-3xl: clamp(2.25rem, 6vw, 4rem);
  --leading: 1.6;

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --measure: 68ch;
  --page-width: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Focus */
  --focus-ring: 3px solid var(--accent-300);
  --focus-offset: 3px;

  /* Motion: nothing lasts longer than 1.5s and nothing loops */
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-draw: 1.2s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
