/*
 * Scrawl Sheet: design tokens
 * A raw, cheeky sketchbook page. Mostly empty off-white paper, a plain book serif for
 * reading, and headings scratched out in a dry, splattery pen. Navigation words float
 * around the page at odd angles instead of sitting in a bar. Boxes are drawn with a
 * wobbly ink line (an SVG displacement filter), keywords get circled or underlined in
 * correction red, and the odd ink blot lands near a heading. Links are blue-black
 * fountain-pen ink. No gradients, no rounding, no soft shadows.
 *
 * Fonts (free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Rock+Salt&family=Spectral:ital,wght@0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
 *
 * Every page also carries the wobble filter once, right after <body>:
 *   <svg class="ss-defs" aria-hidden="true"><filter id="ss-rough"><feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="2" seed="3"/><feDisplacementMap in="SourceGraphic" scale="3.5"/></filter></svg>
 */
:root {
  /* Paper */
  --ss-paper: #fbfaf6;        /* the page, always */
  --ss-paper-2: #f1efe7;      /* quiet fills: inputs, code, table stripes */
  --ss-paper-3: #e6e2d6;      /* hover on quiet fills */

  /* Ink */
  --ss-ink: #141311;          /* text, scrawled headings, drawn lines, the ink button */
  --ss-ink-soft: #4d4a44;     /* leads, secondary copy */
  --ss-faint: #95918a;        /* dates, hints, captions, footer */
  --ss-line: #d8d4ca;         /* the only straight hairline: dividers */

  /* Two pens, used sparingly */
  --ss-blue: #23307c;         /* links, fountain-pen blue-black */
  --ss-blue-soft: rgba(35, 48, 124, 0.12);
  --ss-red: #c4381f;          /* correction red: circles, underlines, one per section */
  --ss-red-soft: rgba(196, 56, 31, 0.1);

  /* Fonts */
  --ss-font-scrawl: "Rock Salt", "Marker Felt", cursive;
  --ss-font-body: "Spectral", Georgia, serif;

  /* Type scale */
  --ss-text-hero: clamp(32px, 6.6vw, 80px);   /* scrawled, line-height 1.4 */
  --ss-text-h2: clamp(23px, 3.2vw, 34px);     /* scrawled */
  --ss-text-h3: 22px;                         /* Spectral 700 */
  --ss-text-lead: clamp(19px, 2vw, 23px);
  --ss-text-body: 19px;
  --ss-text-small: 16px;
  --ss-text-micro: 13px;
  --ss-text-tag: 13px;                         /* scrawled labels */

  --ss-leading-scrawl: 1.4;
  --ss-leading-body: 1.6;

  /* Shape */
  --ss-stroke: 2px;           /* every drawn line */
  --ss-stroke-thick: 3px;     /* the ink button outline, circles */
  --ss-radius: 0;             /* nothing is rounded */
  --ss-tilt-sm: -1.5deg;
  --ss-tilt-md: 3deg;
  --ss-tilt-lg: -7deg;
  --ss-press: 3px 3px 0 var(--ss-ink); /* the only shadow: a hard ink offset on the ink button hover */

  /* Space */
  --ss-space-1: 6px;
  --ss-space-2: 12px;
  --ss-space-3: 20px;
  --ss-space-4: 32px;
  --ss-space-5: 56px;
  --ss-space-6: 96px;
  --ss-space-7: 140px;

  /* Columns */
  --ss-col-read: 660px;
  --ss-col-wide: 1080px;
  --ss-gutter: 20px;

  /* Motion */
  --ss-ease: cubic-bezier(.3, .7, .3, 1.2);
  --ss-fast: 140ms;
}
