/* UPC Website Revamp: design tokens.
   Source of truth: DESIGN.md. Change both in the same edit. */
:root {
  color-scheme: light;

  /* Colour: action */
  --primary: #0B63A8;
  --primary-hover: #003366;
  --on-primary: #FFFFFF;
  --primary-tint: #E8F1FA;

  /* Colour: brand */
  --navy: #182752;
  --navy-deep: #111C3D;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C3CDDD;
  --sky: #92C2E6;

  /* Colour: neutrals */
  --canvas: #FCFDFE;
  --surface: #F2F5F9;
  --white: #FFFFFF;
  --ink: #001E33;
  --ink-muted: #4A5B70;
  --line: #D5DCE6;
  --line-strong: #7C8BA0;
  --disabled-bg: #C9D2DE;
  --disabled-ink: #4A5B70;

  /* Colour: focus */
  --focus: #0B63A8;
  --focus-on-dark: #92C2E6;

  /* Colour: secondary (2025 Annual Report) */
  --ai: #382874;
  --ai-hover: #2A1E5C;
  --ai-tint: #EEEBF7;
  --teal: #17706A;
  --teal-tint: #E6F4F1;
  --mint: #5FD0BB;
  --magenta: #A63F80;
  --magenta-tint: #F7EAF2;

  /* Colour: feedback */
  --error: #B3261E;
  --error-tint: #FCEEEE;
  --success: #1E7A4C;
  --success-tint: #E9F5EE;
  --warning: #8A5A00;
  --warning-tint: #FFF4DC;

  /* Type (v2: Newsreader for headings, see DESIGN-v2.md) */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-display: 64px;
  --fs-h1: 40px;
  --fs-h2: 40px;
  --fs-h3: 22px;
  --fs-service: 26px;
  --fs-figure-xl: 184px;
  --grid-line: rgba(146, 194, 230, .16);
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-ref: 14px;
  --fs-figure: 80px;
  --fs-button: 16px;

  /* Shape */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Space */
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 40px;
  --s-2xl: 64px;
  --s-section: 88px;

  /* Layout */
  --container: 1280px;
  --gutter: 40px;
  /* The logo PNG keeps its lettering at ~9% of its height: 88px is the
     smallest size where the text reads (~8px), and the largest that stays
     sharp on 2x screens (178px source). */
  --logo-h: 88px;
  --topbar-h: 104px;
  --nav-h: 56px;
  --ai-panel-w: 440px;

  /* Depth */
  --shadow-raised: 0 1px 2px rgba(24, 39, 82, .06), 0 4px 12px rgba(24, 39, 82, .06);
  --shadow-overlay: 0 12px 32px rgba(24, 39, 82, .16);

  /* Motion */
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 600ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* Layers */
  --z-header: 50;
  --z-menu: 60;
  --z-panel: 70;
  --z-cookie: 80;
  --z-skip: 100;
}

@media (max-width: 1023px) {
  :root {
    --logo-h: 80px;
    --topbar-h: 96px;
  }
}

@media (max-width: 767px) {
  :root {
    --logo-h: 68px;
    --fs-display: 38px;
    --fs-h1: 30px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-service: 22px;
    --fs-figure-xl: 112px;
    --fs-lead: 18px;
    --fs-body: 16px;
    --fs-figure: 52px;
    --s-section: 56px;
    --gutter: 20px;
    --topbar-h: 80px;
  }
}

@media (max-width: 359px) {
  :root {
    --logo-h: 52px;
    --topbar-h: 68px;
  }
}
