/* SCRATCH tokens. One family: cream stock, black keylines, spot inks, hard shadows, visible grain.
   Swap the ground in ONE line: --ground (the dot screen follows --ground-dot). */
:root {
  /* ground: the printed shop backer */
  --ground: #0C5B3F;
  --ground-dot: #094730;

  /* stock and inks */
  --ink: #111111;
  --cream: #F4EFE2;
  --paper: #FBFAF5;
  --print: #2B2B33;
  --orange: #FF5A1F;
  --yellow: #FFD60A;
  --green: #0E7A4B;
  --red: #D4202A;
  --latex: #A9ADB0;
  --latex-2: #8C9094;
  --gold-1: #C9A227;
  --gold-2: #F2D675;
  --gold-3: #8A6A0B;

  /* helpers of the same family (not new inks: shades of the stock) */
  --core: #FFFFFF;          /* the white plastic core you see on a card edge */
  --cream-2: #E6DFCB;       /* cream in shade */
  --tape: #EADFB6;          /* masking tape under marker writing */

  /* type */
  --f-display: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --f-marker: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;
  --f-barcode: 'Libre Barcode 128', 'Libre Barcode 39', monospace;

  /* type scale: body is big, numbers are bigger */
  --t-micro: 10px;
  --t-small: 12px;
  --t-mono: 14px;
  --t-body: 16px;
  --t-lead: 20px;
  --t-print: clamp(30px, 8.4vw, 64px);
  --t-print-xl: clamp(52px, 15vw, 148px);
  --t-number: clamp(40px, 11vw, 96px);

  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --gutter: 16px;           /* page side margin on a phone */

  /* hard offset shadows. Never a blur. */
  --shadow: 3px 3px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --r-card: 18px;

  /* card sizes. Inside a card every measure is in cqw, so a card scales like a printed thing. */
  --card-hero-port-max: 430px;   /* portrait hero: fills a phone, 342 x 520 at 390 wide */
  --card-hero-port-ratio: 342 / 520;
  --card-hero-land-min: 720px;   /* its box is this wide or wider -> landscape */
  --card-hero-land-max: 800px;   /* landscape hero: about 760 x 480 */
  --card-hero-land-ratio: 760 / 480;
  --card-deck-max: 400px;        /* deck card: about 340 x 212 */
  --card-deck-ratio: 340 / 212;
  --card-mini-max: 420px;        /* past card: about 320 x 104 */
  --card-mini-ratio: 320 / 104;

  /* foil: hard-edged bands only. The one place a gradient is allowed. */
  --foil-holo: repeating-linear-gradient(
    180deg,
    #E9ECEE 0 9px, #8F9498 9px 13px, #7FE0B0 13px 24px, #F2D675 24px 31px, #E9ECEE 31px 37px,
    #FF9A8B 37px 48px, #C9CCCF 48px 59px, #39B8A6 59px 66px, #F4EFE2 66px 72px, #8F9498 72px 80px
  );
  --foil-gold: repeating-linear-gradient(
    118deg,
    var(--gold-1) 0 14px, var(--gold-2) 14px 26px, #FFF3B8 26px 31px, var(--gold-2) 31px 38px,
    var(--gold-1) 38px 55px, var(--gold-3) 55px 63px, var(--gold-1) 63px 74px, var(--gold-2) 74px 90px
  );

  /* textures. Set at runtime by initTextures() as url(data:...). Until then: nothing.
     --tex-grain      256 px tile, mostly clear, dark and light specks. Lay it OVER a colour (background layer).
     --tex-halftone   32 px tile (use background-size 16px 16px): black dots at low alpha on a 45 degree screen.
     --tex-guilloche  static SVG security lines (green). --tex-guilloche-gold for the gold card.
     --tex-latex      opaque speckled silver with a printed micro pattern.
     Extra ones the kit uses:
     --tex-ink        192 px tile, mostly SOLID with holes. Use it as a mask-image for broken stamp ink.
     --tex-ground     tall dot screen in --ground-dot (dots swell and shrink down the page).
     --tex-rosette / --tex-rosette-gold   one guilloche rosette, no repeat. */
  --tex-grain: none;
  --tex-halftone: none;
  --tex-guilloche: none;
  --tex-guilloche-gold: none;
  --tex-latex: none;
  --tex-ink: none;
  --tex-ground: none;
  --tex-rosette: none;
  --tex-rosette-gold: none;
  --tex-halftone-size: 16px 16px;
}
