/* FabriqWise theme for the Greenwich Steps kit: accent ramp, brand mark
   heights, and the functional score palette. Modeled on the kit's
   themes/burnside.css, which also splits a bright accent from a deeper solid.
   Lives in this repo (not the kit) until the look settles.

   Contrast, measured: #C56B4A is 3.36:1 on paper, so it never sets text.
   #A2502F is 5.04:1 on paper and 5.64:1 under white, so it carries button
   fills and text links. */
[data-theme-brand="fabriqwise"] {
  --ds-accent: #C56B4A;            /* focus ring tint, active nav marker, borders */
  --ds-accent-press: #A2502F;
  --ds-accent-tint: rgba(197,107,74,.14);
  --ds-on-accent: #121317;
  --ds-accent-solid: #A2502F;      /* primary button fill, text links */
  --ds-accent-solid-press: #8A4227;
  --ds-on-accent-solid: #FFFFFF;

  /* The kit's focus ring tint (--ds-accent-tint) is ~1.16:1 on paper, failing
     WCAG 2.4.7/1.4.11. Raise it here with a solid ring until this is fixed
     upstream in the kit. */
  --ds-focus-ring: 0 0 0 2px var(--ds-bg), 0 0 0 4px var(--ds-accent-solid);

  /* fw-lockup-light.svg is mostly padding (tile is 104 of 231 units tall);
     BRAND.md 3.3 sets the site lockup at 40px so the wordmark stays legible. */
  --ds-brand-nav-h: 40px;
  --ds-brand-foot-h: 40px;

  /* The 1-to-5 fabric score, reserved for score UI (gauge, composition bars,
     score levels). Never decoration. #C9A24A is 2.14:1 on paper: never text. */
  --fw-score-5: #4F5D3F;  /* moss */
  --fw-score-4: #7E8B6A;  /* sage */
  --fw-score-3: #C9A24A;  /* ochre */
  --fw-score-2: #C56B4A;  /* terracotta */
  --fw-score-1: #9E4429;  /* rust */

  /* Fiber families for composition dots and bars (site hero, extension popup), running
     green for natural to warm for synthetic like the score scale (BRAND.md 4.2). */
  --fw-family-plant: var(--fw-score-4);
  --fw-family-animal: var(--fw-score-5);
  --fw-family-semi-synthetic: var(--fw-score-3);
  --fw-family-synthetic: var(--fw-score-2);
  --fw-family-mineral: var(--ds-text-muted);
  /* Distinct from both --ds-border (the stack's own empty track) and
     --fw-family-mineral, so an unclassified fiber stays visible on white. */
  --fw-family-unknown: color-mix(in srgb, var(--ds-text-muted) 55%, var(--ds-bg));
}
