/* Exponential design tokens
   https://goexponential.org/brand

   Paste into any stylesheet. Dark only: there is no light theme.
   Every edge and fill is white (or black) at an alpha, so one value reads on
   black, on glass and over a photo. The rule is the only opaque line.

   Fonts (not included here):
   - Geist, Geist Mono and Geist Pixel Square are free (SIL Open Font
     License): `npm i geist`, or download from https://vercel.com/font.
     Do not use the Google Fonts build: it lacks the ss01 and ss03 stylistic
     sets (single-storey a, tail-less l) the brand depends on.
   - The Impostor (hero titles only, 79 glyphs, no accents):
     https://goexponential.org/brand-kit/fonts/TheImpostor.ttf

   @font-face { font-family: "Geist"; src: url(Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
   @font-face { font-family: "Geist Mono"; src: url(GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
   @font-face { font-family: "Geist Pixel"; src: url(GeistPixel-Square.woff2) format("woff2"); font-display: swap; }
   @font-face { font-family: "The Impostor"; src: url(TheImpostor.ttf) format("truetype"); font-display: swap; }
*/

:root {
  /* Ground and ink */
  --background: #000000;
  --foreground: #fafafa; /* headings, names, figures, emphasis: 20.1:1 on black */
  --soft: #c8c8c8; /* values beside a label, quoted words: 12.6:1 */
  --subtle: #9a9a9a; /* body copy, leads, labels, placeholders, the floor: 7.5:1 */
  --faint: #767676; /* resting names in a section index only: 4.5:1 */

  /* Action colors. Blue means "do something". */
  --brand: #006ef4; /* the fill of the main action (join, apply, send), never text */
  --brand-hover: #0063db;
  --link: #5c9dff; /* text calls to action: 7.72:1 */
  --link-hover: #8ab8ff;

  /* Opaque grounds */
  --surface: #111111; /* sheets, the hover of a ruled cell */
  --surface-inset: #181818; /* image placeholders, skeletons */
  --surface-raised: #1a1a1a; /* popovers, menus, tooltips, toasts */
  --rule: #2a2a2a; /* the grid line: rails, band rules, ruled cells */

  /* Materials */
  --glass: rgb(255 255 255 / 0.05); /* cards, panels, notes, glass buttons */
  --glass-hover: rgb(255 255 255 / 0.08); /* hover of areas: cards, rows */
  --glass-strong: rgb(255 255 255 / 0.1); /* hover and press of controls */
  --glass-dark: rgb(0 0 0 / 0.7); /* over photos and moving backdrops */
  --edge: rgb(255 255 255 / 0.05); /* the card's 1px inset line */
  --edge-strong: rgb(255 255 255 / 0.15); /* outline controls, floating layers */
  --edge-media: rgb(255 255 255 / 0.15); /* the rim above an image */
  --edge-field: rgb(255 255 255 / 0.4); /* checkboxes */
  --field-fill: rgb(255 255 255 / 0.05);
  --field-edge: rgb(255 255 255 / 0.4); /* text field at rest */
  --field-edge-hover: rgb(255 255 255 / 0.6); /* hover and focus */
  --focus: rgb(255 255 255 / 0.7); /* the one focus ring */
  --scrim: rgb(0 0 0 / 0.55); /* behind a sheet, with the blur */
  --blur: 24px; /* the one blur, only over imagery or motion */
  --danger: #f87171;
  --positive: #34c759;

  /* Shadows: floating layers and physical objects only, never cards */
  --shadow-overlay: 0 24px 64px -16px rgb(0 0 0 / 0.8);
  --shadow-object: 0 16px 40px -12px rgb(0 0 0 / 0.8);

  /* Radius */
  --radius-sm: 2px; /* checkboxes, items in a menu */
  --radius-md: 4px; /* notes, popovers, tooltips, media inside a card */
  --radius-lg: 8px; /* cards, panels, large photos */
  --radius-field: 8px; /* the text-field box */
  --radius-control: 9999px; /* buttons, chips, badges: capsules */
  --radius-sheet: 24px; /* sheets and dialogs */

  /* Motion */
  --ease-snap: cubic-bezier(0.2, 0, 0, 1); /* hover and press, 150 to 200ms */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); /* panels and menus */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* reveals and swaps */

  /* Type roles, phone step. Each role sets size, line-height, tracking and
     weight together; see the brand page for the full table. */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-pixel: "Geist Pixel", "Geist Mono", monospace;
  --font-impostor: "The Impostor", "Geist", sans-serif;

  --text-display: clamp(2rem, 9.3vw, 2.5rem);
  --text-display-sm: 1.5rem;
  --text-h1: 2.5rem;
  --text-h1--line-height: 2.75rem;
  --text-h2: 1.75rem;
  --text-h2--line-height: 2.25rem;
  --text-h3: 1.25rem;
  --text-h3--line-height: 1.75rem;
  --text-h4: 1rem;
  --text-h4--line-height: 1.375rem;
  --text-body-lg: 1.125rem;
  --text-body-lg--line-height: 1.75rem;
  --text-body: 1rem;
  --text-body--line-height: 1.625rem;
  --text-small: 0.875rem;
  --text-small--line-height: 1.375rem;
  --text-label: 0.875rem;
  --text-label--line-height: 1.25rem;
  --text-label-sm: 0.75rem;
  --text-label-sm--line-height: 1rem;
  --text-stat: 2.5rem;
}

/* Roles step themselves at 768px, and the display title again at 1024px. */
@media (min-width: 768px) {
  :root {
    --text-display-sm: 2rem;
    --text-h1: 3.5rem;
    --text-h1--line-height: 3.75rem;
    --text-h2: 2.5rem;
    --text-h2--line-height: 3rem;
    --text-h3: 1.5rem;
    --text-h3--line-height: 2rem;
    --text-h4: 1.125rem;
    --text-h4--line-height: 1.5rem;
    --text-stat: 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-display: 3rem;
  }
}

html {
  background: var(--background);
  color: var(--foreground);
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
