/* Spacing, radii, borders, shadows, grids, motion.
   The rules define button radius, grain export sizes and the module grids.
   The spacing scale, radii and motion values below are a working set read from the reference art. */
:root{
  /* spacing */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;

  /* radii */
  --radius-button:999px;
  --radius-pill:999px;
  --radius-xs:4px;
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:24px;     /* device / playable frames, as in the "Ship it everywhere" slide */
  --radius-none:0;      /* flat shapes, panels on a module grid */

  /* borders */
  --border-width:1px;
  --border-width-frame:4px;         /* Ink device frame around a playable */
  --border-selection-style:1.5px dashed var(--border-selection);

  /* shadows: product UI only. Grained art carries its own shadow. */
  --shadow-none:none;
  --shadow-card:0 1px 0 var(--genie-ink-12);
  --shadow-pop:0 12px 32px -12px rgba(60,8,77,.28);

  /* dot-grid product motif */
  --dot-grid-size:24px;
  --dot-grid-image:radial-gradient(circle at 1px 1px, var(--dot-grid) 1px, transparent 1.4px);

  /* module grids for flat backgrounds */
  --module-square:360px;    /* 3x3 on 1080 x 1080 */
  --module-story:540px;     /* 2 columns on 1080 x 1920 */
  --module-slide:480px;     /* 4 columns on 1920 x 1080 */

  /* grain raster export sizes (long edge). Place at 30 to 60% of export size. Only scale down. */
  --grain-export-s:512px; --grain-export-m:1024px; --grain-export-l:2048px;

  /* layout */
  --content-max:1200px;
  --gutter:24px;

  /* motion: calm, short, no bounce */
  --ease-out:cubic-bezier(.2,.7,.2,1); /* @kind other */
  --ease-in-out:cubic-bezier(.6,0,.3,1); /* @kind other */
  --dur-fast:120ms; /* @kind other */
  --dur-base:200ms; /* @kind other */
  --dur-slow:360ms; /* @kind other */
}
