/*
  Index Rail: tokens.

  Feel: a plain, raw, all-monospace page that reads like a well kept
  manual. Off-white paper, near-black ink, one typeface at three weights.
  A numbered index rail runs down the left ("[1] Docs"), product surfaces
  sit in square black tiles, buttons are square black blocks with a split
  caret, and the only color is a small kiln-orange block cursor.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --ir-paper: #F6F6F3;
  --ir-paper-2: #EDEDE9;
  --ir-line: #D8D8D3;
  --ir-line-strong: #B9B9B3;

  /* Ink */
  --ir-ink: #151515;
  --ir-soft: #5C5C58;
  --ir-faint: #96968F;

  /* Tiles (the black product screens) */
  --ir-tile: #191919;
  --ir-tile-2: #262626;
  --ir-tile-line: #3A3A3A;
  --ir-on-tile: #ECECE7;
  --ir-on-tile-soft: #8E8E88;

  /* The one accent: kiln orange, for the block cursor, focus and "live" dots */
  --ir-kiln: #E2552C;
  --ir-kiln-soft: #F7DED4;

  /* Status */
  --ir-ok: #2F7A4A;
  --ir-ok-soft: #DCEBE0;

  /* Type */
  --ir-font: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ir-text-display: clamp(34px, 5.4vw, 64px);
  --ir-text-h2: clamp(24px, 3vw, 32px);
  --ir-text-h3: 18px;
  --ir-text-lead: 17px;
  --ir-text-body: 15px;
  --ir-text-small: 13px;
  --ir-text-micro: 11px;
  --ir-leading: 1.6;
  --ir-tracking-display: -0.02em;

  /* Shape: everything is square */
  --ir-radius: 0;
  --ir-border: 1px solid var(--ir-line);
  --ir-border-strong: 1px solid var(--ir-line-strong);
  --ir-shadow: none;
  --ir-focus: 0 0 0 2px var(--ir-paper), 0 0 0 4px var(--ir-kiln);

  /* Space (8px steps) */
  --ir-space-1: 4px;
  --ir-space-2: 8px;
  --ir-space-3: 12px;
  --ir-space-4: 16px;
  --ir-space-5: 24px;
  --ir-space-6: 32px;
  --ir-space-7: 48px;
  --ir-space-8: 72px;
  --ir-space-9: 112px;

  /* Layout */
  --ir-rail: 200px;
  --ir-main: 1080px;
  --ir-read: 680px;
  --ir-tile-w: 300px;
}
