/*
 * Quiet Brackets: tokens
 *
 * Feel: a plain text page left open late at night. Warm charcoal, one
 * monospace family with cursive italics, and nothing but words: no cards,
 * no borders, no pictures. Every link is a word in square brackets, and
 * its color says what it does: green to act, blue to go somewhere, violet
 * for the odd or optional, amber for numbers and notes. Rules are typed
 * dashes, lists use dot leaders, charts are drawn with characters, and
 * the only solid shapes are flat color bars. Headlines arrive as
 * scrambled glyphs that settle into words. Raw, nerdy and a bit nostalgic.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Victor+Mono:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --qb-bg: #1D1C1A;          /* the page, everywhere */
  --qb-deep: #161513;        /* footer band, code and ASCII wells */
  --qb-raise: #272622;       /* inputs, hover rows, the pressed toggle */
  --qb-line: #3B3934;        /* typed dashes, input underlines */
  --qb-line-soft: #2E2C28;   /* dot leaders */

  /* Text */
  --qb-bright: #F1EDE4;      /* headlines, strong words */
  --qb-text: #CFCAC0;        /* body copy */
  --qb-dim: #8D887E;         /* brackets, meta, captions */
  --qb-faint: #5E5A53;       /* placeholders, "no" cells, scramble noise */

  /* The four accents, each with one job */
  --qb-green: #3CC795;       /* act: buttons, the bar, "yes" */
  --qb-green-ink: #10261D;   /* text on a green bar */
  --qb-blue: #52AADB;        /* go: nav and links to other pages */
  --qb-violet: #AE82E3;      /* optional: random, extras, tags */
  --qb-amber: #E69B4E;       /* numbers, times, notes, live */
  --qb-red: #E2675D;         /* errors only */

  /* Type */
  --qb-font: "Victor Mono", ui-monospace, Menlo, monospace;
  --qb-text-display: clamp(24px, 3.4vw, 36px);
  --qb-text-h2: clamp(18px, 2.2vw, 21px);
  --qb-text-h3: 16px;
  --qb-text-lead: 16px;
  --qb-text-body: 14.5px;
  --qb-text-small: 13px;
  --qb-text-label: 12px;
  --qb-text-ascii: clamp(10.5px, 1.5vw, 13px);
  --qb-leading: 1.7;
  --qb-leading-tight: 1.35;
  --qb-weight: 400;
  --qb-weight-mid: 500;
  --qb-weight-bold: 700;

  /* Shape: square everything, no shadows */
  --qb-radius: 0;
  --qb-shadow: none;
  --qb-bar-h: 14px;          /* height of a flat color bar */
  --qb-focus: 0 0 0 2px var(--qb-green);

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

  /* Layout */
  --qb-column: 680px;        /* reading and landing column */
  --qb-column-form: 480px;   /* sign-up column */
  --qb-gutter: clamp(18px, 6vw, 88px);

  /* Motion */
  --qb-blink: 1.1s steps(2, start) infinite;
  --qb-ease: 160ms ease-out;
}
