/*
  Yolk Pocket: design tokens
  Feel: a cheerful little gadget. A slate-grey spotlight stage for the hero,
  then big fields of egg-yolk yellow, chunky heavy rounded headlines that end
  with a period, a grape-purple pill button, tilted black stickers and
  1-bit "screen" panels drawn with a dither.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;0,900;1,800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
*/
:root {
  /* Color */
  --yp-slate: #7a7e86;
  --yp-slate-deep: #5c6068;
  --yp-slate-glow: #a9adb4;
  --yp-yolk: #ffc417;
  --yp-yolk-deep: #f4a60c;
  --yp-yolk-soft: #ffe27f;
  --yp-cream: #fff7de;
  --yp-ink: #2a251f;
  --yp-ink-soft: #5a4f3f;
  --yp-white: #ffffff;
  --yp-grape: #7a1ff0;
  --yp-grape-deep: #5510b8;
  --yp-screen: #b8b6ab;
  --yp-pixel: #1d1c1a;
  --yp-line: rgba(42, 37, 31, 0.18);

  /* Fonts */
  --yp-font: "Rubik", system-ui, sans-serif;
  --yp-pixel-font: "Silkscreen", "Courier New", monospace;

  /* Type scale */
  --yp-size-mega: clamp(5rem, 17vw, 13rem);
  --yp-size-h1: clamp(2rem, 4.6vw, 3.4rem);
  --yp-size-h2: clamp(1.9rem, 3.6vw, 2.8rem);
  --yp-size-h3: 1.4rem;
  --yp-size-lead: clamp(1.15rem, 1.8vw, 1.4rem);
  --yp-size-body: 1.0625rem;
  --yp-size-small: 0.875rem;
  --yp-size-pixel: 0.75rem;
  --yp-leading-tight: 0.86;
  --yp-leading-head: 1.08;
  --yp-leading-body: 1.55;

  /* Shape */
  --yp-radius-sm: 10px;
  --yp-radius: 18px;
  --yp-radius-lg: 30px;
  --yp-radius-device: 40px;
  --yp-radius-pill: 999px;
  --yp-border: 3px solid var(--yp-ink);

  /* Shadows */
  --yp-shadow-button: inset 0 -5px 0 var(--yp-grape-deep), 0 8px 18px rgba(85, 16, 184, 0.35);
  --yp-shadow-device: inset 0 -10px 0 var(--yp-yolk-deep), 0 30px 60px rgba(29, 28, 26, 0.35);
  --yp-shadow-card: 0 18px 40px rgba(42, 37, 31, 0.16);
  --yp-shadow-sticker: 0 10px 22px rgba(29, 28, 26, 0.35);
  --yp-glow: radial-gradient(ellipse at 50% 30%, var(--yp-slate-glow) 0%, var(--yp-slate) 55%, var(--yp-slate-deep) 100%);
  --yp-dither: repeating-conic-gradient(var(--yp-pixel) 0 25%, transparent 0 50%) 0 0 / 4px 4px;

  /* Space */
  --yp-space-1: 0.5rem;
  --yp-space-2: 1rem;
  --yp-space-3: 1.5rem;
  --yp-space-4: 2.5rem;
  --yp-space-5: 4rem;
  --yp-space-6: 6.5rem;
  --yp-max: 1120px;
  --yp-max-text: 640px;
}
