/*
 * Pocket Sun: design tokens
 * A toy-gadget style. A cool slate hero opens onto big slabs of sunshine yellow,
 * heavy rounded headlines, short cheerful copy and one electric violet button.
 * The signature is "the gadget": a chunky yellow device drawn in CSS with a
 * 1-bit screen in a pixel font, a tilted sticker slapped beside it, and a giant
 * stacked wordmark under it. Soft round corners, screws, a crank, no thin lines.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Lexend:wght@500;700;800&family=Figtree:ital,wght@0,400;0,600;0,700;1,700&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: slate for the hero and the dark band, sunshine for the long middle */
  --ps-slate: #7b8189;
  --ps-slate-deep: #5d636b;
  --ps-slate-light: #a3a8ae;
  --ps-sun: #ffc61f;
  --ps-sun-deep: #f2a50c;
  --ps-sun-soft: #fff1bf;
  --ps-cream: #fffaf0;
  --ps-white: #ffffff;

  /* Text */
  --ps-ink: #22211e;
  --ps-ink-soft: #4b4943;
  --ps-on-slate: #ffffff;
  --ps-on-slate-soft: #e6e8ea;

  /* The one loud accent: electric violet. Primary buttons and the shop link only */
  --ps-violet: #6b1df2;
  --ps-violet-deep: #5310cc;
  --ps-violet-soft: #e7dbff;

  /* The 1-bit screen: two tones only, plus a dither made from them */
  --ps-screen-light: #b4b2a3;
  --ps-screen-dark: #2a2926;
  --ps-screen-glass: #252422;
  --ps-dither: repeating-conic-gradient(var(--ps-screen-dark) 0 25%, var(--ps-screen-light) 0 50%) 0 0 / 4px 4px;

  /* Hardware drawing colors */
  --ps-metal: #c9ccd0;
  --ps-metal-deep: #8d9298;
  --ps-screw: #3a3a3a;

  /* Type */
  --ps-display: "Lexend", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ps-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ps-pixel: "Silkscreen", ui-monospace, "Courier New", monospace;

  --ps-text-mega: clamp(96px, 21vw, 300px);
  --ps-text-hero: clamp(30px, 3.6vw, 48px);
  --ps-text-h2: clamp(32px, 4vw, 54px);
  --ps-text-h3: 24px;
  --ps-text-lead: clamp(18px, 1.6vw, 21px);
  --ps-text-body: 17px;
  --ps-text-small: 15px;
  --ps-text-micro: 12px;

  --ps-tracking-mega: -.06em;
  --ps-tracking-display: -.025em;
  --ps-leading-mega: .78;
  --ps-leading-display: 1.08;

  /* Shape: soft and chunky. Pills for buttons, big radii for devices */
  --ps-radius-sm: 10px;
  --ps-radius: 20px;
  --ps-radius-lg: 32px;
  --ps-radius-device: 44px;
  --ps-radius-pill: 999px;
  --ps-border: 3px solid var(--ps-ink);
  --ps-shadow: 0 2px 0 rgba(0, 0, 0, .08), 0 18px 40px rgba(30, 28, 20, .18);
  --ps-shadow-device: inset 0 -8px 0 var(--ps-sun-deep), inset 0 4px 0 rgba(255, 255, 255, .45), 0 30px 60px rgba(25, 25, 25, .28);
  --ps-shadow-button: inset 0 -4px 0 rgba(0, 0, 0, .22);
  --ps-glow: radial-gradient(closest-side, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0));

  /* Space */
  --ps-gutter: clamp(20px, 3vw, 40px);
  --ps-section: clamp(64px, 9vw, 128px);
  --ps-container: 1120px;
  --ps-narrow: 680px;

  /* Motion: springy */
  --ps-ease: cubic-bezier(.34, 1.56, .64, 1);
  --ps-speed: .25s;
}
