/*
 * Chalk Band: design tokens
 * Homemade-web nostalgia, the friendly 2010s kind. The page is a stack of full-width color bands:
 * a dusty teal sky with white chalk doodles drawn over it (a skyline, stars, a little sun), a deep
 * slate body where most of the reading happens, and a crimson band that holds a wall of framed page
 * thumbnails. Headlines are a soft slab serif in warm off-white, body is a humanist sans, small
 * highlights are chartreuse, and the one action is a red button with a pressed-in bevel.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Noticia+Text:ital,wght@0,400;0,700;1,400&family=Ubuntu:wght@400;500;700&family=Ubuntu+Mono&display=swap" rel="stylesheet">
 */

:root {
  /* Bands */
  --cb-sky: #5f9faa;          /* the teal top band with chalk doodles */
  --cb-sky-deep: #4d8993;     /* the nav bar, a shade under the sky */
  --cb-slate: #2d3e46;        /* the main body band */
  --cb-slate-2: #384b54;      /* panels and cards on slate */
  --cb-well: #22323a;         /* inputs and code wells, sunk into slate */
  --cb-crimson: #a3253a;      /* the gallery band */
  --cb-crimson-2: #8a1e31;    /* rows and edges on crimson */
  --cb-ink-band: #1c272d;     /* the footer */

  /* Paper (inside thumbnails and article figures) */
  --cb-paper: #fbf6ea;
  --cb-paper-2: #efe6d2;

  /* Text */
  --cb-chalk: #f4f1e6;        /* headlines and body on dark */
  --cb-mist: #b2c3c8;         /* secondary text on slate */
  --cb-mute: #7f949b;         /* captions, placeholders */
  --cb-ink: #2b2f31;          /* text on paper */

  /* Accents */
  --cb-lime: #c6dc66;         /* highlighted sentences, links, feature dots */
  --cb-red: #d73a45;          /* the one action button */
  --cb-red-edge: #a9232e;     /* the bevel under the red button */
  --cb-sun: #f1b647;          /* stars, the hit counter, small notes */
  --cb-line: rgba(244, 241, 230, .14);  /* rules on dark bands */
  --cb-chalk-line: rgba(255, 255, 255, .78); /* doodle strokes */

  /* Fonts */
  --cb-serif: "Noticia Text", Georgia, "Times New Roman", serif;
  --cb-sans: "Ubuntu", "Trebuchet MS", Verdana, sans-serif;
  --cb-mono: "Ubuntu Mono", "Courier New", monospace;

  /* Type scale */
  --cb-text-hero: clamp(32px, 4.2vw, 48px);
  --cb-text-h2: clamp(27px, 3vw, 36px);
  --cb-text-h3: 23px;
  --cb-text-lead: 17px;
  --cb-text-body: 16px;
  --cb-text-small: 14px;
  --cb-text-micro: 12px;
  --cb-leading: 1.7;

  /* Shape */
  --cb-radius: 6px;           /* panels, cards, inputs */
  --cb-radius-sm: 4px;        /* buttons, tags */
  --cb-pill: 999px;           /* feature dots, counters */
  --cb-bevel: 0 3px 0 var(--cb-red-edge);
  --cb-bevel-quiet: 0 3px 0 rgba(0, 0, 0, .28);
  --cb-inset: inset 0 2px 3px rgba(0, 0, 0, .35);
  --cb-shadow-panel: 0 10px 30px rgba(10, 20, 25, .35);
  --cb-shadow-thumb: 0 4px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(40, 0, 10, .28);
  --cb-frame: 6px;            /* white frame around thumbnails */

  /* Space */
  --cb-container: 1120px;
  --cb-narrow: 680px;
  --cb-band: clamp(56px, 7vw, 88px);
  --cb-gap: 24px;
  --cb-bar: 44px;             /* nav bar height */
}
