/* Milk Tea Tracker's brand roles (tea-amber): the tokens.css contract.

   Two consumers, ONE copy. style.css @imports this file, and mt/install/index.html, which never
   loads style.css, links it directly. Linking style.css there is not an option: measured
   2026-10-07 with a computed-style diff it also changes the page's body text colour. This file
   changes ONLY the brand roles.

   The light block repeats tokens.css's selector: its light scheme is
   html:not(.dark):not(.dark-mode), specificity (0,2,1), so a plain :root override (0,1,0) loses
   whatever the load order, and it must load AFTER tokens.css and shared.css. Measured
   2026-10-07 in headless Chrome: this app's light --md-primary computed to the shared indigo.
   The old amber #C68642 is 3.05:1 under white text, so the light FILL is the darker step
   #9A5F22 (white on it 5.21:1) and the ink #8A5420 clears 4.5:1 on every shared surface
   (4.59:1 worst case). Dark #E8B074 keeps its value: #3D2410 on it 7.47:1. */
html:not(.dark):not(.dark-mode) {
    --brand: #9A5F22;
    --brand-on: #FFFFFF;
    --brand-hover: #87521C;
    --brand-press: #734517;
    --brand-ink: #8A5420;
    --brand-ink-hover: #734517;
    --brand-container: #F5E6D3;
    --brand-on-container: #3D2410;
    --brand-scrim: color-mix(in srgb, #9A5F22 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: #E8B074;
    --brand-on: #3D2410;
    --brand-hover: #EEBE8A;
    --brand-press: #F2CBA1;
    --brand-ink: #E8B074;
    --brand-ink-hover: #F5D3AE;
    --brand-container: #5A3D1E;
    --brand-on-container: #F5E6D3;
    --brand-scrim: color-mix(in srgb, #E8B074 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);
}
