/* IMPACT website v2 · design tokens (DIRECTION 5.1 to 5.4). One family, warm paper, ink type. */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../assets/fonts/HankenGrotesk-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../assets/fonts/HankenGrotesk-var-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* colour (5.1) */
  --paper: #f2efe8;
  --raised: #ece8df;
  --deep: #e6e1d5;
  --ink: #141414;
  --charcoal: #1d1d1b;
  --steel: #626b72;
  --graphite: #2a2c2e;
  --threat: #b3261e;
  --ink-80: rgba(20, 20, 20, 0.8);

  /* type (5.2): design width 1440, values freeze above 1728 */
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(46px, 7.2vw, 124px);
  --fs-h2: clamp(34px, 4.6vw, 80px);   /* WP13 (design review 1): 66 px at 1440, was 63 */
  --fs-product: clamp(44px, 6.4vw, 110px);
  --fs-lede: clamp(17px, 1.55vw, 26px); /* integration r3 (design review r3-0): 22.3 px at 1440 (WP13 20.9, DIRECTION 19.4) */
  --fs-h2-site: clamp(40px, 5.6vw, 96px); /* integration r3: the four site headlines, 81 px at 1440 */
  --fs-label: 15px;
  --fs-small: 13px;
  --fs-button: 15px;

  /* grid and spacing (5.3) */
  /* integration r2 (design review r2-0): 72 px cap on wide screens (was 56); iPhone round: never inside the notch or
     Dynamic Island of a phone held sideways (viewport-fit=cover; env() is 0 everywhere else) */
  --margin: max(clamp(20px, 3.4vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gutter: clamp(16px, 1.7vw, 28px);
  --content-max: 1600px;
  --col: calc((min(100vw, var(--content-max) + 2 * var(--margin)) - 2 * var(--margin) - 11 * var(--gutter)) / 12);
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-72: 72px;
  --s-112: 112px;
  --s-160: 160px;
  --nav-h: 72px;

  /* motion (5.4) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-sine: cubic-bezier(.39, .575, .565, 1);
  /* integration r2 (design review r2-0): headline 1000 ms expo-out with a 100 ms line stagger, the line 300 ms later over
     800 ms, so headline and line land in two beats (Hextronics: 1.28 s expo-out, 0.14 s stagger) */
  --t-reveal: 1000ms;
  --t-line: 800ms;
  --stagger: 100ms;
  --d-line: 300ms;
  --d-pill: 420ms;
  --rise-line: 16px;
  --t-exit: 260ms; /* integration r3: 260 ms with a 6 px upward drift (was a 200 ms fade) */
  --t-status: 250ms;
  --t-indicator: 400ms;
  --t-dialog: 300ms;
  --t-veil: 800ms;
}

@media (max-width: 699px) {
  :root { --nav-h: 56px; }
}
@media (min-width: 1728px) {
  :root {
    --fs-display: 124px;
    --fs-h2: 80px;
    --fs-product: 110px;
    --fs-lede: 26px;
    --fs-h2-site: 96px;
  }
}
