/*
  Ruled Index: design tokens

  A studio index pinned to a black wall. Pure black pages, thin grey
  column rules that run the full height of the content, small monospace
  text in grey "Label:" heads over white lists, and one condensed mono
  display face for the few big words. The only picture is a live field
  of characters. One vermilion accent marks what is happening now.

  Fonts (free on Google Fonts):
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Martian+Mono:wdth,wght@75..112.5,300..600&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --ri-black: #050505;        /* the page, everywhere */
  --ri-well: #0E0E0D;         /* inputs, hovered rows, code */
  --ri-rule: #3F3E3B;         /* column rules and row rules */
  --ri-rule-soft: #22221F;    /* dotted row rules inside a column */

  /* Text */
  --ri-white: #EEECE6;        /* links, list items, headlines */
  --ri-grey: #8F8D87;         /* labels, statements, meta */
  --ri-dim: #57564F;          /* past items, placeholders, field glyphs */

  /* The one accent */
  --ri-signal: #FF5B3A;       /* now, live, featured, the pressed state */
  --ri-signal-ink: #120503;   /* text on a signal fill */

  /* Fonts */
  --ri-font-display: "Martian Mono", "IBM Plex Mono", ui-monospace, monospace;
  --ri-font-body: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ri-display-stretch: 75%;  /* Martian Mono condensed */

  /* Type scale */
  --ri-text-display: clamp(40px, 8.4vw, 128px);
  --ri-text-h1: clamp(30px, 4.6vw, 64px);
  --ri-text-h2: clamp(20px, 2.4vw, 30px);
  --ri-text-body: 14px;
  --ri-text-prose: 15.5px;
  --ri-text-small: 12.5px;
  --ri-text-field: clamp(9px, 1.05vw, 13px);
  --ri-leading: 1.45;
  --ri-leading-prose: 1.75;
  --ri-leading-display: 0.9;
  --ri-tracking-display: -0.02em;

  /* Shape: square, ruled, flat */
  --ri-radius: 0;
  --ri-line: 1px solid var(--ri-rule);
  --ri-line-soft: 1px dotted var(--ri-rule);
  --ri-shadow: none;

  /* Space: a tight 4px grid */
  --ri-space-1: 4px;
  --ri-space-2: 8px;
  --ri-space-3: 12px;
  --ri-space-4: 20px;
  --ri-space-5: 32px;
  --ri-space-6: 56px;
  --ri-space-7: 96px;
  --ri-col-min: 168px;        /* narrowest index column */
  --ri-prose-width: 64ch;

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