/*
 * Chart Ledger: design tokens
 * A public-record, data-journalism feel. A deep navy masthead with a thin red rule under it,
 * a pale mist strip of pill topic chips, bold serif headlines (mustard on navy, navy on white),
 * plain sans body text and white cards that each carry a small hand-drawn line chart with
 * labelled line ends. Square-ish corners, 1px borders, no shadows. Honest, careful, readable.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,600;7..72,700&family=Libre+Franklin:wght@400;500;600;700&display=swap" rel="stylesheet">
 */
:root {
  /* Masthead and dark bands */
  --cl-navy: #0d2a4f;
  --cl-navy-2: #173a66;       /* hover and inner panels on navy */
  --cl-navy-line: #2c4d78;    /* borders on navy */
  --cl-rule: #cf3a2e;         /* the red rule under the masthead, the one "give" button, NEW tags */
  --cl-rule-dark: #b02e23;
  --cl-gold: #f0b93c;         /* hero headline on navy, one highlight per band */

  /* Paper */
  --cl-paper: #ffffff;
  --cl-mist: #e9eef4;         /* the chip strip, table headers */
  --cl-fog: #f4f6f9;          /* quiet cards and panels */
  --cl-sky: #dfecf8;          /* the newsletter / sign-up panel */
  --cl-line: #d5dde7;         /* every border and divider */

  /* Text */
  --cl-ink: #1b2a3d;
  --cl-slate: #5b6a7e;
  --cl-faint: #8f9bab;
  --cl-on-navy: #d7e1ee;      /* body text on navy */

  /* Chart series: only inside charts, legends and data chips */
  --cl-teal: #2d8a83;
  --cl-clay: #c96b35;
  --cl-plum: #7a4b8c;
  --cl-moss: #6f8f3a;

  /* Fonts */
  --cl-serif: "Literata", Georgia, serif;
  --cl-sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --cl-text-hero: clamp(34px, 4.6vw, 54px);
  --cl-text-h2: clamp(28px, 3.2vw, 38px);
  --cl-text-h3: 22px;
  --cl-text-card: 21px;
  --cl-text-lead: 19px;
  --cl-text-body: 16px;
  --cl-text-small: 14px;
  --cl-text-label: 12px;      /* uppercase tracked labels: "ARTICLE · 9 MIN READ" */
  --cl-tracking-label: .09em;

  /* Shape: almost square, thin lines, no shadows */
  --cl-radius: 3px;
  --cl-radius-sm: 2px;
  --cl-radius-pill: 999px;
  --cl-border: 1px solid var(--cl-line);
  --cl-rule-height: 4px;
  --cl-focus: 0 0 0 3px rgba(240, 185, 60, .55);

  /* Space */
  --cl-container: 1220px;
  --cl-narrow: 720px;
  --cl-gutter: 24px;
  --cl-section: clamp(56px, 7vw, 88px);
  --cl-gap: 24px;
}
