/* Solution Strategizer design tokens. The site (assets/site.css, canvas.html) and the PDF builds
   (manuscript/build/build_guide.js, build_doc.js) all read this file, so a change here changes everything.
   The palette and display type come from Paul's Canva canvas: coral for the problem, cyan for the solution,
   yellow for the evaluation, black rules, condensed capitals for the box names. See design-system.md. */
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/ibm-plex-sans-latin.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Paul's canvas colours, exactly as sampled from the Canva file. Fills, bars and marks only on a light page:
     none of them reaches 4.5:1 on white, so text uses the -ink shades below. */
  --coral: #FF5757;
  --cyan: #0CC0DF;
  --yellow: #FFDE59;

  /* Text-safe shades of the same hues (5.6:1 and 5:1 on white). */
  --problem: #C42B2B;
  --solution: #007A8F;
  --eval-fill: #FFF6CF;

  --ink: #1C2430;
  --line: #000000;       /* the canvas rules, black as in Paul's file */
  --paper: #FFFFFF;
  --mist: #F4F6F8;
  --slate: #4B5563;      /* secondary text, 7.5:1 */
  --rule: #C7D0D9;       /* hairlines between list items */
  --control: #8A94A0;    /* form field borders, 3:1 */

  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font: var(--text);

  /* Type scale: a perfect fourth (1.333) from a 17px body. Display sizes are set in Barlow Condensed,
     whose narrow capitals need about 1.15x the size of Plex to read at the same weight. */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lede: 1.25rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(1.875rem, 4vw, 2.5rem);
  --t-h1: clamp(2.75rem, 7.5vw, 4.75rem);

  /* Spacing: a 4px base, in the steps the pages use. */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4.5rem;

  --measure: 38rem;      /* about 66 characters of body text */

  /* Print (book, toolkit PDFs, workbook). Points, because PDFs are set in points. */
  --p-body: 10pt;        /* Plex, leading 14.5pt; book measure 4.4in, about 65 characters */
  --p-lead: 14.5pt;
  --p-small: 8.5pt;      /* captions, running heads, folios, table notes */
  --p-table: 9pt;
  --p-h3: 12.5pt;        /* Barlow Condensed 600 */
  --p-h2: 17pt;          /* Barlow Condensed 600 */
  --p-h1: 30pt;          /* chapter and sheet titles, Barlow Condensed 600 */
  --p-label: 11pt;       /* canvas box names, Barlow Condensed 600 capitals */
  --p-line: 1.5pt;       /* canvas rules and the rule under a table head, black */
  --p-hair: 0.5pt;       /* rules between table rows, var(--rule) */
  --rule-heavy: 2px;     /* canvas lines and section rules */
  color-scheme: light;
}

/* White only (Paul, 2026-11-25: "i want it on a white background"); no dark mode. */
@media print { :root { color-scheme: light; } }
