/*
 * Bevel Yard: tokens
 * Feel: a workshop control panel at the end of a long shift. Gunmetal
 * panels with raised bevels sit on a busy drawn floor plan of belts and
 * bolts. Inside every panel is a sunken well where the real content lives.
 * Panel titles are bold amber, the main buttons are signal green bars with
 * a chevron cut on the right, links are a cool cable blue. Square corners,
 * hard light from the top left, no soft shadows. Raw, functional, nerdy,
 * a little retro.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Titillium+Web:ital,wght@0,400;0,600;0,700;1,400&family=Share+Tech+Mono&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: the floor, the panel frame, the sunken well */
  --by-floor: #17181a;
  --by-floor-line: #24262a;
  --by-floor-dot: #34373c;
  --by-frame: #2f3033;
  --by-frame-hi: #4a4b4f;
  --by-frame-lo: #1c1d1f;
  --by-well: #242527;
  --by-well-deep: #19191b;
  --by-plate: #8e8f93;
  --by-plate-hi: #b1b2b6;
  --by-plate-lo: #5f6064;
  --by-bar: #0f1011;

  /* Text */
  --by-text: #eeeae2;
  --by-dim: #b7b3ab;
  --by-faint: #807d77;
  --by-ink: #121212;

  /* Accents */
  --by-amber: #f3a32b;
  --by-amber-hi: #ffc35e;
  --by-amber-lo: #a86512;
  --by-go: #52b043;
  --by-go-hi: #7ad06a;
  --by-go-lo: #2f7a23;
  --by-cable: #5aa8f0;
  --by-stop: #e04a3a;
  --by-belt: #c9a227;

  /* Fonts */
  --by-head: "Chakra Petch", "Arial Narrow", sans-serif;
  --by-body: "Titillium Web", "Segoe UI", sans-serif;
  --by-mono: "Share Tech Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --by-text-hero: clamp(38px, 6vw, 72px);
  --by-text-h1: clamp(32px, 4.2vw, 52px);
  --by-text-h2: clamp(24px, 2.8vw, 32px);
  --by-text-h3: 20px;
  --by-text-lead: 19px;
  --by-text-body: 17px;
  --by-text-small: 15px;
  --by-text-micro: 12px;
  --by-leading: 1.6;

  /* Shape: square corners, hard bevels lit from the top left */
  --by-radius: 0;
  --by-chev: 14px;
  --by-chevron: polygon(0 0, calc(100% - var(--by-chev)) 0, 100% 50%, calc(100% - var(--by-chev)) 100%, 0 100%);
  --by-raised: inset 2px 2px 0 var(--by-frame-hi), inset -2px -2px 0 var(--by-frame-lo);
  --by-sunken: inset 2px 2px 0 var(--by-well-deep), inset -2px -2px 0 #34353a;
  --by-key: inset 2px 2px 0 rgba(255, 255, 255, .35), inset -2px -3px 0 rgba(0, 0, 0, .35);
  --by-key-down: inset 2px 3px 0 rgba(0, 0, 0, .35), inset -1px -1px 0 rgba(255, 255, 255, .2);
  --by-drop: 0 0 0 2px var(--by-bar), 0 8px 0 rgba(0, 0, 0, .35);
  --by-rule: 2px solid var(--by-frame-lo);

  /* The floor plan: a dot grid with belts drawn across it */
  --by-floorplan:
    linear-gradient(90deg, transparent 0 46%, var(--by-floor-line) 46% 54%, transparent 54%) 0 0 / 96px 96px,
    linear-gradient(0deg, transparent 0 46%, var(--by-floor-line) 46% 54%, transparent 54%) 0 0 / 192px 192px,
    radial-gradient(var(--by-floor-dot) 1.5px, transparent 2px) 0 0 / 24px 24px,
    var(--by-floor);
  --by-belt-stripe: repeating-linear-gradient(90deg, var(--by-belt) 0 10px, #6e5a16 10px 14px);
  --by-hazard: repeating-linear-gradient(-45deg, var(--by-amber) 0 12px, var(--by-ink) 12px 24px);

  /* Space */
  --by-space-1: 4px;
  --by-space-2: 8px;
  --by-space-3: 12px;
  --by-space-4: 16px;
  --by-space-5: 24px;
  --by-space-6: 40px;
  --by-space-7: 64px;
  --by-container: 1180px;
  --by-narrow: 720px;

  /* Motion: quick and mechanical */
  --by-snap: 90ms steps(2, end);
}
