/* ==========================================================================
   Ubuntu Chemicals — design tokens
   Single source of truth for colour, type, space, motion and elevation.
   Nothing below this file should hard-code a raw value.
   ========================================================================== */

:root {
  /* --- Brand -------------------------------------------------------------
     Sampled from the master logo artwork and the 2026 campaign creative.
     navy  #102060   green #40B050   violet #3B1573 (campaign accent)
  */
  --u-navy-900: #060C24;
  --u-navy-800: #0B1436;
  --u-navy-700: #0F1E52;
  --u-navy-600: #17296B;
  --u-navy-500: #21378A;

  --u-green-700: #1F7A3A;
  --u-green-600: #268A42;
  --u-green-500: #2E9E4B;
  --u-green-400: #45B662;

  --u-violet-600: #3B1573;
  --u-violet-500: #5B2A8C;

  /* --- Semantic surfaces ------------------------------------------------ */
  --paper:      #F4F4F0;   /* page canvas — warm, never pure white         */
  --surface:    #FFFFFF;
  --surface-2:  #ECECE6;
  --surface-3:  #E2E2DA;
  --ink:        #0B1330;
  --ink-2:      #454E6B;
  --ink-3:      #7A8199;
  --on-dark:    #F4F4F0;
  --on-dark-2:  rgba(244, 244, 240, 0.70);
  --on-dark-3:  rgba(244, 244, 240, 0.46);

  --line:        rgba(11, 19, 48, 0.13);
  --line-strong: rgba(11, 19, 48, 0.26);
  --line-dark:   rgba(244, 244, 240, 0.16);
  --line-dark-strong: rgba(244, 244, 240, 0.32);

  /* --- Division colour coding -------------------------------------------
     Each of the three ranges owns a hue. Used for tags, rules and the
     catalogue filter state. Never used as a background for body copy.
  */
  --div-chemicals:  var(--u-green-500);
  --div-janitorial: #1D3FA0;
  --div-washroom:   var(--u-violet-500);

  --accent: var(--u-green-500);
  --accent-ink: #FFFFFF;

  --focus: #1D3FA0;

  /* --- Type ------------------------------------------------------------- */
  --font-display: 'Archivo', 'Arial Narrow', Helvetica, Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Archivo is variable on the width axis. Large headings run expanded, which
     is what gives them their weight on the page; everything else — buttons,
     card titles, the nav — stays at normal width so it reads as text. */
  --wdth-display: 118;

  --fs-display-1: clamp(2.3rem, 4.6vw, 3.7rem);
  --fs-display-2: clamp(2rem, 4vw, 3.15rem);
  --fs-h2:        clamp(1.7rem, 3vw, 2.6rem);
  --fs-h3:        clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-h4:        1.0625rem;
  --fs-lead:      clamp(1.0625rem, 1.35vw, 1.25rem);
  --fs-body:      1.0625rem;
  --fs-sm:        0.9375rem;
  --fs-xs:        0.8125rem;
  --fs-label:     0.6875rem;

  --lh-tight: 0.96;
  --lh-snug: 1.12;
  --lh-body: 1.62;

  --tr-display: -0.028em;
  --tr-label: 0.15em;

  /* --- Space ------------------------------------------------------------ */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --wrap: 1320px;
  --wrap-narrow: 880px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section: clamp(64px, 8.5vw, 136px);

  /* --- Form ------------------------------------------------------------- */
  --radius-0: 0px;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 10px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(11, 19, 48, 0.06);
  --shadow-2: 0 10px 30px -12px rgba(11, 19, 48, 0.22);
  --shadow-3: 0 24px 60px -24px rgba(11, 19, 48, 0.34);

  /* --- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 520ms;

  --header-h: 72px;
  --mbar-h: 0px;          /* mobile action bar; only has height under 760px */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
    --mbar-h: 64px;
  }
}
