/*
 * Sunny Slab: design tokens
 * A cheerful little-gadget style. A pewter gray stage with a soft spotlight, one chunky
 * yolk-yellow object drawn in the middle of it, and then whole sections painted yolk yellow
 * with heavy black headlines that end in a full stop ("The Dial."). A giant stacked
 * lowercase wordmark, a grape-purple pill button with a pressed-in bottom edge, tilted black
 * stickers and tiny pixel type on gray screens. Chunky, rounded, a bit retro, never serious.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Figtree:wght@400;500;700&family=Silkscreen&display=swap" rel="stylesheet">
 */
:root {
  /* The stage: pewter gray with a lighter spotlight in the middle */
  --sy-pewter: #80868e;
  --sy-pewter-deep: #646a72;
  --sy-pewter-light: #a3a8ae;
  --sy-spot: #b6bac0;

  /* The sunny sections */
  --sy-yolk: #ffc624;
  --sy-yolk-deep: #f4a90a;
  --sy-yolk-soft: #ffe58f;
  --sy-cream: #fff7df;
  --sy-white: #ffffff;

  /* Text */
  --sy-ink: #241f19;
  --sy-ink-soft: #5a4f3c;
  --sy-on-pewter: #ffffff;

  /* The one action color: grape purple */
  --sy-grape: #6f1ff0;
  --sy-grape-deep: #4d0fb3;
  --sy-grape-soft: #e7dcff;

  /* Drawn screens and hardware */
  --sy-screen: #2b2c2b;
  --sy-lcd: #b4b8ad;
  --sy-lcd-ink: #2f312d;
  --sy-steel: #c9ccd0;
  --sy-bolt: #3a3d42;

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

  --sy-text-mark: clamp(110px, 21vw, 300px);
  --sy-text-hero: clamp(30px, 3.6vw, 48px);
  --sy-text-h2: clamp(34px, 4.4vw, 58px);
  --sy-text-h3: 24px;
  --sy-text-lead: clamp(18px, 1.6vw, 21px);
  --sy-text-body: 17px;
  --sy-text-small: 14px;
  --sy-text-pixel: 12px;

  --sy-tracking-tight: -.035em;
  --sy-leading-mark: .78;

  /* Shape: everything is a rounded slab with a thick edge */
  --sy-radius-sm: 10px;
  --sy-radius: 20px;
  --sy-radius-lg: 34px;
  --sy-radius-pill: 999px;
  --sy-edge: 3px solid var(--sy-ink);
  --sy-press: 0 5px 0 var(--sy-grape-deep);
  --sy-press-ink: 0 5px 0 var(--sy-ink);
  --sy-slab: 0 10px 0 rgba(36, 31, 25, .18), 0 24px 40px -18px rgba(36, 31, 25, .45);
  --sy-sticker: 0 6px 0 rgba(0, 0, 0, .25);

  /* Space */
  --sy-gutter: clamp(20px, 4vw, 56px);
  --sy-section: clamp(72px, 9vw, 128px);
  --sy-container: 1160px;
  --sy-narrow: 720px;

  /* Motion: springy */
  --sy-spring: cubic-bezier(.34, 1.56, .64, 1);
  --sy-speed: .18s;
}
