/* ============================================================
   WEARABLE ART — FOUNDATION TOKENS (M2)
   ------------------------------------------------------------
   The six core brand colors are LOCKED. Do not sample them from
   the logo renders — the 3D shading in those files reads several
   points off, and eyedropping produces drift.
   ============================================================ */

:root {
  /* Sorbet palette, from the category cards (1.3.0) */
  --wa-blush: #F2E4D9;
  --wa-aqua: #DBEFF0;
  --wa-butter: #F5EBC8;
  --wa-sunflower: #F2C14E;
  --wa-rose-deep: #A33A63;
  --wa-teal-deep: #04696D;

  /* ---------- CORE PALETTE · LOCKED ---------- */
  --bs-orange:            #EA7BA2;  /* Sorbet Rose (1.3.0, was Ignition Orange #FF4D1F) — CTAs, ink text on it */
  --bs-cyan:              #00C2CB;  /* Vapor Cyan — secondary accent */
  --bs-charcoal:          #3A2230;  /* Plum Ink (1.3.0, was Jet Charcoal) — text only, no dark sections */
  --bs-steel:             #6E5A63;  /* Steel Gray — secondary text */
  --bs-mist:              #E3CFC2;  /* Mist Gray — dividers, light secondary */
  --bs-cloud:             #FFF8F2;  /* Cream (1.3.0) — primary background */
  --bs-white:             #FFFFFF;

  /* ---------- ORANGE RAMP · UI states only ---------- */
  --bs-orange-50:         #FDF0F4;
  --bs-orange-100:        #FADBE6;
  --bs-orange-200:        #F5B8CD;
  --bs-orange-300:        #F09AB8;
  --bs-orange-400:        #EE8FB0;
  --bs-orange-500:        #EA7BA2;  /* = --bs-orange */
  --bs-orange-600:        #EE8FB0;  /* hover (lighter rose keeps ink contrast) */
  --bs-orange-700:        #E4608F;  /* active / pressed */
  --bs-orange-800:        #A33A63;
  --bs-orange-900:        #6E2742;

  /* ---------- CYAN RAMP · UI states only ---------- */
  --bs-cyan-50:           #EBFAFB;
  --bs-cyan-100:          #D1F4F6;
  --bs-cyan-200:          #A3E9EC;
  --bs-cyan-300:          #70DDE2;
  --bs-cyan-400:          #38CFD6;
  --bs-cyan-500:          #00C2CB;  /* = --bs-cyan */
  --bs-cyan-600:          #02A5AC;
  --bs-cyan-700:          #04888E;
  --bs-cyan-800:          #06676C;
  --bs-cyan-900:          #084649;

  /* ---------- NEUTRAL RAMP ---------- */
  --bs-neutral-bg:        #FFF8F2;  /* = --bs-cloud */
  --bs-neutral-100:       #F8EFEA;
  --bs-neutral-200:       #EFE2DA;
  --bs-neutral-300:       #E3CFC2;  /* = --bs-mist */
  --bs-neutral-400:       #B9A4AC;
  --bs-neutral-500:       #6E5A63;  /* = --bs-steel */
  --bs-neutral-600:       #5E4A54;
  --bs-neutral-700:       #4D3943;
  --bs-neutral-800:       #3F2C37;
  --bs-neutral-ink:       #3A2230;  /* = --bs-charcoal */

  /* ---------- DERIVED TEXT TOKENS ----------
     Neither accent is legible as small text on light surfaces.
     These darkened variants exist ONLY for that job — they are
     not substitutes for the brand colors in fills or graphics. */
  --bs-orange-text:       #A33A63;  /* 4.57:1 on Cloud White */
  --bs-cyan-text:         #057D82;  /* 4.53:1 on Cloud White */
  --bs-steel-on-dark:     #6E5A63;  /* 4.56:1 on Jet Charcoal */

  /* ---------- SEMANTIC ASSIGNMENTS ---------- */
  --bs-bg:                var(--bs-cloud);
  --bs-bg-elevated:       var(--bs-white);
  --bs-bg-inverse:        var(--bs-charcoal);
  --bs-text-primary:      var(--bs-charcoal);
  --bs-text-secondary:    var(--bs-steel);
  --bs-text-inverse:      var(--bs-cloud);
  --bs-text-link:         var(--bs-cyan-text);
  --bs-border:            var(--bs-mist);
  --bs-border-subtle:     var(--bs-neutral-200);

  /* CTA — charcoal on orange. White on orange is 3.32:1 and FAILS
     at button-label size. Do not override. */
  --bs-cta-bg:            var(--bs-orange);
  --bs-cta-bg-hover:      var(--bs-orange-600);
  --bs-cta-bg-active:     var(--bs-orange-700);
  --bs-cta-text:          var(--bs-charcoal);

  /* ---------- LOGO GEOMETRY · IMMUTABLE ----------
     Always declare BOTH dimensions. Never let one resolve. */
  --bs-logo-h-ratio:      3.167;    /* Full Horizontal 3167×1000 */
  --bs-logo-icon-ratio:   1;        /* Icon Only 1000×1000 */
  --bs-logo-stack-ratio:  1;        /* Vertical Stack 2000×2000 */
  --bs-logo-min-width:    101px;    /* below this, switch to Icon Only */
  --bs-logo-min-height:   32px;
  --bs-logo-print-min:    25mm;
}

/* ============================================================
   LOGO PLACEMENT — the only safe pattern.
   The earlier compression bug came from a column flex container
   inheriting align-items:stretch and pulling the mark to the
   width of its widest sibling. These three guards are redundant
   on purpose: any one of them failing still leaves two.
   ============================================================ */

.bs-logo {
  object-fit: contain;      /* never fills, never crops */
  flex: none;               /* immune to flex stretch/shrink */
  align-self: flex-start;   /* immune to align-items:stretch */
}

/* Pre-computed size pairs — pick one, set both. */
.bs-logo--nav     { width: 101px; height: 32px; }   /* minimum */
.bs-logo--header  { width: 127px; height: 40px; }
.bs-logo--footer  { width: 152px; height: 48px; }
.bs-logo--card    { width: 203px; height: 64px; }
.bs-logo--hero    { width: 304px; height: 96px; }
.bs-logo--xl      { width: 380px; height: 120px; }

.bs-icon--sm      { width: 32px;  height: 32px; }
.bs-icon--md      { width: 48px;  height: 48px; }
.bs-icon--lg      { width: 96px;  height: 96px; }

/* Clearspace: margin on all sides equal to the icon's full height. */
.bs-logo-lockup   { padding: 1em; }  /* 1em = icon height at current scale */
