/* Spend And Scale tokens. Every colour, font, size and space on the site reads from here. */
:root {

  /* Colour */
  --color-ink: #0a0a0a; /* Ink: text on the light sections */
  --color-canvas: #0a0a0a; /* Canvas: default dark sections */
  --color-pitch: #050505; /* Pitch: footer, deepest surface */
  --color-raised: #141414; /* Raised dark surface: frames */
  --color-line-dark: #262626; /* Line on dark */
  --color-muted-dark: #a1a1aa; /* Muted text on dark */
  --color-fg: #fafafa; /* Foreground on dark, and the light section background */
  --color-muted-light: #525252; /* Muted text on light */
  --color-line-light: #e5e5e5; /* Line on light */

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: Inter, sans-serif;
  --size-hero: clamp(2.75rem,8.5vw,7.5rem);
  --size-section: clamp(2.25rem,5.5vw,5rem);
  --size-step-number: clamp(3rem,6vw,5.5rem);
  --size-item: clamp(1.375rem,2vw,1.75rem);
  --size-question: clamp(1.25rem,1.8vw,1.5rem);
  --size-lead: clamp(1.125rem,1rem + 0.4vw,1.25rem);
  --size-body: clamp(1rem,0.95rem + 0.25vw,1.125rem);
  --size-ui: 16px;
  --size-label: 13px;
  --size-root: 18px;
  --size-tab-phone: 1.125rem;
  --leading-body: 1.6;
  --leading-none: 1;
  --leading-hero: 0.95;
  --leading-lead: 1.55;
  --leading-proof: 1.5;
  --leading-label: 1.2;
  --leading-section: 0.98;
  --leading-item: 1.15;
  --leading-number: 0.9;
  --leading-ui: 1.4;
  --leading-question: 1.25;
  --tracking-hero: -0.04em;
  --tracking-label: 0.14em;
  --tracking-section: -0.03em;
  --tracking-item: -0.02em;
  --tracking-question: -0.01em;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --size-step-heading: clamp(1.75rem,3vw,2.5rem);
  --leading-step: 1.08;
  --tracking-step: -0.025em;
  --size-statement: clamp(2rem,4.5vw,4rem);
  --leading-statement: 1.04;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-button-gap: 10px;
  --space-button-x-compact: 18px;
  --space-closing: clamp(88px,12vw,168px);
  --space-fluid-0-12: clamp(0px, 1vw, 12px);
  --space-fluid-12-20: clamp(12px, 1.5vw, 20px);
  --space-fluid-24-36: clamp(24px, 3vw, 36px);
  --space-fluid-24-40: clamp(24px, 3vw, 40px);
  --space-fluid-32-48: clamp(32px, 4vw, 48px);
  --space-fluid-32-56: clamp(32px, 4vw, 56px);
  --space-fluid-32-96: clamp(32px, 6vw, 96px);
  --space-fluid-40-56: clamp(40px, 5vw, 56px);
  --space-fluid-48-112: clamp(48px, 7vw, 112px);
  --space-fluid-48-80: clamp(48px, 6vw, 80px);
  --space-fluid-48-88: clamp(48px, 6vw, 88px);
  --space-footer-top: clamp(72px,9vw,112px);
  --space-gutter: clamp(20px,5vw,48px);
  --space-hero-bottom: clamp(104px,8vw,120px);
  --space-hero-top: 136px;
  --space-page-bottom: clamp(64px,7vw,104px);
  --space-page-top: clamp(136px,16vw,208px);
  --space-section: clamp(72px,10vw,120px);

  /* Size */
  --measure-lead: 34rem;
  --measure-body: 36rem;
  --measure-step: 30rem;
  --measure-answer: 40rem;
  --measure-heading: 18ch;
  --measure-statement: 20ch;
  --content-max: 1200px;
  --logo-footer-max: 380px;
  --frame-width: clamp(260px,30vw,340px);
  --frame-width-phone: 220px;
  --frame-col: 320px;
  --frame-min: 260px;
  --frame-max: 340px;
  --frame-group-max: 1000px;
  --hero-height: 88svh;
  --hero-height-phone: 0px;
  --header-height: 72px;
  --logo-height: 36px;
  --size-button: 52px;
  --size-tap: 44px;
  --measure-success: 16ch;

  /* Shape */
  --radius-button: 8px;
  --radius-frame: 12px;
  --frame-ratio: 9/16;
  --focus-width: 2px;
  --focus-offset: 3px;
  --icon-stroke: 1.5;
  --focus-offset-field: 2px;

  /* Texture */
  --grain-opacity: 0.035;

  /* State */
  --opacity-disabled: 0.5;
  --opacity-busy: 0.6;

  /* Motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-ui: 200ms;
  --dur-header: 300ms;
  --dur-reveal: 500ms;
  --dur-accordion: 360ms;
  --dur-menu: 300ms;
  --reveal-rise: 16px;
}
