/* The brand accent: black and bronze, matching the business's website. This file is
 * the single source of truth for every shipped stylesheet.
 *
 * The values come from the website's palette: ink #080808 for solid buttons with white
 * text, bronze #9a7350 for ornament, #c9a57e for bronze on black. The website's text
 * bronze is #8a6442; the console uses a deeper cut of it, #7a5738, because it puts
 * small bronze text on a tinted selection ground, which the website never does, and
 * #8a6442 fails 4.5:1 on any wash dark enough to see against the warm page grounds.
 *
 * How the two colours divide the work:
 *   black  = --brand-accent: filled actions (buttons, header bands, avatars, toasts)
 *            and the focus outline;
 *   bronze = --brand-accent-deep and the rungs around it: accent as text, selection,
 *            links, highlights, washes, lines and the data ramp.
 * In the dark theme the action colour inverts to ivory with black text, as the
 * website's white buttons do on its black panels.
 *
 * The selection wash is a rose-leaning stone rather than a cream, on purpose: the
 * semantic warning wash is a yellow cream, and the two sit side by side in status
 * chips. They must never be mistaken for one another.
 *
 * Every ratio below is enforced by scripts/check-contrast.js, which resolves these
 * var() references back to these literals. Change the brand HERE and nowhere else:
 * no other stylesheet may carry an accent hex.
 *
 * The dark rungs are plain tokens, not a prefers-color-scheme block, on purpose.
 * Only public/styles.css implements a dark theme; the customer-facing sheets do not,
 * and a media query here would hand them a dark accent on a light ground.
 */
:root {
  /* Light theme ------------------------------------------------------------ */
  --brand-accent: #080808;            /* website ink; fills carrying white text */
  --brand-accent-hover: #2a2a2a;      /* black fill, hovered */
  --brand-accent-deep: #7a5738;       /* bronze as TEXT on light grounds and washes; selection fills carrying white text */
  --brand-accent-deeper: #6a4a2f;     /* the bronze rung's own text/hover partner */
  --brand-accent-ink: #ffffff;        /* text ON --brand-accent / --brand-accent-deep */
  --brand-accent-on-ink: #c9a57e;     /* website bronze on black: secondary text on a --brand-accent band */
  --brand-accent-wash: #e9dfda;       /* selection and highlight ground */
  --brand-accent-wash-deep: #e8ddd6;  /* the customer sheets' wash */
  --brand-accent-line: #d9c7b8;       /* decorative borders inside a wash */
  --brand-accent-muted: #9a7350;      /* website ornament bronze: decorative markers, never text */
  --brand-focus-ring: 0 0 0 3px rgba(154, 115, 80, .35);

  /* Light sequential ramp, pale to deep (funnels, meters, bars). */
  --brand-ramp-1: #eee0d2;
  --brand-ramp-2: #dcc4aa;
  --brand-ramp-3: #c9a57e;
  --brand-ramp-4: #9a7350;
  --brand-ramp-5: #6a4a2f;

  /* Dark theme ------------------------------------------------------------- */
  --brand-accent-dark: #ece9e2;       /* ivory fill: the black button, inverted */
  --brand-accent-hover-dark: #ffffff; /* ivory fill, hovered */
  --brand-accent-ink-dark: #080808;   /* text ON the dark accent */
  --brand-accent-text-dark: #c9a57e;  /* website bronze on black: accent as TEXT on dark grounds */
  --brand-accent-wash-dark: #3a2f2b;  /* selection ground */
  --brand-accent-muted-dark: #b08a63; /* decorative markers */
  --brand-focus-ring-dark: 0 0 0 3px rgba(201, 165, 126, .38);

  /* Dark sequential ramp, deep to pale. */
  --brand-ramp-1-dark: #33291f;
  --brand-ramp-2-dark: #523f2e;
  --brand-ramp-3-dark: #7a5c40;
  --brand-ramp-4-dark: #a47f59;
  --brand-ramp-5-dark: #d3b693;
}
