/* Design tokens (founder's review 2026-10-16, after the "BRUT." reference board; ADR-0020): white paper, black ink,
   black rules framing every block (a grid of boxes), square corners, no soft shadows. One brand colour for actions and
   the current place, red only for "now shooting" and critical. One theme for everyone since 2026-10-19: Mono (black
   brand, white text on it), so people describing a screen to each other see the same colours. --brand-fg is the
   brand colour when it is used as text or a line on paper. */
:root {
  --font-ui: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Anton', 'Archivo Variable', Impact, 'Arial Narrow', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-script: 'Courier Prime', 'Courier New', Courier, 'Noto Sans Mono CJK SC', monospace;

  --paper: #ffffff;         /* the page */
  --ink: #0b0b0b;           /* text */
  --muted: #5a5a5a;
  --line: #0b0b0b;          /* frames: panels, tables, inputs, the header grid */
  --hair: #d6d6d6;          /* light dividers inside a frame (table rows, list items) */
  --surface: #ffffff;       /* cards, panels, inputs */
  --surface-2: #f4f4f1;     /* table heads, quiet fills */
  --brand: #0b0b0b;         /* primary actions, the tab you're on */
  --brand-ink: #ffffff;     /* text on --brand */
  --brand-fg: #0b0b0b;      /* brand as text or a line on paper */
  --brand-soft: #ececea;    /* tinted backgrounds: selected rows, active tab */
  --accent: #ff3b1f;        /* now shooting, critical */
  --accent-ink: #0b0b0b;    /* text on --accent */
  --ok: #1f7a3f;
  --warn: #b26a00;
  --tomato: #ff6347;        /* writers' room: a character whose details are still missing */
  /* 2026-10-22, founder's review: a few calm colours beside the black and white — never a colourful page. */
  --select: #1e3a8a; --select-ink: #ffffff; --select-soft: #e3e9f7;   /* a selected scene, row or item: dark blue */
  --save: #166534; --save-ink: #ffffff;                                /* Save: the disk in dark green */
  --danger-fill: #d42a1a; --danger-ink: #ffffff;                       /* Delete: a white bin on red */
  --cancel: #c81e1e;                                                   /* Cancel: the no-entry sign in red */
  --tomato-soft: #ffece8;                                              /* important, not done yet (pulses slowly) */
  --day-soft: #fff6d5; --day-mark: #a87a00;                            /* a story day's day scenes (sun) */
  --night: #1c2640; --night-ink: #eef1f8; --night-hair: #3a4565;       /* its night scenes, same 24 hours (moon) */
  --flash-soft: #f0eafb; --flash-line: #6b4fa3;                        /* flashbacks, replays */
  --dream-soft: #e5f3f2; --dream-line: #2f7f86;                        /* dreams */
  --shade-head: #eef1f6;                                               /* a container's title band */
  --shade-prep: #faf8f3; --shade-scenes: #f3f6fa; --shade-talk: #f3f8f1; /* light fills that tell containers apart */
  --info: #22408f;      /* dark blue for secondary/creative actions */
  /* Public site bands (landing, explainers): three deep colours beside the paper, used a section at a time. */
  --pub-blue: #16335c; --pub-blue-ink: #ffffff; --pub-blue-soft: #e6edf8;
  --pub-green: #17452f; --pub-green-ink: #ffffff; --pub-green-soft: #e4f1ea;
  --pub-purple: #432b66; --pub-purple-ink: #ffffff; --pub-purple-soft: #eee8f7;
  /* Signal icons (core/icons.js crit / warn / ok): fixed red, yellow and green. */
  --sig-crit: #e0201b; --sig-warn: #ffd400; --sig-ok: #1f9d4c;
  /* The storyboard maker draws on paper (the drawing is saved as a picture). */
  --sketch-paper: #ffffff; --sketch-ink: #1d1d1b; --sketch-grey: #9a9a9a; --sketch-red: #c8502a; --sketch-blue: #2f6690; --sketch-green: #3f7a4a; --sketch-orange: #cc7722; --sketch-purple: #6a4c93; --sketch-brown: #7a5230; --sketch-guide: rgb(200 80 42 / 0.45);
  --sb-draw: #1f5c3a; --sb-draw-ink: #ffffff;
  /* The script reader (scene modal) is old paper, so a script reads as a script. */
  --old-paper: #eae6db; --old-paper-edge: #eae6db; --old-paper-ink: #2a2014; --old-paper-muted: #6b5737; --old-paper-hl: #f6e15a;
  /* Every scene's script box sits on the same faintly yellow paper. */
  --script-paper: #fbf6e6;
  /* Landing illustrations: fixed skin tones, night sky and clothes. */
  --il-skin-1: #c68b5e; --il-skin-2: #9a6440; --il-skin-3: #e0b088; --il-night: #23303f; --il-bulb: #f5c96a;
  /* Tones for charts and timelines. */
  --tone-1: #0b0b0b; --tone-2: #8a8a8a; --tone-3: #c4c4c4; --tone-4: #ff3b1f;
  /* Writers' ink: one colour per writer or role in the writers' room (the imported script stays --ink). */
  --ink-0: #1d4ed8; --ink-1: #b45309; --ink-2: #7e22ce; --ink-3: #047857;
  --ink-4: #be185d; --ink-5: #0e7490; --ink-6: #4d7c0f; --ink-7: #9f1239;
  /* Story acts on the writers' room timeline: Act 1, 2, 3… cycle through these six (any number of acts). */
  --act-1: #2f7f86; --act-2: #c08a1e; --act-3: #7a4d9a; --act-4: #4f8a5b; --act-5: #b8506a; --act-6: #4a6fa5;

  --radius: 0px;
  --radius-sm: 0px;
  --pill: 0px;            /* badges and chips: square too */
  --bw: 2px;              /* frame width */
  --shadow: none;
  --shadow-lift: 5px 5px 0 var(--ink);   /* menus and modals: a hard offset block */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-xxl: 3rem;

  --tap: 48px;            /* minimum touch target on set (40 px with a mouse, below) */

  /* Stripboard convention (shown as a thin left edge) */
  --strip-int-day: #d6d2c8;
  --strip-ext-day: #e3b93c;
  --strip-int-night: #4a6fa5;
  --strip-ext-night: #4f8a5b;
  --strip-twilight: #d9853a;

  /* Breakdown highlights (industry convention, docs/11-ui-ux.md §4b). Wardrobe, HMU and special equipment are
     marked by shape (circle, asterisk, box) in ink, so the page never relies on colour alone. */
  --bd-cast: #d93a3a;
  --bd-stunts: #e8822a;
  --bd-background: #3f9a4f;
  --bd-props: #8a5cc7;
  --bd-vehicles: #e26fa8;
  --bd-animals: #e26fa8;
  --bd-sfx: #3a78d9;
  --bd-sound: #8b5a2b;
  --bd-music: #8b5a2b;
  --bd-set-dressing: #2aa3a3;
  --bd-weapons: #c2a000;
  --bd-vfx: #19a1c9;
  --bd-greenery: #1f6b3a;
  --bd-other: #9a9a9a;
  --bd-wardrobe: #1f4e8c;
  --bd-hmu: #b5651d;
  --bd-special: #555555;
  /* Characters' relationship diagram (writers' room): family in ink, the rest by feeling */
  --rel-love: #c2557a;
  --rel-friend: #4f8a5b;
  --rel-rival: #d9853a;
  --rel-enemy: #8e3b3b;
  color-scheme: light;
}

/* With a mouse or trackpad, controls can be smaller; touch screens keep 48 px. */
@media (pointer: fine) {
  :root { --tap: 40px; }
}
