/* Design tokens — mirrored 1:1 from the Figma "V03" variables
   (file a97nCLVBbIklLHrmtcdPVm "GNOF Microsite R3", Design System › 01 Foundations).
   Change a value here and every section follows. */

/* Brand face, self-hosted from the supplied files (Assets/Fonts). */
@font-face {
  font-family: "Neusa Next Pro";
  src: url("../fonts/NeusaNextPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neusa Next Pro";
  src: url("../fonts/NeusaNextPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neusa Next Pro";
  src: url("../fonts/NeusaNextPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@layer tokens {
  :root {
    /* Colour ------------------------------------------------------------ */
    --v2-navy: #041e42;
    --v2-royal: #1d428a;
    --v2-cyan: #00a9e0;
    --v2-teal: #0092bc;
    --v2-yellow: #ffcd00;
    --v2-pale: #dde5ed;
    --v2-sky: #bbdde6;
    --v2-white: #ffffff;

    --v2-color-text: var(--v2-navy);
    --v2-color-heading: var(--v2-navy);
    --v2-color-surface: var(--v2-white);

    --chart-primary: var(--v2-cyan);
    --chart-comparison: var(--v2-navy);

    /* Type --------------------------------------------------------------- */
    --v2-family: "Neusa Next Pro", system-ui, sans-serif;
    --v2-weight-regular: 400;
    --v2-weight-medium: 500;

    /* Sizes are fluid between the mobile (393) and desktop (1440) frames. */
    --v2-h1-size: clamp(2rem, 1.25rem + 3.06vw, 4rem); /* 32 → 64 */
    --v2-h2-size: clamp(1.75rem, 1.375rem + 1.53vw, 2.75rem); /* 28 → 44 */
    --v2-h3-size: clamp(1.5rem, 1.41rem + 0.38vw, 1.75rem); /* 24 → 28 */
    --v2-h4-size: clamp(1.3125rem, 1.24rem + 0.29vw, 1.5rem); /* 21 → 24 */
    --v2-statistic-size: clamp(3rem, 2.16rem + 3.44vw, 5.25rem); /* 48 → 84 */
    --v2-body-text-large-size: 1.875rem; /* 30 in every V03 mode */
    --v2-body-text-lead-size: clamp(1.3125rem, 1.24rem + 0.29vw, 1.5rem); /* 21 → 24 */
    --v2-body-text-default-size: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem); /* 17 → 18 */
    --v2-body-text-small-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 → 15 */
    --v2-link-size: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem); /* 15 → 16 */
    --v2-button-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 → 15 */

    --lh-h1: 1.125;
    --lh-h2: 1.182;
    --lh-h3: 1.321;
    --lh-h4: 1.167;
    --lh-stat: 1.064;
    --lh-large: 1.333;
    --lh-body: 1.333;
    --lh-small: 1.4;
    --lh-link: 1.5;
    --tracking-caps: 0.025em; /* Figma letterSpacing 2.5% */

    /* Space ------------------------------------------------------------- */
    --v2-space-8: 0.5rem;
    --v2-space-12: 0.75rem;
    --v2-space-16: 1rem;
    --v2-space-20: 1.25rem;
    --v2-space-24: 1.5rem;
    --v2-space-32: 2rem;
    --v2-space-40: 2.5rem;
    --v2-space-48: 3rem;
    --v2-space-64: 4rem;
    --v2-space-96: clamp(3.5rem, 2.6rem + 3.8vw, 6rem); /* 56 → 96 */
    --v2-space-144: clamp(4.5rem, 2.9rem + 6.9vw, 9rem); /* 72 → 144 */
    --v2-section-padding: clamp(4rem, 2.5rem + 6.1vw, 9rem); /* 64 → 144 */

    /* Layout ------------------------------------------------------------ */
    --v2-frame-width: 71.25rem; /* 1140 */
    --v2-reading-width: 50rem; /* 800 */
    --v2-feature-reading-width: 40.625rem; /* 650 */
    --v2-page-gutter: clamp(1.5rem, -1.2rem + 11.4vw, 9.375rem); /* 24 → 150 */
    --nav-edge-gutter: clamp(1rem, 0.25rem + 3.06vw, 3rem); /* 16 → 48 */
    --v2-control-target: 2.75rem; /* 44 */
    --v2-button-small-min-height: 2.625rem; /* 42 (44 on mobile, below) */
    --v2-radius: 0;
    --report-figure-width: 40rem; /* 640: single report figures */
    --nav-height: 6rem;

    @media (width <= 48rem) {
      --nav-height: 8.75rem; /* 140: stacked logo + button */
    }

    /* Motion ------------------------------------------------------------ */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* Figma Smart Animate */
    --dur-lens: 700ms;
    --dur-fast: 200ms;
  }

  @media (width <= 48rem) {
    :root {
      --v2-button-small-min-height: 2.75rem;
    }
  }
}
