/* 1zoku.radio text mode: tokens.
   One font, one cell (1ch x 1lh), five colors. Everything else is built from these.
   WebTUI reads --background*, --foreground*, --font-*, --line-height, --box-*; we set them here. */

@font-face {
  font-family: "Plex Mono";
  src: url("https://cdn.jsdelivr.net/npm/@ibm/plex-mono@1.1.0/fonts/complete/woff2/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("https://cdn.jsdelivr.net/npm/@ibm/plex-mono@1.1.0/fonts/complete/woff2/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* color: black screen, light gray phosphor, one signal, one alarm */
  --black: #000;
  --gray: #cfcfcf;      /* text */
  --gray-dim: #8d8d8d;  /* meta, secondary (6.6:1 on black) */
  --gray-rule: #555;    /* box lines, disabled */
  --gray-field: #161616;/* input wells */
  --gray-press: #2a2a2a;
  --signal: #39ff14;    /* playing, current, success */
  --alarm: #ff2e63;     /* LIVE and sold out only */

  /* WebTUI theme mapping */
  --background0: var(--black);
  --background1: var(--gray-field);
  --background2: var(--gray-press);
  --background3: var(--gray-rule);
  --foreground0: var(--gray);
  --foreground1: var(--gray-dim);
  --foreground2: var(--gray-rule);
  --box-border-color: var(--gray-rule);
  --box-border-width: 1px;
  --box-double-border-width: 1px;
  --table-border-width: 1px;
  --separator-width: 1px;

  /* type: one monospace, one size; hierarchy comes from color, weight and figlet */
  --font-family: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-size: 15px;
  --line-height: 1.5;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* space, in cells */
  --gap: 1ch;
  --gutter: 2ch;
  --pad: 2ch;          /* panel inner padding */
  --row: 1lh;
  --measure: 72ch;     /* prose */
  --screen: 104ch;     /* page width */
}

@media (max-width: 640px) {
  /* 14px x 1.6 = 22.4px rows, so a 2-row hit area clears 44px */
  :root { --font-size: 14px; --line-height: 1.6; --gutter: 1ch; --pad: 1.5ch; }
}
