/*
 * Rail Star: design tokens
 * Open, friendly and a little homemade. Plain white pages split into blocks by thin ink rules,
 * a fixed left rail with stacked links, and big plain grotesk sentences that talk to you.
 * Rose pill controls with ink outlines, a cobalt announcement bar, and one hand-drawn
 * magenta asterisk as the mark. Pictures are drawn shapes, each with a tiny caption underneath.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: white, with one pale gray for wells and code */
  --rs-paper: #ffffff;
  --rs-well: #f3f2f0;

  /* Ink does the drawing: text, every rule, every outline */
  --rs-ink: #191919;
  --rs-soft: #5f5d5a;
  --rs-faint: #9a9792;
  --rs-rule: 1px solid var(--rs-ink);
  --rs-rule-soft: 1px solid #dcdad6;

  /* Color, used in flat blocks */
  --rs-magenta: #e5205f;      /* the asterisk, links on hover, one highlight per page */
  --rs-rose: #f07aa1;         /* pill controls and the second banner */
  --rs-rose-soft: #fbdbe6;    /* selected rows, tags */
  --rs-cobalt: #2337b8;       /* the top banner, focus rings, links */
  --rs-cobalt-soft: #dfe3fa;
  --rs-clay: #e39a54;         /* drawn artwork only */
  --rs-moss: #7aa66a;         /* drawn artwork only */

  /* Type */
  --rs-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --rs-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --rs-text-display: clamp(30px, 3.4vw, 44px);  /* the talking intro sentence */
  --rs-text-h1: clamp(36px, 5vw, 64px);
  --rs-text-h2: clamp(26px, 2.8vw, 34px);
  --rs-text-h3: 20px;
  --rs-text-body: 17px;
  --rs-text-small: 14px;
  --rs-text-caption: 12px;

  /* Shape: pills and square frames, no shadows at all */
  --rs-radius-pill: 999px;
  --rs-radius-field: 22px;
  --rs-radius-frame: 0;
  --rs-focus: 0 0 0 3px var(--rs-cobalt-soft), 0 0 0 4px var(--rs-cobalt);

  /* Space */
  --rs-rail: 200px;
  --rs-pad: clamp(20px, 3vw, 40px);
  --rs-block: clamp(40px, 6vw, 80px);
  --rs-measure: 720px;

  /* Motion */
  --rs-ease: cubic-bezier(.3, .7, .2, 1);
}
