/* Studio's brand roles: the tokens.css contract filled with the terracotta ramp, so the
   shared MD3 components (md-btn, chips, focus rings, selected states) follow the app.

   Two consumers, ONE copy. style.css @imports this file (so the roles stay at the top of the
   cascade, where they were), and the Studio pages that never load style.css (bucket, code,
   guide, install) link it directly. Linking style.css itself on those pages is not an option:
   measured 2026-10-07 with a computed-style diff, it also recolours their body text (cool grey
   to warm brown) and adds pointer cursors. This file changes ONLY the brand roles.

   SELECTOR, NOT STYLE. tokens.css declares the light scheme on
   html:not(.dark):not(.dark-mode), specificity (0,2,1). A plain :root here is (0,1,0) and
   LOSES to it whatever the load order. Measured 2026-10-07 in headless Chrome: Studio's
   light --brand-ink computed to the shared indigo #5657AC instead of the #B54522 written
   here, so every text-[var(--brand-ink)] site rendered indigo in the light scheme and the
   2026-09-26 contrast fix never landed. The light block therefore repeats tokens.css's
   selector and depends on this sheet loading AFTER tokens.css AND shared.css (shared.css's
   light block also sets a literal --md-primary at that specificity).

   Measured against the shared MD surfaces and Studio's own warm surfaces:
     light  --brand #C6502F      white on it 4.58:1, 4.35:1 against the page
            --brand-ink #A24227  4.63:1 on the darkest shared container, higher on Studio's own
     dark   --brand #FF7A4D      #3A1206 on it 6.42:1, 7.21:1 against #141218
            --brand-ink #FF7A4D  4.76:1 worst case; the shipped dark value, unchanged */
html:not(.dark):not(.dark-mode) {
    --brand: #C6502F;
    --brand-on: #FFFFFF;
    --brand-hover: #B3452A;
    --brand-press: #9C3B1C;
    --brand-ink: #A24227;
    --brand-ink-hover: #8A3620;
    --brand-container: #FFE5DC;
    --brand-on-container: #5C1F0C;
    --brand-scrim: color-mix(in srgb, #C6502F 32%, transparent);
    --md-primary: var(--brand);
    --md-on-primary: var(--brand-on);
    --md-primary-container: var(--brand-container);
    --md-on-primary-container: var(--brand-on-container);
}
html.dark {
    --brand: #FF7A4D;
    --brand-on: #3A1206;
    --brand-hover: #FF8F68;
    --brand-press: #FFA383;
    --brand-ink: #FF7A4D;
    --brand-ink-hover: #FFC4A8;
    --brand-container: #5A2412;
    --brand-on-container: #FFDBCD;
    --brand-scrim: color-mix(in srgb, #FF7A4D 32%, transparent);
    --md-primary: var(--brand);
    --md-on-primary: var(--brand-on);
    --md-primary-container: var(--brand-container);
    --md-on-primary-container: var(--brand-on-container);
    --md-inverse-primary: var(--brand);
}
