/* Design tokens. Every colour, size, radius and duration on the site comes from here. */

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* plum: the muted burgundy the site is built on, darkest first */
  --plum-950: #170a11;
  --plum-900: #1f0e17;
  --plum-850: #27121d;
  --plum-800: #301728;
  --plum-700: #3d1f31;
  --plum-600: #4d2a3e;
  --plum-500: #63394f;
  --wine-600: #5c1f36;
  --wine-500: #7a2c48;

  /* powder: cool pastels for accent surfaces and fills */
  --powder-rose: #ecd9e3;
  --powder-mauve: #cfb1c4;
  --powder-lilac: #d8d0e8;
  --powder-ice: #cdd6ea;

  /* the one bright colour — only for marks a few pixels wide */
  --pink: #ff5fa2;

  /* text */
  --ink: #f6eff2;
  --ink-soft: #ddd1d8;
  --ink-mute: #c9bac2;
  --ink-on-powder: #1f0e17;
  --ink-on-powder-mute: #4a3040;
  --ink-wine: #5e204b; /* a large figure on a powder fill: a cold burgundy, so it reads neither black nor wine-red */

  /* gradients */
  --grad-heading: linear-gradient(112deg, #fdfafb 0%, #f0e9ed 38%, #c2b6bd 100%);
  --grad-display: linear-gradient(180deg, #f6eef2 10%, #c3adb8 95%); /* the hero title, first line */
  --grad-display-soft: linear-gradient(100deg, #d7c4e4 0%, #bfc6ec 45%, #e6c3d9 100%); /* its second, italic line: lavender, cool blue, powder pink */
  --grad-orb: radial-gradient(circle closest-side, rgb(125 60 94 / 0.4) 0%, rgb(125 60 94 / 0.36) 15%, rgb(125 60 94 / 0.268) 30%, rgb(125 60 94 / 0.16) 45%, rgb(125 60 94 / 0.072) 60%, rgb(125 60 94 / 0.02) 75%, rgb(125 60 94 / 0.0) 90%); /* the glow behind the hero card: the page's own plum, only lighter, so it reads as light and not as a patch of another colour */

  --pour-1: #bfc6ec;
  --pour-2: #d7c4e4;
  --pour-3: #e6c3d9;
  --edge-1: #c2a8ee; /* the border of a lit ring: warm lavender through to powder pink */
  --edge-2: #dcb0e6;
  --edge-3: #f4a9d1;
  --grad-pour: linear-gradient(90deg, var(--pour-1) 0%, var(--pour-2) 50%, var(--pour-3) 100%); /* the row of capsules: lavender into powder pink, once across the row */
  --grad-powder: linear-gradient(135deg, var(--powder-rose) 0%, var(--powder-lilac) 55%, var(--powder-ice) 100%);
  --grad-powder-panel: radial-gradient(110% 150% at 14% 35%, #cdc9f0 0%, #dcc5e6 26%, #e9b7d4 50%, #f0dbe6 80%, #f3e2ea 100%); /* the light panel: lavender gathered on the left, opening into powder pink */
  --grad-plum: linear-gradient(100deg, var(--plum-800) 0%, #4c2f4d 100%); /* the dark button on a powder panel: plum warming into a cold bordeaux */
  --grad-powder-soft: linear-gradient(135deg, #cfb1c4 0%, #c3b8d6 55%, #b4bfd8 100%);

  /* matte glass */
  --glass-fill: linear-gradient(200deg, rgb(255 240 248 / 0.08), rgb(255 240 248 / 0.02)); /* a card's fill: lightest at the top right, fading out down the card; the page grain hides the steps of so faint a gradient */
  --glass-fill-quiet: rgb(255 236 246 / 0.05);
  --glass-well: rgb(23 10 17 / 0.42); /* a darker inset, for small text that sits over a glow */
  --glass-edge: rgb(255 236 246 / 0.11); /* one even, quiet hairline all the way round */
  --glass-blur: blur(30px) saturate(1.15);
  --line: rgb(255 236 246 / 0.12);
  --leader: rgb(255 236 246 / 0.32); /* dotted leaders and the unlit part of a scale */

  /* the light falling from above on the first screen only */
  --grad-opening: radial-gradient(120% 200vh at 50% -25vh, #3a1a2a 0%, #24101b 45%, #1a0b13 100%);

  /* film grain over the whole page: how opaque the noise texture is. 0 is off; about 0.04 hides the steps in dark gradients */
  --grain: 0.03;

  /* the pink dots that mark a drawing; the key dots of a list (.rows__key) are a pixel larger */
  --dot: 7px;

  /* line weights: the drawings are made of these two */
  --hair: 1px;
  --stroke: 1.5px;

  /* type */
  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(3.25rem, 1rem + 9.4vw, 10.5rem);
  --t-figure: clamp(4rem, 2rem + 5.6vw, 7.5rem);
  --t-h2: clamp(2rem, 1.3rem + 2.9vw, 4rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
  --t-number-lg: clamp(3.5rem, 3.2rem + 0.9vw, 4rem);
  --t-number: clamp(2.75rem, 2.4rem + 1.3vw, 3.25rem);
  --t-number-sm: clamp(2.5rem, 2.38rem + 0.25vw, 2.625rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* space: the only distances allowed */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --gutter: clamp(16px, 3.2vw, 56px);

  /* corners: drawn as Figma smooth corners (0.6) by squircle.js, plain radius until it runs */
  --r-xs: 10px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-pill: 999px;

  /* motion */
  --fast: 140ms;
  --slow: 420ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pour: 760ms;         /* one capsule filling */
  --pour-spread: 440ms;  /* how long after the first capsule the last one starts */
  --ease-pour: cubic-bezier(0.33, 0.1, 0.2, 1); /* a liquid: eases off the mark and settles softly */

  /* layers */
  --z-backdrop: 0;
  --z-page: 1;
  --z-grain: 2;
}
