/*
 * Hatch Gauge: design tokens
 * Raw, workshop-manual print. Off-white paper, near-black ink, heavy 8px frames with square
 * corners, tall condensed headlines and a plain grotesk body. Diagonal hatch fills sit behind
 * frames and down the side of sections, technical dimension lines label things in mono, and a
 * spiky starburst seal shouts the one offer. A single marking red is used for marks, never for
 * surfaces.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Archivo:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --hg-paper: #f6f5f1;      /* the page */
  --hg-white: #ffffff;      /* inside frames, inputs, cards */
  --hg-tint: #eae8e1;       /* quiet sections, table stripes */

  /* Ink */
  --hg-ink: #0e0e0d;        /* text, frames, hatch, filled buttons */
  --hg-graphite: #4b4a46;   /* secondary text, captions */
  --hg-rule: #c8c5bc;       /* thin dividers only */

  /* The one accent: a carpenter's marking red. Strike-throughs, ticks, dimension arrows, one word */
  --hg-red: #dc3d1c;
  --hg-red-dark: #b32e12;

  /* Type */
  --hg-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --hg-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hg-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --hg-text-hero: clamp(48px, 7.2vw, 96px);
  --hg-text-h2: clamp(36px, 4.6vw, 60px);
  --hg-text-h3: 28px;
  --hg-text-lead: 19px;
  --hg-text-body: 17px;
  --hg-text-small: 15px;
  --hg-text-micro: 12px;

  --hg-leading-display: .98;
  --hg-tracking-display: -.01em;

  /* Shape: square corners, heavy frames, no soft shadows */
  --hg-radius: 0;
  --hg-frame-w: 8px;
  --hg-frame: var(--hg-frame-w) solid var(--hg-ink);
  --hg-border-w: 4px;
  --hg-border: var(--hg-border-w) solid var(--hg-ink);
  --hg-hair: 1px solid var(--hg-rule);
  --hg-offset: 14px;        /* how far a hatch block sits behind a frame */

  /* Hatch: the signature fill */
  --hg-hatch: repeating-linear-gradient(-45deg, var(--hg-ink) 0 5px, transparent 5px 11px);
  --hg-hatch-fine: repeating-linear-gradient(-45deg, var(--hg-ink) 0 2px, transparent 2px 7px);
  --hg-hatch-red: repeating-linear-gradient(-45deg, var(--hg-red) 0 5px, transparent 5px 11px);

  /* Space */
  --hg-section: clamp(72px, 9vw, 120px);
  --hg-container: 1200px;
  --hg-narrow: 720px;
  --hg-gap: clamp(24px, 4vw, 56px);

  /* Motion: instant and mechanical */
  --hg-step: steps(2, end);
}
