/*
  Patch Bay: design tokens
  A dark modular-rack style. Pale aluminum module panels sit edge to edge in a
  near-black rack between screw-hole rails, and bright patch cables in red,
  yellow, teal and violet loop between jacks. Wide uppercase Archivo labels,
  Figtree body text and small Martian Mono screens.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Figtree:wght@400;500;600;700&family=Martian+Mono:wght@400;600&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --pb-rack: #131416;        /* page background, the empty rack */
  --pb-rail: #24262a;        /* rails, nav, footer */
  --pb-rail-hi: #34373c;     /* rail top edge, hairlines on dark */
  --pb-hole: #0a0b0c;        /* screw holes in the rails */
  --pb-panel: #e5e3dd;       /* aluminum module face */
  --pb-panel-hi: #f4f2ed;    /* panel top edge, input fields */
  --pb-panel-lo: #c9c6be;    /* panel borders and shade */
  --pb-panel-dark: #1d1e21;  /* black module variant */
  --pb-screen: #0e1316;      /* small display windows */

  /* Text */
  --pb-ink: #1a1b1e;         /* text on panels */
  --pb-ink-soft: #55575c;    /* secondary text on panels */
  --pb-chalk: #f0eee8;       /* text on the rack */
  --pb-steel: #8b8e94;       /* secondary text on the rack */

  /* Cable colors (the only bright colors) */
  --pb-red: #e84a3c;         /* primary action, first cable */
  --pb-red-deep: #b8352a;
  --pb-yellow: #f3b634;      /* screens, second cable */
  --pb-teal: #1ea89c;        /* success, third cable */
  --pb-violet: #7c5ff0;      /* links on panels, fourth cable */

  /* Fonts */
  --pb-font-head: "Archivo", "Arial Black", sans-serif;
  --pb-font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pb-font-mono: "Martian Mono", "Courier New", monospace;
  --pb-stretch-head: 125%;   /* headlines and labels run wide */

  /* Type scale */
  --pb-size-hero: clamp(2.3rem, 5.6vw, 4.6rem);
  --pb-size-h1: clamp(2rem, 4.4vw, 3.4rem);
  --pb-size-h2: clamp(1.6rem, 3vw, 2.35rem);
  --pb-size-h3: 1.15rem;
  --pb-size-body: 1.0625rem;
  --pb-size-small: 0.875rem;
  --pb-size-label: 0.68rem;
  --pb-size-screen: 0.8rem;
  --pb-track-head: -0.01em;
  --pb-track-label: 0.14em;
  --pb-leading: 1.6;

  /* Shape */
  --pb-radius: 2px;          /* panels, buttons, inputs: hardware is square */
  --pb-radius-screen: 3px;
  --pb-radius-round: 999px;  /* jacks, knobs, LEDs only */
  --pb-cable: 7px;           /* patch cable stroke width */
  --pb-gap-rack: 5px;        /* the hairline gap between modules */

  /* Shadows */
  --pb-bevel: inset 0 1px 0 var(--pb-panel-hi), inset 0 -2px 0 var(--pb-panel-lo);
  --pb-shadow-module: 0 18px 32px -18px rgba(0, 0, 0, 0.9);
  --pb-shadow-cable: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.45));
  --pb-shadow-knob: 0 4px 6px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  --pb-glow-led: 0 0 8px 2px rgba(232, 74, 60, 0.55);
  --pb-focus: 0 0 0 3px var(--pb-violet);

  /* Space */
  --pb-space-1: 0.25rem;
  --pb-space-2: 0.5rem;
  --pb-space-3: 1rem;
  --pb-space-4: 1.5rem;
  --pb-space-5: 2.5rem;
  --pb-space-6: 4rem;
  --pb-space-7: 6rem;
  --pb-max: 1200px;
  --pb-max-read: 680px;
}
