/*
  Sun Tile: design tokens
  Feel: a tiny toy-like gadget sitting on a soft grey spotlight. Chunky
  rounded headlines, sunny yellow bevelled tiles with little screws in the
  corners, dark matte screens with pixel lettering, tilted sticker badges
  and one electric violet pill for the main action.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --st-fog: #E6E8EB;        /* the page */
  --st-mist: #F3F4F6;       /* the spotlight glow, raised panels */
  --st-white: #FFFFFF;      /* cards, inputs */
  --st-stone: #CDD1D6;      /* borders and dividers */
  --st-slate: #8E949C;      /* the darker grey band */

  /* Text */
  --st-ink: #222428;
  --st-mute: #5F646C;
  --st-faint: #9AA0A8;

  /* The yellow object */
  --st-sun: #F5BC34;
  --st-sun-light: #FFD970;  /* top-left highlight */
  --st-sun-deep: #D2951A;   /* bottom-right shade, outlines */
  --st-sun-soft: #FDF1CF;

  /* The screen */
  --st-screen: #2A2C2F;
  --st-screen-glass: #3A3D41;
  --st-pixel: #A7AE9C;      /* lit pixels on the screen */
  --st-pixel-dim: #6D7268;

  /* Accents */
  --st-violet: #6B2CF0;
  --st-violet-deep: #4E17C4;
  --st-violet-soft: #ECE4FE;
  --st-steel: #B4B9C0;      /* screws, the crank */
  --st-steel-deep: #7C828A;
  --st-alert: #E0523A;

  /* Fonts */
  --st-font-display: "Outfit", system-ui, sans-serif;
  --st-font-body: "Outfit", system-ui, sans-serif;
  --st-font-pixel: "Silkscreen", "Courier New", monospace;

  /* Type scale */
  --st-size-hero: clamp(2.5rem, 6vw, 4.6rem);
  --st-size-h1: clamp(2.1rem, 4.4vw, 3.3rem);
  --st-size-h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --st-size-h3: 1.35rem;
  --st-size-lead: 1.22rem;
  --st-size-body: 1.06rem;
  --st-size-small: 0.94rem;
  --st-size-label: 0.78rem;
  --st-size-pixel: 0.8rem;
  --st-leading-tight: 1.04;
  --st-leading-body: 1.6;
  --st-track-tight: -0.025em;
  --st-track-pixel: 0.04em;

  /* Shape */
  --st-radius-sm: 10px;
  --st-radius: 18px;
  --st-radius-lg: 30px;
  --st-radius-pill: 999px;
  --st-border: 2px;

  /* Shadows: the bevel is two insets, the lift is one soft drop */
  --st-bevel: inset 5px 5px 0 var(--st-sun-light), inset -6px -6px 0 var(--st-sun-deep);
  --st-bevel-white: inset 3px 3px 0 var(--st-white), inset -4px -4px 0 var(--st-stone);
  --st-lift: 0 22px 40px -18px rgba(34, 36, 40, 0.45);
  --st-lift-sm: 0 10px 20px -12px rgba(34, 36, 40, 0.4);
  --st-screen-inset: inset 0 4px 10px rgba(0, 0, 0, 0.5);
  --st-glow: radial-gradient(ellipse at 50% 42%, var(--st-mist) 0%, var(--st-fog) 62%);

  /* Space */
  --st-space-1: 4px;
  --st-space-2: 8px;
  --st-space-3: 12px;
  --st-space-4: 16px;
  --st-space-5: 24px;
  --st-space-6: 32px;
  --st-space-7: 48px;
  --st-space-8: 80px;
  --st-space-9: 120px;
  --st-max: 1160px;
  --st-max-read: 700px;

  /* Motion */
  --st-ease: 160ms cubic-bezier(0.3, 1.4, 0.6, 1);
}
