/* Gaffo AI: design tokens. Every other stylesheet uses these names only.
   Direction (round 3, 2026-11-04): a pixel-arcade editing suite. Green is the brand; a flat retro label palette
   (like an editor's clip label colours) brings the colour. Square, stepped pixel corners; flat fills and dithers. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/assets/fonts/silkscreen/silkscreen-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/assets/fonts/silkscreen/silkscreen-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;

  /* ground and surfaces */
  --bg: #08090b;
  --bg-2: #101216;
  --panel: #16181d;
  --panel-2: #1c1f25;
  --panel-3: #262a32;
  --well: #0b0c0f;          /* inset areas: monitor, track lanes */
  --edge: #2a2e36;          /* hairlines inside interface fragments */
  --edge-hi: #3a3f49;

  /* green grounds: the hero field, bands, the footer */
  --field: #021912;
  --field-2: #052c1e;
  --field-3: #0a4430;

  /* ink */
  --ink: #f1f4f2;
  --ink-2: #aeb6bf;         /* 8.9:1 on --bg */
  --ink-3: #8a929d;         /* 5.9:1 on --bg, 5.0:1 on --panel-2 */
  --ink-dark: #0a0b0c;      /* text on any bright colour */

  /* the brand */
  --green: #00ff85;
  --green-hi: #9dffcf;
  --green-lo: #00a856;
  --green-deep: #006b37;
  --green-ink: #04140b;     /* text on green */
  --green-wash: rgb(0 255 133 / 0.12);

  /* the label palette (flat, like clip label colours); each has a darker step for bevels and frames */
  --yellow: #ffd447;  --yellow-lo: #c99a12;
  --pink: #ff5c8a;    --pink-lo: #c22d5c;
  --sky: #3fd0ff;     --sky-lo: #1490c2;
  --violet: #a88bff;  --violet-lo: #6c4fd6;
  --orange: #ff9b3d;  --orange-lo: #c4650f;

  /* errors only (form fields, destructive buttons) */
  --err: #ff9a9a;

  /* window-button silver */
  --chrome-2: #c9d0d8;
  --chrome-3: #8b939e;

  /* clips in the suite: label colours, toned a step down so text on them stays dark and crisp */
  --clip-v: #3a8fd6;        /* video: sky */
  --clip-v-hi: #6cc3ff;
  --clip-a: #1f8a55;        /* audio: green */
  --clip-a-hi: #3fd38a;
  --clip-t: #d94f86;        /* titles / captions: pink */
  --clip-g: #8a6ff0;        /* graphics: violet */
  --clip-y: #e0b52a;        /* music / markers: yellow */

  /* type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-pixel: "Silkscreen", "JetBrains Mono", monospace;

  --t-hero: clamp(3rem, 1.2rem + 6.4vw, 7.25rem);
  --t-h2: clamp(2.125rem, 1.2rem + 3.2vw, 4rem);
  --t-h3: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  --t-lead: clamp(1.125rem, 1.02rem + .4vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-ui: .8125rem;         /* inside interface fragments */
  --t-label: .75rem;        /* Silkscreen labels: 12px (the functional-text floor is 11px) */

  /* space */
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1360px;
  --section: clamp(104px, 12vw, 184px);

  /* shape: pixels, not curves. --px is one "pixel" of the frames and bevels. */
  --px: 4px;
  --r-ui: 0;
  --r-win: 0;
  --r-card: 0;
  --r-btn: 0;

  /* motion (Emil Kowalski's curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --d-press: 120ms;
  --d-hover: 160ms;
  --d-ui: 220ms;
  --d-enter: 560ms;
  --stagger: 60ms;

  --z-nav: 50;
  --z-overlay: 60;
}
