/* Rebrand tokens. The first block is kit/assets/tokens.css as delivered.
   Every brand value lives here, so a later brand only overrides this file. */
:root{
  /* colour: one red everywhere */
  --ink:#0a0a0a; --surface:#111111; --surface-2:#161616; --line:#1e1e1e; --frame:#222222; --tile:#141414; --board:#0d0d0d;
  --paper:#eae4dc; --dim:#b0b0b0; --mute:#8d8880;
  --red:#e03418; --red-hot:#ff5c2b; --red-dark:#8b1a1a;
  /* the red pass ramp, dark to light */
  --ramp-0:#0a0a0a; --ramp-1:#3a0d0a; --ramp-2:#8b1a1a; --ramp-3:#e03418; --ramp-4:#ff5c2b; --ramp-5:#f0b79a; --ramp-6:#eae4dc;
  /* type */
  --f-head:"Geist",ui-sans-serif,system-ui,sans-serif;        /* big words: uppercase, weight 300 line then weight 800 line */
  --f-label:"Chakra Petch",ui-sans-serif,sans-serif;          /* section headings and labels: 600 or 700, uppercase, tracking .16em on labels */
  --f-pixel:"Press Start 2P",ui-monospace,monospace;          /* the board, HUD numbers, small tags. Use sparingly */
}

/* Added for the page. Values come from the studies and the current homepage. */
:root{
  --f-body:var(--f-head);
  --soft:#c9c4bc;                       /* secondary text on ink, from the studies */
  --quiet:#a8a299;                      /* card lines, from the studies */
  --annot:#f5c542;                      /* Writing section annotation yellow, unchanged */
  --label-ink:#b5afa6;                  /* label grey on ink inside graphics, from the studies */
  --lock:#101010; --lock-ink:#2a2a2a;   /* a locked slot on the select screen */
  --fig-paper:#e9dcc4;                  /* print paper behind a figure panel */

  --red-glow:color-mix(in srgb,var(--red) 25%,transparent);
  --red-glow-soft:color-mix(in srgb,var(--red) 10%,transparent);
  --red-glow-faint:color-mix(in srgb,var(--red) 12%,transparent);
  --red-text-glow:0 0 4px color-mix(in srgb,var(--red) 30%,transparent);

  /* type: the big words */
  --hl-track:-.012em;
  --hl-lead:1.02;
  /* type: labels */
  --label-size:11.5px;
  --label-size-sm:10.5px;
  --label-track:.16em;
  /* Geist sizes for body and secondary text: five steps, nothing in between */
  --t-13:13px; --t-15:15px; --t-17:17px; --t-19:19px; --t-22:22px;
  /* Press Start 2P is drawn on an 8 px grid. These are the only sizes it uses. */
  --px-8:8px; --px-16:16px; --px-24:24px; --px-32:32px;

  /* layout */
  --gutter:clamp(20px,4.4vw,64px);      /* 48 px in the 1088 px studies */
  --page-max:1600px;
  --nav-h:64px;

  /* textures (the sprite texture is set by path in each stylesheet, url() in a custom property resolves unevenly) */
  --scan:repeating-linear-gradient(0deg,transparent 0 2px,rgba(0,0,0,.18) 2px 4px);
  --scan-soft:repeating-linear-gradient(0deg,transparent 0 2px,rgba(0,0,0,.16) 2px 4px);
}

/* Rebuild 01: the new variables of the kit's page (kit/rebuild/proto/css/home.css), moved here.
   PB.Show.setTeam (js/show.js) rewrites the reds for a visitor's colour, so every red on the page goes through these. */
:root{
  --red-rgb:224,52,24;                  /* --red as r,g,b, for rgba() */
  --red-text:#e03418;                   /* red for small text, lifted when a visitor's colour is too dark to read */
  --on-red:#0a0a0a;                     /* text on a red fill */
  --on-red-hot:#0a0a0a;                 /* text on the hot red (hovers) */
  --faint:#55524d;                      /* the kit's --dim (placeholders, a retired format, an achievement not won yet).
                                           --dim above keeps the build's value: the concept detail and the banzuke format use it */
  --bar-h:56px;                         /* the bar: the running order. 52 px up to 700 px wide (css/home.css) */
  --hud-h:66px;                         /* the scoreboard under the hero */
  --gap:clamp(20px,2.4vw,36px);         /* between panels */
}
