/*
  Compaen: shared design tokens for the teaser site.
  Keep brand values here so a single edit (e.g. swapping Nexa for a
  fallback face) propagates everywhere.
*/

@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors, from COMPAEN Brand Board.pdf */
  --c-blue: #012296;
  --c-purple: #6b0c95;
  --c-orange: #ff7a00;
  --c-cream: #f5f9e9;
  --c-ink: #202a25;
  --c-green: #60935d;
  --c-green-bright: #30c827;
  --c-white: #ffffff;

  /* The 5-stop brand gradient, exactly as defined in the logo SVGs */
  --grad-brand: linear-gradient(
    90deg,
    var(--c-blue) 0%,
    #191d96 29%,
    var(--c-purple) 55%,
    #d75c29 79%,
    var(--c-orange) 100%
  );

  /* Type */
  --font-display: "Nexa", "Outfit", system-ui, sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.5rem, 3rem + 3vw, 5.5rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 1rem;
  --max-width: 76rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion everywhere: kill transitions/animations globally,
   individual variants may still opt specific elements back in deliberately. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
