/*
 * Rail Box: tokens
 *
 * A dark, minimal tool that does one thing. A pure black page, a slim
 * icon rail down the left edge (a tab bar along the bottom on phones),
 * and one centered input box with a small line-drawn mascot sitting on
 * top of it. Everything is set in one monospace family, all copy is
 * lowercase, controls are soft rounded chips in three greys and the
 * active choice is a white chip with black text. No brand color: the
 * only tints are a mint "done" and a rose "oops". Minimal, cheeky,
 * friendly and functional.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --rb-black: #040405;        /* the page */
  --rb-rail: #0E0E10;         /* the rail, the bottom bar, tiles */
  --rb-chip: #1A1A1D;         /* chips, inputs on hover, code */
  --rb-chip-hi: #26262A;      /* chip hover, the active rail item */
  --rb-line: #2C2C31;         /* every 1px border */

  /* Text */
  --rb-white: #F1F1F3;        /* headings, the active chip, the mascot */
  --rb-text: #C4C4CA;         /* body copy */
  --rb-mute: #85858E;         /* labels, help, rail labels, placeholders */
  --rb-dim: #4E4E55;          /* footnotes, disabled */

  /* Tints (states only, never decoration) */
  --rb-mint: #93E2B4;         /* done, saved, included */
  --rb-rose: #FF8F8F;         /* errors, the mascot's blush */
  --rb-on-white: #050506;     /* text on the white chip */

  /* Type */
  --rb-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rb-text-hero: clamp(28px, 4.2vw, 48px);
  --rb-text-h2: clamp(22px, 2.8vw, 30px);
  --rb-text-h3: 16px;
  --rb-text-lead: 16px;
  --rb-text-body: 14px;
  --rb-text-small: 13px;
  --rb-text-micro: 11px;
  --rb-weight: 400;
  --rb-weight-medium: 500;
  --rb-weight-bold: 600;
  --rb-tracking-hero: -0.04em;
  --rb-tracking-h2: -0.025em;
  --rb-leading: 1.7;
  --rb-leading-tight: 1.12;

  /* Shape */
  --rb-radius-chip: 10px;     /* chips, buttons, inputs */
  --rb-radius-box: 14px;      /* the big input box, tiles, cards */
  --rb-radius-rail: 12px;     /* rail items */
  --rb-radius-round: 999px;   /* the "supported" pill and dots */
  --rb-border: 1px solid var(--rb-line);
  --rb-focus: 0 0 0 3px var(--rb-chip-hi), 0 0 0 4px var(--rb-mute);
  --rb-shadow: none;          /* no shadows, ever */

  /* Space */
  --rb-rail-w: 72px;          /* width of the left rail */
  --rb-bar-h: 64px;           /* height of the bottom bar on phones */
  --rb-box: 620px;            /* max width of the input box and articles */
  --rb-wide: 1040px;          /* max width of tile grids */
  --rb-pad: 32px;             /* side padding of the main area */
  --rb-gap: 8px;              /* between chips */
  --rb-section: 112px;        /* between sections */
  --rb-chip-h: 34px;
  --rb-input-h: 48px;

  /* Motion */
  --rb-fast: 120ms;
  --rb-ease: cubic-bezier(.2, .7, .2, 1);
}
