/* Design tokens: the single source for colors, type, spacing and radii.
   Loaded before style.css and the demo stylesheets. See docs/design.md. */

/* IBM Plex Mono, self-hosted (latin subset, OFL — see /fonts/OFL.txt) */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-mono-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plex-mono-700-normal.woff2") format("woff2");
}

:root {
  /* ── color: base ─────────────────────────────── */
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: #c8c8c8;
  --faint: #9a9a9a;
  --accent: #bcd0f0;
  --border: #262626;
  --border-strong: #383838;
  --white: #fff;

  /* ── color: signal ───────────────────────────── */
  --green: #7fb28a;        /* status shipped, signal funding */
  --green-bright: #5fb36a; /* chess selection / targets, map start */
  --amber: #d4b679;        /* status wip, signal leadership, priority medium */
  --coral: #d4795f;        /* check, blocked street, priority high */
  --blue: #6ea8d8;         /* signal expansion */
  --violet: #c79bd8;       /* signal M&A */

  /* ── color: alpha variants ───────────────────── */
  --accent-04: rgba(188, 208, 240, 0.04);
  --accent-05: rgba(188, 208, 240, 0.05);
  --accent-08: rgba(188, 208, 240, 0.08);
  --green-bright-70: rgba(95, 179, 106, 0.7);
  --green-bright-75: rgba(95, 179, 106, 0.75);
  --bg-70: rgba(10, 10, 10, 0.7);
  --black-20: rgba(0, 0, 0, 0.2);
  --black-40: rgba(0, 0, 0, 0.4);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-55: rgba(0, 0, 0, 0.55);
  --black-60: rgba(0, 0, 0, 0.6);
  --white-04: rgba(255, 255, 255, 0.04);
  --white-05: rgba(255, 255, 255, 0.05);
  --white-22: rgba(255, 255, 255, 0.22);

  /* ── color: component surfaces ───────────────── */
  --logo-top: #1e1e1e;
  --logo-bottom: #141414;
  --key-top: #242424;
  --key-bottom: #181818;
  --key-pressed: #101010;
  --phone-top: #222428;
  --phone-bottom: #16181c;
  --phone-edge: #34383f;
  --phone-screen: #1a1d22;
  --phone-screen-edge: #3a3f47;
  --board-light: #a9b1bc;
  --board-dark: #6c7681;
  --board-ring: #3a4048;
  --piece-white: #fcfcfc;
  --piece-black: #15181c;

  /* ── type ────────────────────────────────────── */
  --font: "IBM Plex Mono", "Courier New", monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* font sizes (root = 16px) */
  --fs-3xs: 0.6rem;    /*  9.6px  micro labels in demos */
  --fs-2xs: 0.68rem;   /* 10.9px  status, chips, small demo text */
  --fs-xs: 0.72rem;    /* 11.5px  meta, labels, footer, kicker */
  --fs-sm: 0.8rem;     /* 12.8px  nav, section h2, buttons, descriptions */
  --fs-md: 0.85rem;    /* 13.6px  secondary copy, tables, leads */
  --fs-lg: 0.92rem;    /* 14.7px  article body, list titles */
  --fs-xl: 1rem;       /* 16px    base, home h1, logo */
  --fs-2xl: 1.1rem;    /* 17.6px  article / case h1 */
  --fs-glyph-sm: 1.5rem;  /* chess pieces, T9 demo board */
  --fs-glyph-lg: 1.9rem;  /* chess pieces, Pirc board */

  /* ── spacing: --sp-N = N px at 16px root, 4px grid (+2/6) ── */
  --sp-2: 0.125rem;
  --sp-4: 0.25rem;
  --sp-6: 0.375rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;

  /* ── radii ───────────────────────────────────── */
  --radius-sm: 4px;     /* chips, tags, kbd, boards */
  --radius-md: 6px;     /* buttons, logo, images, keys */
  --radius-lg: 12px;    /* demo frames */
  --radius-xl: 20px;    /* image pairs */
  --radius-2xl: 28px;   /* phone body */
  --radius-pill: 999px; /* pills, bars */
  --radius-full: 50%;   /* dots, portrait */

  /* ── layout ──────────────────────────────────── */
  --max: 680px;
  --header-icon-shift: 0.0625rem; /* 1px: header icons sit on the text's x-height middle */
}
