/* Design tokens for the Decennial Group rebuild. Names follow the original's Squarespace
   variables where it has them (--heading-1-size-value, --maxPageWidth, --pagePadding ...). */

@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/font/latin-1a7d68.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/font/latin-3147b7.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/font/latin-453f00.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/font/latin.woff2") format("woff2"); }

:root {
  /* colour */
  --purple: rgb(49, 36, 57);          /* #312439, dark theme background and text */
  --accent: rgb(235, 190, 7);         /* hsl(48.16, 94.21%, 47.45%) */
  --white: #fff;
  --black: #000;
  --light-bold-bg: rgb(222, 222, 222);

  /* fonts */
  --heading-font-font-family: "Work Sans", sans-serif;
  --heading-font-font-weight: 300;
  --heading-font-line-height: 1.4;
  --body-font-font-family: "Work Sans", sans-serif;
  --body-font-font-weight: 400;
  --body-font-line-height: 1.6;
  --header-button-font-font-family: "Poppins", sans-serif;

  /* page geometry */
  --maxPageWidth: 1200px;
  --pagePadding: 3vw;
  --sqs-mobile-site-gutter: 6vw;
  --fe-gap: 11px;

  /* type scale values (Squarespace size values) */
  --heading-1-size-value: 4;
  --heading-2-size-value: 2.6;
  --heading-3-size-value: 2.2;
  --heading-4-size-value: 1.7;
  --large-text-size-value: 1.4;
  --normal-text-size-value: .9;
  --small-text-size-value: .8;

  /* mobile: sizes follow viewport height, (v - 1) * .012 * min(100vh, 900px) + 1rem */
  --vh-unit: calc(.012 * min(100vh, 900px));
  --fs-h1: calc(3 * var(--vh-unit) + 1rem);
  --fs-h2: calc(1.6 * var(--vh-unit) + 1rem);
  --fs-h3: calc(1.2 * var(--vh-unit) + 1rem);
  --fs-h4: calc(.7 * var(--vh-unit) + 1rem);
  --fs-large: calc(.4 * var(--vh-unit) + 1rem);
  --fs-normal: calc(-.1 * var(--vh-unit) + 1rem);
  --fs-small: calc(-.2 * var(--vh-unit) + 1rem);

  /* heading line-heights: 1.4 * (1 + (1 - v) / 25) */
  --lh-h1: 1.232;
  --lh-h2: 1.3104;
  --lh-h3: 1.3328;
  --lh-h4: 1.3608;

  --motion-ease: ease;
  --motion-duration: .6s;
}

@media (min-width: 768px) {
  :root {
    /* desktop: min((v - 1) * 1.2vw + 1rem, max((v - 1) * .012 * maxPageWidth + 1rem, v * 1rem)) */
    --fs-h1: min(calc(3 * 1.2vw + 1rem), max(calc(3 * 14.4px + 1rem), 4rem));
    --fs-h2: min(calc(1.6 * 1.2vw + 1rem), max(calc(1.6 * 14.4px + 1rem), 2.6rem));
    --fs-h3: min(calc(1.2 * 1.2vw + 1rem), max(calc(1.2 * 14.4px + 1rem), 2.2rem));
    --fs-h4: min(calc(.7 * 1.2vw + 1rem), max(calc(.7 * 14.4px + 1rem), 1.7rem));
    --fs-large: min(calc(.4 * 1.2vw + 1rem), max(calc(.4 * 14.4px + 1rem), 1.4rem));
    --fs-normal: min(calc(-.1 * 1.2vw + 1rem), max(calc(-.1 * 14.4px + 1rem), .9rem));
    --fs-small: min(calc(-.2 * 1.2vw + 1rem), max(calc(-.2 * 14.4px + 1rem), .8rem));
  }
}
