/*
  Relay Hub: design tokens

  Feel: an honest open-source control room after dark. Neutral graphite
  surfaces, heavy friendly headlines that end in a yellow pulse dot, filled
  violet buttons, and a dashed relay diagram where one glowing hub sends
  work out to many places. App windows with status pills prove it works.

  Fonts (free on Google Fonts):
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Martian+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces: neutral graphite, never blue */
  --rh-void: #0C0C0D;          /* the page */
  --rh-slab: #151516;          /* windows, cards, inputs */
  --rh-slab-2: #1C1C1E;        /* raised rows, hover, sidebars */
  --rh-line: #27272A;          /* every hairline */
  --rh-line-2: #3A3A3E;        /* input borders, ghost buttons, dashes */

  /* Text */
  --rh-chalk: #F3F3F1;         /* headlines and strong text */
  --rh-mute: #A1A1A8;          /* leads and body on dark */
  --rh-dim: #66666D;           /* meta, captions, placeholders */

  /* Accents */
  --rh-violet: #7B45F5;        /* the main action, the hub, active nav */
  --rh-violet-deep: #6431DB;   /* button hover */
  --rh-violet-glow: rgba(123, 69, 245, 0.32);
  --rh-violet-wash: rgba(123, 69, 245, 0.12);
  --rh-pulse: #F4D23C;         /* the pulse dot: headline periods, sparks, live markers */
  --rh-pulse-glow: rgba(244, 210, 60, 0.55);

  /* Status (pills and meters only) */
  --rh-go: #3CCF85;            /* in, running, done */
  --rh-go-wash: rgba(60, 207, 133, 0.12);
  --rh-wait: #F4D23C;          /* out, busy, pending */
  --rh-wait-wash: rgba(244, 210, 60, 0.12);
  --rh-stop: #EF5468;          /* repair, failed, errors */
  --rh-stop-wash: rgba(239, 84, 104, 0.12);

  /* Fonts */
  --rh-font-sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --rh-font-mono: "Martian Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --rh-text-display: clamp(42px, 6vw, 80px);
  --rh-text-h1: clamp(36px, 4.6vw, 60px);
  --rh-text-h2: clamp(28px, 3.2vw, 40px);
  --rh-text-h3: 19px;
  --rh-text-lead: 18px;
  --rh-text-body: 16px;
  --rh-text-small: 14px;
  --rh-text-micro: 11px;

  --rh-weight-regular: 400;
  --rh-weight-medium: 500;
  --rh-weight-semi: 600;
  --rh-weight-bold: 700;

  --rh-leading-tight: 1.05;
  --rh-leading-snug: 1.3;
  --rh-leading-body: 1.6;
  --rh-tracking-head: -0.03em;
  --rh-tracking-mono: 0.04em;

  /* Shape */
  --rh-radius-sm: 6px;         /* pills inside tables, kbd, small tags */
  --rh-radius: 8px;            /* buttons, inputs, nodes */
  --rh-radius-lg: 14px;        /* windows, cards, panels */
  --rh-radius-pill: 999px;     /* announcement chip, status pills */
  --rh-border: 1px solid var(--rh-line);
  --rh-border-2: 1px solid var(--rh-line-2);
  --rh-dash: 1px dashed var(--rh-line-2);

  /* Depth: hairlines first, glow only on the hub and the pulse */
  --rh-shadow-window: 0 30px 80px rgba(0, 0, 0, 0.55);
  --rh-hub-glow: 0 0 0 1px var(--rh-violet), 0 0 60px 10px var(--rh-violet-glow);
  --rh-pulse-halo: 0 0 12px var(--rh-pulse-glow);
  --rh-focus: 0 0 0 3px var(--rh-violet-glow);

  /* Space */
  --rh-space-1: 4px;
  --rh-space-2: 8px;
  --rh-space-3: 12px;
  --rh-space-4: 16px;
  --rh-space-5: 24px;
  --rh-space-6: 32px;
  --rh-space-7: 48px;
  --rh-space-8: 64px;
  --rh-space-9: 96px;
  --rh-space-10: 128px;

  --rh-container: 1120px;
  --rh-narrow: 680px;
  --rh-gutter: 32px;
}

@media (max-width: 640px) {
  :root { --rh-gutter: 16px; }
}
