/*
 * Lighting Expert — brand tokens. Proposed 2026-09-18; name, indigo and the
 * two-line signature ruled by Neil on 2026-09-27.
 *
 * The course had text and no identity. This is the proposed one, written in
 * the same shape as Cinema Tools' `shared/brand/tokens.css` so a delivery
 * surface, a review sheet or a deck can <link> to it from day one and the
 * values can move without anything else changing. Nothing here is ruled;
 * `brand-direction.md` beside it says what each choice is for and what the
 * open questions are. Swap a value here and every consumer follows.
 *
 * The rule carried over from Cinema Tools (Neil, 2026-08-28): the brand
 * colour does not move between light and dark. Only the ink job moves.
 */

:root {
  /* Primary — the night against which light is seen. Deep indigo, 12:1 on
     white, so it fills a band with white type on either ground. */
  --rl-color-primary: #1f2a5a;
  --rl-color-primary-contrast: #ffffff;

  /* The ends of tunable white, candle-warm to daylight-cool. Stage markers
     and the white line of the signature. Never text. */
  --rl-color-warm: #f0a84a;
  --rl-color-cool: #bcd3ff;

  /* THE SIGNATURE (Neil, 2026-09-27): two thin lines, stacked, about the
     width the old single gradient took. The upper is the white fade, the
     lower an RGB fade: tunable white and colour, side by side. Once per page
     at most, on the indigo or the page ground. Never text, never a fill. */
  --rl-signature-white: linear-gradient(90deg, var(--rl-color-warm), #f1e6d0 50%, var(--rl-color-cool));
  --rl-signature-rgb: linear-gradient(90deg, #ff2a2a, #ffd400 20%, #2adf5a 40%, #2ad4ff 60%, #3a4bff 80%, #d42aff);
  --rl-signature-line: 3px;
  --rl-signature-gap: 3px;

  /* Brand colour doing an INK job — links, focus, anything read rather than
     filled. Identical to the primary in light; moves in dark. */
  --rl-color-accent: #1f2a5a;

  /* Neutrals — the same posture as Cinema Tools, so the two courses sit
     beside each other without arguing. */
  --rl-color-bg: #ffffff;
  --rl-color-fg: #1a1a1a;
  --rl-color-muted: #6b6b6b;
  --rl-color-border: #d8d8d8;
  --rl-color-surface: #f7f7f7;

  /* Status — shared with Cinema Tools deliberately: pass, marginal and fail
     mean the same thing in both courses. */
  --rl-color-pass: #2e7d32;
  --rl-color-marginal: #ef6c00;
  --rl-color-fail: #c62828;

  /* Typography — Montserrat display, as Cinema Tools, so the house is one
     house. Body stays a system stack until a body face is chosen. */
  --rl-font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rl-font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --rl-page: 1100px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* The ink moves to a warm off-white — 2700 K, near enough, which is the
       course's own joke — because indigo on a dark ground is invisible. */
    --rl-color-accent: #f1e6d0;

    --rl-color-bg: #0f1116;
    --rl-color-fg: #e6e6e6;
    --rl-color-muted: #9aa0ab;
    --rl-color-border: #2e333c;
    --rl-color-surface: #171a21;
  }
}
