/* Design tokens: the brand's colours, fonts and spacing.
   Change a value here and it changes everywhere. */

@font-face {
  font-family: "SD Glitch";
  src: url("../fonts/SDGlitch.woff2") format("woff2"),
       url("../fonts/SDGlitch.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Colour */
  --color-brand: #34025f;        /* panther purple, sampled from the logo */
  --color-brand-tint: #f4eefa;
  --color-bg: #ffffff;
  --color-text: #1c1524;
  --color-text-muted: #5d5368;
  --color-border: #e4dcec;

  /* Type */
  --font-display: "SD Glitch", "Arial Black", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale: grows smoothly from phone to desktop */
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --text-xl: clamp(1.75rem, 1.3rem + 2.25vw, 3rem);
  --text-2xl: clamp(2.5rem, 1.25rem + 6vw, 5.25rem);
  --text-3xl: clamp(4.5rem, 1.5rem + 15vw, 10.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-xl: clamp(3rem, 2rem + 5vw, 7rem);

  /* Layout */
  --width-content: 72rem;
  --width-narrow: 42rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-height: 4rem;
  --radius: 0.5rem;
}
