/*
 * Sun Crank: design tokens
 * A toy-box gadget style: a flat pewter-gray hero with a soft spotlight, full-bleed egg-yolk
 * yellow sections, chunky heavy grotesque headlines, one glossy grape-purple pill for the main
 * action, tilted stickers, and a 1-bit gray screen with pixel type as the product motif.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Figtree:wght@400;500;700;800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --sc-pewter: #787e86;      /* the hero and the closing band */
  --sc-pewter-2: #9aa0a7;    /* the spotlight glow behind the device */
  --sc-pewter-3: #5f656c;    /* hairlines and darker edges on pewter */
  --sc-yolk: #ffc61c;        /* the main body color, full-bleed sections */
  --sc-yolk-2: #ffd659;      /* cards and fields sitting on yolk */
  --sc-yolk-deep: #f4a30c;   /* the bottom of the big word gradient, device shading */
  --sc-paper: #fffbef;       /* light sections, forms, article body */
  --sc-paper-2: #f3ecd8;     /* lines and quiet fills on paper */

  /* Text */
  --sc-ink: #221d17;         /* every headline and body text on yolk and paper */
  --sc-ink-soft: #5c4d33;    /* secondary text on yolk and paper */
  --sc-white: #ffffff;       /* text on pewter and grape */

  /* The one action color: grape. Primary buttons and the odd link, nothing else */
  --sc-grape: #6b1df2;
  --sc-grape-dark: #5110c9;
  --sc-grape-glow: #9a63ff;

  /* The 1-bit screen */
  --sc-screen: #2b2a27;      /* bezel and device face */
  --sc-lcd: #b4b5ad;         /* the reflective screen itself */
  --sc-lcd-ink: #262622;     /* pixels on the screen */

  /* Fonts */
  --sc-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sc-sans: Figtree, "Helvetica Neue", Arial, sans-serif;
  --sc-pixel: Silkscreen, "Courier New", monospace;

  /* Type scale */
  --sc-text-giant: clamp(96px, 20vw, 260px);   /* the one giant stacked wordmark */
  --sc-text-hero: clamp(34px, 4.6vw, 56px);
  --sc-text-h2: clamp(34px, 4.4vw, 54px);
  --sc-text-h3: 24px;
  --sc-text-lead: 20px;
  --sc-text-body: 17px;
  --sc-text-small: 14px;
  --sc-text-micro: 12px;

  /* Shape */
  --sc-radius-device: 34px;
  --sc-radius-lg: 24px;
  --sc-radius: 16px;
  --sc-radius-sm: 10px;
  --sc-radius-pill: 999px;
  --sc-border: 3px solid var(--sc-ink);

  /* Shadows: soft drops under objects, a glossy bevel on the grape pill */
  --sc-shadow-object: 0 30px 60px -20px rgba(34, 29, 23, .45), 0 8px 18px -6px rgba(34, 29, 23, .3);
  --sc-shadow-card: 0 14px 30px -14px rgba(34, 29, 23, .35);
  --sc-shadow-pill: inset 0 -4px 0 rgba(0, 0, 0, .22), inset 0 3px 0 rgba(255, 255, 255, .28), 0 10px 22px -8px rgba(81, 16, 201, .7);
  --sc-shadow-button: inset 0 -5px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .55);

  /* Space */
  --sc-container: 1120px;
  --sc-narrow: 720px;
  --sc-section: clamp(72px, 10vw, 128px);
  --sc-gap: 24px;

  /* Motion */
  --sc-ease: cubic-bezier(.34, 1.56, .64, 1);   /* a small springy overshoot */
}
