/* ============================================================
   SterlingCraft — Colour tokens
   Built from the BrandBoard palette:
     Primary  #883D1A  (rust / sienna)      Pantone 18-1244
     Accent   #4D331F  (bark / dark brown)  Pantone 19-1218
     Ground   #FFFFFF
   Extended with a warm earth-neutral scale (parchment → espresso)
   to support a vintage, crafted surface system. Extensions are
   harmonious tints/shades of the two brand hues.
   ============================================================ */

:root {
  /* ---- Brand core ---------------------------------------- */
  --sc-rust-400: #a6552f;   /* lifted rust — hover */
  --sc-rust-500: #883d1a;   /* PRIMARY — brand rust */
  --sc-rust-600: #6f3014;   /* pressed rust */
  --sc-rust-700: #57250f;   /* deep rust */

  --sc-bark-500: #6b5640;   /* mid bark */
  --sc-bark-600: #5a4530;   /* */
  --sc-bark-700: #4d331f;   /* ACCENT — brand bark / dark brown */
  --sc-bark-800: #3a2716;   /* espresso */
  --sc-bark-900: #261a0f;   /* near-black, warm */

  /* ---- Warm earth neutrals (parchment → stone) ----------- */
  --sc-parchment-50:  #faf6ef;  /* lightest warm ground */
  --sc-parchment-100: #f3ead9;  /* card / panel warm */
  --sc-sand-200:      #e8d9c2;  /* hairlines on parchment */
  --sc-sand-300:      #d8c2a3;  /* borders, dividers */
  --sc-clay-400:      #b89b79;  /* muted clay */
  --sc-stone-500:     #8c7559;  /* muted text on light */
  --sc-umber-600:     #6b5640;  /* secondary text */

  --sc-white: #ffffff;

  /* ---- Earthy semantic accents (status) ------------------ */
  --sc-forest:  #4e6b3f;   /* success — olive forest */
  --sc-ochre:   #b9842a;   /* warning — ochre / amber */
  --sc-brick:   #9b3522;   /* danger  — brick red */
  --sc-slate:   #41606a;   /* info    — muted slate-teal */

  /* ========================================================
     Semantic aliases — reference these in components
     ======================================================== */

  /* Surfaces */
  --surface-page:    var(--sc-parchment-50);
  --surface-card:    var(--sc-white);
  --surface-panel:   var(--sc-parchment-100);
  --surface-inverse: var(--sc-bark-700);
  --surface-sunken:  var(--sc-parchment-100);

  /* Text */
  --text-strong:    var(--sc-bark-900);
  --text-body:      var(--sc-bark-800);
  --text-muted:     var(--sc-umber-600);
  --text-faint:     var(--sc-stone-500);
  --text-on-dark:   var(--sc-parchment-50);
  --text-on-brand:  var(--sc-parchment-50);

  /* Brand / interactive */
  --brand-primary:        var(--sc-rust-500);
  --brand-primary-hover:  var(--sc-rust-400);
  --brand-primary-press:  var(--sc-rust-600);
  --brand-secondary:      var(--sc-bark-700);
  --link:                 var(--sc-rust-500);
  --link-hover:           var(--sc-rust-600);
  --focus-ring:           var(--sc-rust-400);

  /* Lines & borders */
  --border-soft:   var(--sc-sand-200);
  --border:        var(--sc-sand-300);
  --border-strong: var(--sc-clay-400);
  --border-dark:   var(--sc-bark-700);

  /* Status */
  --status-success: var(--sc-forest);
  --status-warning: var(--sc-ochre);
  --status-danger:  var(--sc-brick);
  --status-info:    var(--sc-slate);
}
