/*
 * Pixel Ridge: design tokens
 * A near-black page with one big framed scene: a dithered, painted landscape inside a
 * panel with chipped, hand-torn edges, scattered with electric-blue pixels. Headlines sit
 * in the sky in a light, wide geometric sans, under a small bitmap wordmark. Below it,
 * segmented tiles, hairline panels and mono readouts. One coral-to-rose mark, one violet
 * notice strip, everything else is ink and fog.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Onest:wght@300;400;500;600&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: the page is near black, panels are one step up, the selected tile two steps */
  --pr-void: #08090b;
  --pr-panel: #16171b;
  --pr-panel-2: #24252b;
  --pr-line: #2f3138;
  --pr-line-strong: #4a4c55;

  /* Text */
  --pr-paper: #f2f0ea;
  --pr-mist: #a6a6af;
  --pr-faint: #6c6d76;

  /* Accents: coral and rose only meet in the logo mark; violet only on the notice strip */
  --pr-coral: #ff6443;
  --pr-rose: #ef3380;
  --pr-violet: #7266ff;
  --pr-violet-ink: #f5f3ff;
  --pr-volt: #2e62ff;       /* the scattered pixels, live dots, focus rings */
  --pr-volt-soft: #8fa9ff;

  /* Scene paint: only inside .pr-scene */
  --pr-sky: #6b9499;
  --pr-sky-2: #8eb0ab;
  --pr-ridge: #3d5f66;
  --pr-ridge-2: #2a454c;
  --pr-sand: #baa97e;
  --pr-sand-2: #8f8461;
  --pr-loam: #141f24;

  /* Status, only inside readouts */
  --pr-ok: #5fd39a;
  --pr-warn: #ffb547;

  /* Type */
  --pr-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-pixel: "Silkscreen", ui-monospace, monospace;
  --pr-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pr-text-hero: clamp(34px, 4.6vw, 62px);
  --pr-text-mark: clamp(28px, 3.8vw, 52px);
  --pr-text-h2: clamp(30px, 3.6vw, 48px);
  --pr-text-h3: 22px;
  --pr-text-lead: 19px;
  --pr-text-body: 16px;
  --pr-text-small: 14px;
  --pr-text-micro: 12px;

  --pr-tracking-hero: -.015em;
  --pr-tracking-pixel: .02em;

  /* Shape: pills for buttons, small radii for tiles, chipped edges for scenes */
  --pr-radius-sm: 4px;
  --pr-radius: 8px;
  --pr-radius-pill: 999px;
  --pr-border: 1px solid var(--pr-line);
  --pr-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  --pr-glow: 0 0 0 3px rgba(46, 98, 255, .45);
  --pr-edge: polygon(0.0% 0.9%, 2.5% 0.4%, 5.0% 1.4%, 7.5% 1.8%, 10.0% 0.0%, 12.5% 0.0%, 15.0% 0.2%, 17.5% 0.0%, 20.0% 0.9%, 22.5% 0.2%, 25.0% 0.0%, 27.5% 0.2%, 30.0% 0.4%, 32.5% 0.0%, 35.0% 0.0%, 37.5% 1.4%, 40.0% 1.4%, 42.5% 0.0%, 45.0% 0.4%, 47.5% 0.0%, 50.0% 0.2%, 52.5% 1.4%, 55.0% 0.0%, 57.5% 0.2%, 60.0% 0.0%, 62.5% 0.4%, 65.0% 1.8%, 67.5% 1.8%, 70.0% 0.2%, 72.5% 0.0%, 75.0% 0.2%, 77.5% 0.2%, 80.0% 1.4%, 82.5% 0.0%, 85.0% 0.4%, 87.5% 0.0%, 90.0% 0.2%, 92.5% 0.4%, 95.0% 0.9%, 97.5% 1.4%, 100.0% 0.4%, 100.0% 8.3%, 99.6% 16.7%, 99.8% 25.0%, 100.0% 33.3%, 99.8% 41.6%, 99.6% 50.0%, 100.0% 58.3%, 100.0% 66.6%, 100.0% 75.0%, 99.8% 83.3%, 99.4% 91.6%, 100.0% 97.8%, 97.5% 99.7%, 95.0% 98.4%, 92.5% 99.0%, 90.0% 98.4%, 87.5% 99.7%, 85.0% 98.4%, 82.5% 99.0%, 80.0% 99.0%, 77.5% 99.5%, 75.0% 99.5%, 72.5% 97.8%, 70.0% 99.5%, 67.5% 100.0%, 65.0% 99.7%, 62.5% 99.0%, 60.0% 99.7%, 57.5% 98.4%, 55.0% 99.0%, 52.5% 97.8%, 50.0% 98.4%, 47.5% 99.0%, 45.0% 99.7%, 42.5% 100.0%, 40.0% 100.0%, 37.5% 99.7%, 35.0% 98.4%, 32.5% 99.5%, 30.0% 99.0%, 27.5% 99.5%, 25.0% 98.4%, 22.5% 98.4%, 20.0% 100.0%, 17.5% 97.8%, 15.0% 100.0%, 12.5% 99.7%, 10.0% 99.7%, 7.5% 99.0%, 5.0% 99.0%, 2.5% 97.8%, 0.0% 99.0%, 0.6% 91.6%, 0.6% 83.3%, 0.0% 75.0%, 0.0% 66.6%, 0.4% 58.3%, 0.6% 50.0%, 0.0% 41.6%, 0.0% 33.3%, 0.4% 25.0%, 0.6% 16.7%, 0.4% 8.3%);

  /* Dither: a 2px checkerboard used to blend one paint band into the next */
  --pr-dither-size: 4px;

  /* Space */
  --pr-section: clamp(72px, 9vw, 120px);
  --pr-container: 1200px;
  --pr-narrow: 720px;
  --pr-gutter: clamp(16px, 4vw, 40px);

  /* Motion: slow and small; pixels blink, nothing slides */
  --pr-ease: cubic-bezier(.2, .7, .2, 1);
}
