/*
 * Story Plates: design tokens
 * A bold, nerdy, editorial look for stories told with numbers. Plain white pages, near-black
 * text, chunky lowercase slab headlines, and solid "plates" of brick, scarlet, mustard and
 * cobalt that frame a white chart card. Mono labels, numbered pill badges, and sticker
 * buttons with a hard 2px offset shadow.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Bitter:wght@500;800;900&family=Public+Sans:wght@400;500;700&family=IBM+Plex+Mono:wght@500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --pl-paper: #ffffff;
  --pl-cream: #faf7f1;      /* the inset card on a plate, quiet sections */
  --pl-bar: #262422;        /* announcement bar, footer, dark buttons */
  --pl-line: #1d1b19;       /* outlines on pills, inputs and stickers */
  --pl-rule: #e5e0d8;       /* thin hairlines between list rows */

  /* Text */
  --pl-ink: #1d1b19;
  --pl-soft: #5f5a54;
  --pl-faint: #9a948c;

  /* The plates: solid color tiles. Never mix more than three on one screen */
  --pl-brick: #b0242a;
  --pl-scarlet: #e1352c;
  --pl-mustard: #d49a2b;
  --pl-cobalt: #2d55c8;
  --pl-leaf: #2f8a5a;       /* chart series only, never a plate */

  /* Type */
  --pl-slab: "Bitter", "Rockwell", Georgia, serif;
  --pl-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pl-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pl-text-hero: clamp(46px, 7.4vw, 104px);
  --pl-text-h2: clamp(32px, 4.4vw, 56px);
  --pl-text-h3: clamp(24px, 2.4vw, 32px);
  --pl-text-lead: 20px;
  --pl-text-body: 17px;
  --pl-text-small: 14px;
  --pl-text-label: 13px;

  --pl-track-slab: -0.035em;
  --pl-track-label: 0.06em;

  /* Shape */
  --pl-radius-pill: 999px;
  --pl-radius-sm: 6px;
  --pl-radius-card: 4px;
  --pl-border: 2px solid var(--pl-line);
  --pl-hair: 1px solid var(--pl-rule);

  /* The sticker: a hard offset shadow, never blurred */
  --pl-sticker: 2px 3px 0 var(--pl-line);
  --pl-sticker-lg: 4px 5px 0 var(--pl-line);

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

  --pl-container: 1248px;
  --pl-measure: 680px;
  --pl-gutter: clamp(20px, 4vw, 48px);
}
