/*
  Pane Stack: design tokens

  Feel: a recording studio after midnight. A pure black page, big light
  grotesque headlines and small uppercase mono labels. The signature move is
  a stack of translucent app panes tilted in isometric space, one behind the
  other like layers of a recording. Buttons are pills: solid white or a thin
  outline. One warm amber marks what is live; a soft mint marks a second
  stream and nothing else. Logo rows and stats sit in hairline cells.

  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@300;400;500&family=Martian+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --ps-black: #000000;          /* the page */
  --ps-pane: #0B0B0C;           /* panes, cards, inputs */
  --ps-pane-raised: #141416;    /* pane headers, hovered rows */
  --ps-pane-glass: rgba(16, 16, 18, 0.82); /* stacked panes */
  --ps-line: #1E1F22;           /* every hairline */
  --ps-line-bright: #34353A;    /* outline pills, input borders, pane edges */

  /* Text */
  --ps-white: #F4F4F2;          /* headlines, solid pill */
  --ps-white-dim: #D9D9D5;      /* solid pill hover */
  --ps-grey: #9A9BA0;           /* body and leads */
  --ps-dim: #5E5F65;            /* meta, mono labels, placeholders */
  --ps-ink: #050505;            /* text on white or amber */

  /* Accents */
  --ps-amber: #F2A541;          /* live take, playhead, focus, checks */
  --ps-amber-wash: rgba(242, 165, 65, 0.13);
  --ps-mint: #7FD8B4;           /* the second stream in drawings only */
  --ps-mint-wash: rgba(127, 216, 180, 0.12);
  --ps-red: #F06A5F;            /* errors only */

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

  /* Type scale */
  --ps-text-display: clamp(40px, 5.6vw, 72px);
  --ps-text-h1: clamp(34px, 4.4vw, 56px);
  --ps-text-h2: clamp(28px, 3.2vw, 40px);
  --ps-text-h3: 19px;
  --ps-text-lead: 19px;
  --ps-text-body: 16px;
  --ps-text-small: 14px;
  --ps-text-label: 10.5px;      /* mono labels, uppercase, tracked */
  --ps-weight-display: 300;
  --ps-weight-body: 400;
  --ps-weight-strong: 500;
  --ps-tracking-display: -0.03em;
  --ps-tracking-label: 0.14em;
  --ps-leading-tight: 1.08;
  --ps-leading-body: 1.6;

  /* Shape */
  --ps-radius-pill: 999px;      /* buttons, search, badges, toggle */
  --ps-radius-pane: 10px;       /* panes, cards, inputs */
  --ps-radius-small: 6px;       /* keycaps, chips inside panes */
  --ps-border: 1px solid var(--ps-line);
  --ps-border-bright: 1px solid var(--ps-line-bright);

  /* Shadows: panes float on black with a dark drop and a faint top edge */
  --ps-shadow-pane: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ps-glow-amber: 0 0 0 3px var(--ps-amber-wash);

  /* The tilt used by the pane stack */
  --ps-tilt: rotateX(52deg) rotateZ(-38deg);
  --ps-stack-gap: 34px;

  /* Space */
  --ps-space-1: 4px;
  --ps-space-2: 8px;
  --ps-space-3: 12px;
  --ps-space-4: 16px;
  --ps-space-5: 24px;
  --ps-space-6: 32px;
  --ps-space-7: 48px;
  --ps-space-8: 72px;
  --ps-space-9: 120px;
  --ps-max: 1180px;
  --ps-narrow: 700px;
}
