/*
  Pixel Moss: design tokens
  A muddy moss-brown night with a lab-notebook feel. Heavy grotesque headlines
  in sage, a small serif lead, flat square-cornered paper plates for all chrome,
  stippled pixel swarms (lime dots on cyan) drifting at the edges, loose square
  pixels scattered like confetti, and a thin three-colour rail down the left.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Ground: moss-brown, never black */
  --pm-moss: #37300A;        /* page background */
  --pm-moss-deep: #28230A;   /* deep bands, footer, code */
  --pm-moss-raise: #453D12;  /* raised panels on the ground */
  --pm-moss-line: #5C5322;   /* borders on the ground */
  --pm-moss-faint: #4D451A;  /* hairlines, table rows */

  /* Text on the ground */
  --pm-sage: #93B8A6;        /* headlines */
  --pm-cream: #F0EEDF;       /* body text, strong labels */
  --pm-muted: #B4AD86;       /* leads and secondary text */
  --pm-dim: #8A845E;         /* captions, meta */

  /* Paper plates: flat light chrome sitting on the moss */
  --pm-paper: #F3F1E7;
  --pm-paper-2: #E4E1D2;     /* hover, dividers inside a plate */
  --pm-ink: #17150A;         /* text and buttons on paper */
  --pm-ink-soft: #5A563F;

  /* Signals */
  --pm-lime: #B8F23E;        /* the one action colour and pixel stipple */
  --pm-lime-ink: #1B2304;
  --pm-cyan: #4DB6EE;        /* swarm fill, links on paper */
  --pm-pink: #EE7BC0;        /* rail, occasional tag */
  --pm-lilac: #CBB4F5;       /* soft stroke shapes, highlights */
  --pm-red: #D92B45;         /* rail top, errors */

  /* Fonts */
  --pm-font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pm-font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pm-font-serif: "Source Serif 4", Georgia, serif;
  --pm-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --pm-text-hero: clamp(46px, 7.4vw, 104px);
  --pm-text-h2: clamp(34px, 4.6vw, 60px);
  --pm-text-h3: 22px;
  --pm-text-lead: 18px;
  --pm-text-body: 16px;
  --pm-text-small: 14px;
  --pm-text-label: 12px;

  /* Shape: square or nearly square. Pills only for drawn strokes. */
  --pm-radius-0: 0px;
  --pm-radius-1: 3px;
  --pm-radius-pill: 999px;
  --pm-border: 1px solid var(--pm-moss-line);
  --pm-border-paper: 1px solid var(--pm-paper-2);

  /* Shadows: none on the ground, one hard drop on paper plates */
  --pm-shadow-plate: 0 2px 0 rgba(0, 0, 0, 0.35);
  --pm-shadow-pop: 6px 6px 0 var(--pm-moss-deep);

  /* Pixel */
  --pm-px: 10px;             /* one pixel cell */

  /* Space */
  --pm-space-1: 4px;
  --pm-space-2: 8px;
  --pm-space-3: 12px;
  --pm-space-4: 16px;
  --pm-space-5: 24px;
  --pm-space-6: 32px;
  --pm-space-7: 48px;
  --pm-space-8: 72px;
  --pm-space-9: 112px;
  --pm-container: 1200px;
  --pm-measure: 680px;
}
