/*
 * Glyph Ribbon: design tokens
 * Playful and nerdy on a pale aqua page. A rounded "pad" panel with a tab on top holds the
 * product, ribbons of small colored glyphs run across it like a keyboard of symbols, nav links
 * are big and underlined in teal, and square glyph chips sit next to short paragraphs.
 * Flat: thin slate borders, no drop shadows. Six glyph colors, used only for symbols and dots.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: aqua page, lighter aqua panels, near-white editor wells */
  --gr-aqua: #cbe9ed;
  --gr-aqua-2: #ddf1f3;
  --gr-foam: #eaf6f7;
  --gr-well: #f4f8f8;
  --gr-white: #ffffff;
  --gr-line: #93aeb3;
  --gr-line-soft: #b4ced2;

  /* Text */
  --gr-ink: #263a40;
  --gr-ink-soft: #4f666c;
  --gr-faint: #7f979c;

  /* Action and links */
  --gr-teal: #0b8597;
  --gr-teal-dark: #086b7a;
  --gr-teal-tint: #bfe3e8;

  /* Glyph colors: for symbols, dots, chips and code tokens only, never body text */
  --gr-orange: #ec7f45;
  --gr-sun: #dfae22;
  --gr-lime: #6dbb45;
  --gr-sky: #3398d6;
  --gr-violet: #ad55d2;
  --gr-rose: #df5468;

  /* Type */
  --gr-display: "Lexend", "Trebuchet MS", system-ui, sans-serif;
  --gr-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gr-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gr-text-hero: clamp(36px, 5.4vw, 68px);
  --gr-text-h2: clamp(28px, 3.4vw, 40px);
  --gr-text-h3: 21px;
  --gr-text-lead: clamp(18px, 1.7vw, 22px);
  --gr-text-body: 18px;
  --gr-text-small: 15px;
  --gr-text-micro: 13px;
  --gr-text-nav: clamp(17px, 1.6vw, 21px);
  --gr-text-glyph: 22px;

  --gr-tracking-hero: -.015em;

  /* Shape: rounded panels with thin borders, flat everywhere */
  --gr-radius-xs: 4px;
  --gr-radius-sm: 8px;
  --gr-radius: 12px;
  --gr-radius-lg: 18px;
  --gr-radius-pill: 999px;
  --gr-border: 2px solid var(--gr-line);
  --gr-border-soft: 1px solid var(--gr-line-soft);
  --gr-focus: 0 0 0 3px var(--gr-teal-tint), 0 0 0 5px var(--gr-teal);

  /* Space */
  --gr-space-1: 4px;
  --gr-space-2: 8px;
  --gr-space-3: 12px;
  --gr-space-4: 16px;
  --gr-space-5: 24px;
  --gr-space-6: 32px;
  --gr-space-7: 48px;
  --gr-space-8: 72px;
  --gr-space-9: 104px;

  --gr-container: 1080px;
  --gr-reading: 700px;
  --gr-ease: cubic-bezier(.2, .7, .2, 1);
}
