/*
  Ribbon Mono: design tokens

  Feel: a hand-kept project page that reads like a manual. A near-black
  page, one narrow column of monospace text, small uppercase cyan labels
  hanging in the left margin ("SYNOPSIS", "HOW IT WORKS"), square solid
  buttons in magenta and periwinkle next to dashed outline ones, a
  diagonal ribbon across the top right corner, a drawn pixel mascot, and
  diagrams made of nothing but nested bordered boxes. No gradients, no
  shadows, no rounded corners. Nerdy, retro and honest, with a wink.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300;400;600&family=Silkscreen&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --rb-void: #09090b;     /* page background */
  --rb-panel: #121217;    /* app windows, code boxes, cards */
  --rb-raise: #1b1b22;    /* bars inside panels, hovered rows */
  --rb-line: #2f2f3b;     /* every border and divider */
  --rb-line-strong: #4a4a5c; /* nested box borders, dashed buttons at rest */

  /* Text */
  --rb-text: #dad9e5;     /* body text */
  --rb-muted: #86859b;    /* captions, braces, hashes, dates */
  --rb-ink: #09090b;      /* text on magenta, periwinkle and the ribbon */

  /* Accents */
  --rb-magenta: #f26ad6;  /* primary button, product name, links on hover */
  --rb-magenta-deep: #d94cbd; /* primary hover */
  --rb-peri: #9b95ff;     /* secondary button, ribbon, mascot, links */
  --rb-peri-deep: #827bf0;/* secondary hover */
  --rb-cyan: #79d4ee;     /* margin labels, table heads */
  --rb-amber: #f6c55d;    /* the pixel marker after feature headings, notes */
  --rb-mint: #8fdfa9;     /* success, "online" dots, included ticks */
  --rb-coral: #f58a7a;    /* errors */

  /* Fonts */
  --rb-font: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;
  --rb-font-pixel: "Silkscreen", "Martian Mono", ui-monospace, monospace;

  /* Type scale (the mono face is wide, so sizes stay small) */
  --rb-size-hero: clamp(1.25rem, 2.4vw, 1.625rem);
  --rb-size-h2: 1.0625rem;
  --rb-size-h3: 0.9375rem;
  --rb-size-body: 0.875rem;
  --rb-size-small: 0.8125rem;
  --rb-size-label: 0.75rem;
  --rb-size-micro: 0.6875rem;
  --rb-size-price: clamp(1.75rem, 3.6vw, 2.25rem);
  --rb-leading: 1.75;
  --rb-leading-tight: 1.35;
  --rb-track-label: 0.08em;

  /* Shape */
  --rb-radius: 0;
  --rb-border: 1px solid var(--rb-line);
  --rb-border-box: 1px solid var(--rb-line-strong);
  --rb-border-dashed: 1px dashed var(--rb-magenta);
  --rb-shadow: none;
  --rb-pixel: 4px;        /* one pixel of the mascot and markers */

  /* Space */
  --rb-space-1: 0.25rem;
  --rb-space-2: 0.5rem;
  --rb-space-3: 0.75rem;
  --rb-space-4: 1rem;
  --rb-space-5: 1.5rem;
  --rb-space-6: 2rem;
  --rb-space-7: 3rem;
  --rb-space-8: 4.5rem;
  --rb-column: 760px;     /* the one reading column */
  --rb-margin: 9rem;      /* the hanging label margin on wide screens */
  --rb-gutter: clamp(1rem, 4vw, 2rem);
}
