/* Promax Group design tokens.
   The single source for colour, type, spacing, shape and motion. style.css only uses
   these names, and /design-system/ shows every one of them in use. Change a value here
   and the whole site follows. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* ---- Brand: sampled from the Promax logo ---- */
  --brand-red: #f12c0f;
  --brand-orange: #fb7402;
  --brand-line: linear-gradient(90deg, var(--brand-red), var(--brand-orange));

  /* ---- Action orange: the logo orange darkened until white text passes AA on it ---- */
  --orange: #cc4409;
  --orange-dark: #a8380a;   /* hover, and orange text on paper */
  --orange-bright: #f75e08; /* orange text on black */

  /* ---- Neutrals: warm paper, near-black ---- */
  --black: #0b0b0c;
  --ink: #1d1f22;      /* body text */
  --grey: #5f646a;     /* secondary text */
  --line: #d9d7d0;     /* hairlines on paper */
  --tint: #e6e4de;     /* alternate section */
  --paper: #f1f0ec;    /* page */
  --white: #ffffff;

  /* ---- On black ---- */
  --dark-2: #151617;       /* raised surface on black */
  --line-dark: #2a2c30;    /* hairlines on black */
  --on-dark: #c9cbce;      /* body text on black */
  --on-dark-muted: #8b9096;

  /* ---- Type ---- */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text-xs: .75rem;
  --text-sm: .9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --h3: 1.45rem;
  --h2: clamp(2rem, 3.7vw, 3.3rem);
  --h1: clamp(2.7rem, 5.8vw, 5.4rem);
  --display: clamp(3.1rem, 8.4vw, 8rem);
  --statement: clamp(1.6rem, 3.1vw, 2.75rem);

  /* ---- Space: one scale, used for every gap and padding ---- */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section: clamp(4rem, 9vw, 8rem); /* vertical padding of a section */
  --gutter: 1.25rem;
  --wrap: 76rem;

  /* ---- Shape ---- */
  --radius-sm: 8px;   /* inputs */
  --radius: 14px;     /* photos, cards */
  --radius-lg: 22px;  /* large media panels */
  --pill: 999px;      /* buttons */

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fast: .18s;
  --slow: .8s;
}
