/*
 * Patch Salad: design tokens
 * Raw, nerdy, after-hours tool style. Pitch black and charcoal bands, light-weight sans
 * headlines set line by line on dark slabs, small square mint buttons, uppercase condensed
 * card titles, and drawn node patches: operator boxes with colored port ticks wired together
 * by curved cables. No shadows, no gradients, almost no radius.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@500;600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: pitch black for the hero and patch stages, charcoal for most sections */
  --ps-pit: #070707;
  --ps-coal: #1b1b1c;
  --ps-slab: #262627;       /* headline slabs, cards, op boxes */
  --ps-slab-2: #303032;     /* hover on slabs, inputs */
  --ps-ash: #5a5a5d;        /* the one grey callout panel */
  --ps-line: #353537;       /* every border and divider */

  /* Text */
  --ps-chalk: #f1f1ef;
  --ps-fog: #a6a6a9;
  --ps-dim: #6f6f73;

  /* The one accent: mint. Buttons, links, author names, the live cable */
  --ps-mint: #14ec88;
  --ps-mint-dark: #0fc472;
  --ps-mint-ink: #03140b;   /* text on mint */

  /* Port colors: only on op box ports and cables, never on page chrome */
  --ps-port-teal: #3cc4b2;
  --ps-port-sun: #e3c447;
  --ps-port-rose: #ec4f97;

  /* Type */
  --ps-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ps-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ps-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ps-text-hero: clamp(36px, 5.4vw, 64px);
  --ps-text-h2: clamp(30px, 3.6vw, 44px);
  --ps-text-h3: 22px;
  --ps-text-title: 19px;    /* uppercase condensed card titles */
  --ps-text-lead: 18px;
  --ps-text-body: 15px;
  --ps-text-small: 13px;
  --ps-text-micro: 11px;

  --ps-weight-head: 300;
  --ps-tracking-head: -.01em;
  --ps-tracking-caps: .04em;

  /* Shape: square and flat. 3px on buttons and inputs, 6px on panels, nothing round */
  --ps-radius-sm: 3px;
  --ps-radius: 6px;
  --ps-border: 1px solid var(--ps-line);
  --ps-port: 6px;           /* port tick height */
  --ps-cable: 2px;          /* cable stroke width */

  /* Space */
  --ps-gutter: 10px;        /* the tight edge gutter the page hugs */
  --ps-section: clamp(64px, 8vw, 104px);
  --ps-container: 1420px;
  --ps-narrow: 720px;
  --ps-slab-pad: .18em .32em;

  /* Motion */
  --ps-ease: cubic-bezier(.3, .7, .2, 1);
}
