/* ============================================================
   BRAND TOKENS
   Role-named only — no token is named after its appearance.
   Components must reference these tokens, never raw hex values.
   Single source of truth — import this file once, globally.

   Source: TALU brand guide ("Brand color guide creation", Nov 2026).
   Two accessibility corrections (Nov 27, 2026):
   - --color-text-secondary was 3.4:1 on the base (fails AA for body
     text); now a deeper warm gray at ~5.3:1.
   - --color-text-accent was 4.3:1 on the base (just under AA); now a
     slightly deeper rust at ~5:1.
   ============================================================ */

:root {

  /* ----------------------------------------------------------
     COLOR — base palette (private-ish; components should not
     reference these directly, use the semantic tokens below)
     ---------------------------------------------------------- */
  --palette-teal-900:   #01514F;
  --palette-teal-700:   #027675;
  --palette-teal-500:   #14928F;

  --palette-ink-900:    #060605;
  --palette-ivory-050:  #F8F6F1;

  --palette-warm-gray-500: #8A8580;
  --palette-warm-gray-300: #C9C4BE;

  --palette-rust-700:   #B85A16;   /* accent-text safe variant */
  --palette-sunset-500: #FF9617;   /* accent, non-text surfaces only */

  --palette-gold-600:   #A9863C;   /* luxury accent, metallic */


  /* ----------------------------------------------------------
     COLOR — semantic / role tokens
     These are the only color tokens components should use.
     ---------------------------------------------------------- */

  /* Surfaces */
  --color-surface-primary:     var(--palette-ivory-050);   /* page background */
  --color-surface-brand:       var(--palette-teal-700);    /* nav, footer, brand blocks */
  --color-surface-inverse:     var(--palette-ink-900);     /* high-contrast blocks */

  /* Text */
  --color-text-primary:        var(--palette-ink-900);     /* body copy, headlines on light */
  --color-text-secondary:      color-mix(in srgb, var(--palette-warm-gray-500) 75%, var(--palette-ink-900)); /* captions, metadata — AA on light */
  --color-text-inverse:        var(--palette-ivory-050);   /* text on brand / inverse surfaces */
  --color-text-accent:         color-mix(in srgb, var(--palette-rust-700) 90%, var(--palette-ink-900)); /* links, inline emphasis — AA on light */

  /* Structural */
  --color-border:               var(--palette-warm-gray-300);
  --color-border-strong:        var(--palette-warm-gray-500);

  /* Brand action colors (base values — states derived below) */
  --color-primary:              var(--palette-teal-700);
  --color-accent:                var(--palette-sunset-500);  /* buttons/surfaces only, never text */
  --color-luxury-accent:         var(--palette-gold-600);    /* borders, dividers, hover glows */


  /* ----------------------------------------------------------
     COLOR — interactive states
     Derived from the base token via color-mix(), so changing
     a base color automatically keeps all its states in sync.
     ---------------------------------------------------------- */

  /* Primary button/surface states */
  --color-primary-hover:     color-mix(in srgb, var(--color-primary) 85%, black);
  --color-primary-active:    color-mix(in srgb, var(--color-primary) 70%, black);
  --color-primary-disabled:  color-mix(in srgb, var(--color-primary) 40%, var(--color-surface-primary));

  /* Accent button/surface states */
  --color-accent-hover:      color-mix(in srgb, var(--color-accent) 85%, black);
  --color-accent-active:     color-mix(in srgb, var(--color-accent) 70%, black);
  --color-accent-disabled:   color-mix(in srgb, var(--color-accent) 40%, var(--color-surface-primary));

  /* Luxury accent states (borders / hover glows) */
  --color-luxury-accent-hover:  color-mix(in srgb, var(--color-luxury-accent) 85%, black);
  --color-luxury-accent-active: color-mix(in srgb, var(--color-luxury-accent) 70%, black);

  /* Disabled text pairing (used alongside any *-disabled surface) */
  --color-text-disabled:     color-mix(in srgb, var(--color-text-primary) 35%, var(--color-surface-primary));


  /* ----------------------------------------------------------
     SPACING — fixed scale, reused everywhere.
     Tight at the low end (precision), generous at the
     high end (luxury breathing room).
     ---------------------------------------------------------- */
  --space-2xs:  4px;
  --space-xs:   8px;
  --space-sm:   12px;
  --space-md:   20px;
  --space-lg:   32px;
  --space-xl:   56px;
  --space-2xl:  88px;
  --space-3xl:  128px;


  /* ----------------------------------------------------------
     RADIUS — minimal, near-square, consistent across components
     ---------------------------------------------------------- */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;   /* cards / large containers only */


  /* ----------------------------------------------------------
     TYPOGRAPHY — variable fonts, 2 families total
     ---------------------------------------------------------- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --weight-display-regular: 500;
  --weight-display-bold:    700;
  --weight-body-regular:    400;
  --weight-body-medium:     500;

  /* Type scale */
  --text-caption:  13px;
  --text-body:     17px;
  --text-h3:       22px;
  --text-h2:       34px;
  --text-h1:       56px;

  /* Editorial letter-spacing on display type */
  --tracking-display: 0.01em;
  --tracking-caption:  0.03em;

  /* Generous line-height for luxury feel */
  --leading-tight:  1.15;   /* headlines */
  --leading-body:   1.65;   /* paragraphs */


  /* ----------------------------------------------------------
     MOTION — used sparingly, on state transitions only
     ---------------------------------------------------------- */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;

}
