/* ==========================================================================
   DESIGN VARIABLES
   Taken from the Figma "rainbow" frame. Everything shared across the site
   lives here. A look can override any of these in its own stylesheet.

   Sizes hit the Figma value at 1440px and wider, and shrink on smaller screens.
   ========================================================================== */
:root {
  /* Colour */
  --color-text: #000000;       /* Figma: black */
  --color-pink: #c400f5;       /* Figma: pnk */
  --color-violet: #5b48ff;
  --color-sky: #007ff5;
  --color-green: #03a900;
  --color-orange: #e35d00;    /* the fifth case study (Fortified) */
  --color-neon: #05f500;       /* the asterisks */
  --color-link: #004fc6;
  --color-page: #ffffff;

  /* Fonts */
  --font-display: "Cal Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Type sizes */
  /* Section titles stay huge everywhere. They are 92px wherever the longest words fit:
     "decide" in the narrow left column, and "connect" across a phone. */
  --text-display: min(92px, 9.6vw);
  --text-xxl: clamp(38px, 4.444vw, 64px);
  --text-xl: clamp(30px, 3.333vw, 48px);
  --text-lg: clamp(26px, 2.5vw, 36px);
  --text-md: clamp(21px, 1.944vw, 28px);
  --text-sm: clamp(22px, 1.806vw, 26px);
  --text-step: clamp(26px, 2.222vw, 32px);
  --text-body: clamp(17px, 1.389vw, 20px);
  --text-nav: 16px;
  --text-quote: 16px;
  --text-caption: 14px;
  --text-fine: 13px;
  --text-brand: clamp(20px, 1.667vw, 24px);

  /* Line heights */
  --leading-tight: 0.9;
  --leading-snug: 1.1;
  --leading-text: 1.25;
  --leading-quote: 1.5;
  --leading-list: 2;

  /* Spacing */
  --space-page: clamp(20px, 6.667vw, 96px);    /* page margin */
  --space-section: clamp(32px, 4.444vw, 64px);   /* above and below each section's content */
  --space-nav-x: clamp(20px, 2.5vw, 36px);
  --space-xs: 8px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --page-max: 1440px;
  --nav-height: 81px;      /* kept up to date by js/sections.js */
  --page-height: calc(100svh - var(--nav-height));
  --footer-height: 57px;
  --nav-blur: 24px;
  --radius-pill: 20px;
}

/* Phones: titles are 60px, which leaves room for the longest words on any phone */
@media (max-width: 820px) {
  :root { --text-display: 60px; }
}
