/*
 * Plum Dawn: design tokens
 * Calm, precise operations software at first light. A deep aubergine night background,
 * crisp grotesk headlines where the second line turns lilac, small amber mono eyebrows,
 * squared buttons with hairline borders, a drawn flow graph of connected steps, and a
 * warm ember-and-plum horizon glow at the foot of the hero, like the sky just before dawn.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: night first, raised panels a step lighter */
  --pd-night: #120d1a;       /* page background */
  --pd-night-2: #19131f;     /* alternate sections */
  --pd-panel: #211a2c;       /* cards, windows, inputs */
  --pd-panel-2: #2a2137;     /* hover, table headers */
  --pd-line: #342a42;        /* every border and divider */
  --pd-line-2: #4a3d5c;      /* stronger borders: outline buttons, focus rest */

  /* Text */
  --pd-text: #f4f0f8;
  --pd-soft: #a99fb6;
  --pd-faint: #6f6680;

  /* Accents: lilac for the second headline line and links, amber for labels and live nodes */
  --pd-lilac: #bba6f4;
  --pd-lilac-deep: #8c71e6;
  --pd-lilac-soft: rgba(187, 166, 244, .12);
  --pd-amber: #f1b765;
  --pd-amber-soft: rgba(241, 183, 101, .12);

  /* The dawn: only for the horizon glow at the foot of a hero or closing band */
  --pd-ember: #df6a4e;
  --pd-plum: #5b2a5c;
  --pd-dawn: radial-gradient(70% 120% at 50% 100%, rgba(223, 106, 78, .7) 0%, rgba(91, 42, 92, .65) 40%, rgba(18, 13, 26, 0) 72%);

  /* Status colors, only inside product UI */
  --pd-ok: #74d3a2;
  --pd-warn: var(--pd-amber);
  --pd-fail: #f0727a;

  /* Type */
  --pd-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pd-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pd-text-hero: clamp(42px, 6.4vw, 80px);
  --pd-text-h2: clamp(30px, 3.8vw, 48px);
  --pd-text-h3: 22px;
  --pd-text-lead: 19px;
  --pd-text-body: 16px;
  --pd-text-small: 14px;
  --pd-text-micro: 12px;

  --pd-tracking-hero: -.035em;
  --pd-tracking-h2: -.025em;
  --pd-tracking-label: .14em;

  /* Shape: squared and quiet. Hairlines, small radii, no drop shadows on flat UI */
  --pd-radius-sm: 4px;
  --pd-radius: 6px;
  --pd-radius-lg: 12px;
  --pd-border: 1px solid var(--pd-line);
  --pd-shadow-window: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 80px rgba(6, 3, 10, .7);
  --pd-glow-lilac: 0 0 0 3px rgba(187, 166, 244, .22);

  /* Space */
  --pd-section: clamp(72px, 9vw, 120px);
  --pd-container: 1180px;
  --pd-narrow: 720px;

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