/*
  Tap Tap: design tokens
  Feel: a cheerful practice app on a bright white page. Chunky rounded type,
  buttons with a solid darker bottom edge that press down when tapped,
  cards with a thick bottom border, fat progress bars and one leafy green.

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

:root {
  /* Surfaces */
  --tt-snow: #FFFFFF;
  --tt-cloud: #F4F7F6;
  --tt-line: #E2E6E5;
  --tt-line-deep: #CDD3D1;

  /* Text */
  --tt-ink: #3A3F3E;
  --tt-mute: #7E8785;
  --tt-faint: #AEB5B3;

  /* Accents: each has a "deep" partner for the pressed edge */
  --tt-leaf: #5DC73A;
  --tt-leaf-deep: #45A126;
  --tt-leaf-soft: #E6F8DD;
  --tt-sky: #22A9EE;
  --tt-sky-deep: #1987C2;
  --tt-sky-soft: #DDF2FD;
  --tt-sun: #FFC528;
  --tt-sun-deep: #E09E00;
  --tt-coral: #FF5E5E;
  --tt-coral-deep: #D93E3E;
  --tt-grape: #B27BFF;
  --tt-grape-deep: #8E55E0;

  /* Fonts */
  --tt-font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --tt-font-body: "Nunito", system-ui, sans-serif;

  /* Type scale */
  --tt-size-hero: clamp(2.4rem, 5.2vw, 3.9rem);
  --tt-size-h1: clamp(2rem, 4vw, 3rem);
  --tt-size-h2: clamp(1.6rem, 3vw, 2.3rem);
  --tt-size-h3: 1.35rem;
  --tt-size-lead: 1.2rem;
  --tt-size-body: 1.05rem;
  --tt-size-small: 0.92rem;
  --tt-size-label: 0.82rem;
  --tt-track-label: 0.08em;
  --tt-leading-tight: 1.1;
  --tt-leading-body: 1.6;

  /* Shape */
  --tt-radius-sm: 10px;
  --tt-radius: 16px;
  --tt-radius-lg: 24px;
  --tt-radius-pill: 999px;
  --tt-border: 2px;
  --tt-edge: 4px;        /* the solid bottom edge on buttons */
  --tt-edge-card: 4px;   /* the thick bottom border on cards */

  /* Space */
  --tt-space-1: 4px;
  --tt-space-2: 8px;
  --tt-space-3: 12px;
  --tt-space-4: 16px;
  --tt-space-5: 24px;
  --tt-space-6: 32px;
  --tt-space-7: 48px;
  --tt-space-8: 72px;
  --tt-space-9: 112px;
  --tt-max: 1120px;
  --tt-max-read: 680px;

  /* Motion */
  --tt-press: 90ms ease-out;
}
