/* Do it live: design tokens.
   The system in one line: a fine painting is the frame, a marker breaks out of it.
   Two inks only (black marker, one red mark), one face, one verb (draw).
   Two modes: Paper (the gallery wall: the landing page, the desk, a room in daylight) and
   Night (the stage default in a dark room, PRD L3). The marker turns chalk at night; the red stays red. */
:root {
  /* Color */
  --dl-paper: #fefefe;          /* the wall and every white band */
  --dl-ink: #141414;            /* type */
  --dl-marker: #090909;         /* every scribble, the cord, the frames */
  --dl-chalk: #fefefe;          /* the marker on the night painting; the red stays red */
  --dl-red: #e3302a;            /* the one red mark: the live dot, the crossed-out, the tallest bar */
  --dl-quiet: #55554f;          /* facts and fine print (AA on paper) */
  --dl-wall: #ededea;           /* sheets and boards behind the work; the bar track on paper */
  --dl-red-fill: #e22822;       /* red behind type (a button, a red field): white on it is 4.57:1. Looks the same as --dl-red */

  /* Night: the dark room. Every value holds 7:1 for reading text on --dl-night (PRD L3). */
  --dl-night: #0b0b0f;          /* the stage background in a dark room */
  --dl-quiet-night: #9c9c96;    /* facts and fine print on night, 7.1:1 (--dl-quiet is 2.6 there) */
  --dl-wall-night: #2a2a30;     /* boards and the bar track on night; chalk on it is 14:1 */

  /* Type: Familjen Grotesk only. Bold for the chant and names, medium for lines. */
  --dl-font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --dl-chant: clamp(64px, 12.5vw, 196px);   /* the chant words: F*ck it, / we'll do it / live. / Your turn. */
  --dl-chant-lh: 0.86;
  --dl-chant-track: -0.055em;
  --dl-name: clamp(56px, 7.2vw, 104px);     /* feature and plan names */
  --dl-name-track: -0.05em;
  --dl-lead: clamp(22px, 2.4vw, 34px);      /* the one plain line under a chant word */
  --dl-line: clamp(19px, 2vw, 30px);        /* a feature's line */
  --dl-fact: clamp(16px, 1.5vw, 21px);      /* the fact under the line, in quiet */
  --dl-fine: 16px;                          /* floor for anything a person reads */

  /* Marker: widths in the painting's 1080 space, so they scale with the art. */
  --dl-cord: 22;                /* the cord */
  --dl-icon-stroke: 58;         /* icon strokes in a 1024 box (about 22 in the painting) */
  --dl-doodle: 18;              /* what a visitor draws */
  --dl-mark-px: 8px;            /* red marks on type (rings, arrows), 5px on phones */

  /* Shape */
  --dl-radius: 0;               /* nothing is rounded except the dot */
  --dl-tilt: 1.5deg;            /* paintings hang crooked, up to this either way */

  /* Layout */
  --dl-gutter: 56px;            /* 20px on phones */
  --dl-art: 620px;              /* one painting on desktop; full width on phones */
  --dl-gap: 72px;

  /* The stage: read from the back row on a projector (PRD L3). Sizes at a 1920 wide screen in brackets. */
  --dl-stage-code: clamp(96px, 11vw, 240px);       /* the join code on the join card (211) */
  --dl-stage-question: clamp(56px, 6.4vw, 152px);  /* the question (123) */
  --dl-stage-option: clamp(48px, 5vw, 120px);      /* an option row, a count, a share (96) */
  --dl-stage-chrome: clamp(24px, 1.6vw, 40px);     /* for the speaker only: keys, host, "n here" (31) */
  --dl-stage-mark: max(3px, 0.3vw);                /* the ring round the room's answer, one weight at any width (6) */

  /* Motion */
  --dl-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dl-pen: 900;                /* on-screen px a second: the cord keeps one pen speed */
  --dl-ink-icon: 0.9s;          /* a drawing inks itself in under a second */
  --dl-pop: 0.32s;              /* the red dot lands last */
  --dl-doodle-fade: 2.2s;       /* a visitor's mark stays this long, then fades */
  /* The stage never draws itself in: on the stage the slides are the motion. Chrome moves at most this. */
  --dl-stage-move: 180ms;       /* PRD L3: nothing on the stage over 200 ms; bars, a state change */
}
@media (max-width: 900px) {
  :root { --dl-gutter: 20px; --dl-gap: 28px; --dl-mark-px: 5px; }
}
