/*
 * Config Halo: tokens
 *
 * Feel: a quiet deep-indigo night, chunky monospace headlines and a rounded sans body.
 * Real-life settings are written as small syntax-colored config cards that float on a
 * fading halo of dots. Lilac, mint, butter and coral come from code highlighting and
 * are the only accents. Calm, nerdy and a little cheeky.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --cf-night: #191B31;      /* page background */
  --cf-deep: #14162A;       /* footer, inset wells */
  --cf-panel: #222542;      /* cards, code windows */
  --cf-panel-2: #2A2E4E;    /* hover on panels, inputs */
  --cf-line: #343859;       /* every border and divider */
  --cf-dot: #50579A;        /* the halo dots */

  /* Text */
  --cf-text: #E7E5F6;       /* headlines and body */
  --cf-soft: #9194B8;       /* leads, secondary text */
  --cf-faint: #6A6D93;      /* labels, captions, comments in code */

  /* Accents: the syntax palette */
  --cf-lilac: #B9A8FF;      /* keywords, primary button, links */
  --cf-lilac-dark: #9F8BF5; /* hover on the primary button */
  --cf-mint: #66DEC3;       /* functions, success, "live" */
  --cf-butter: #F3D57C;     /* strings, highlights */
  --cf-coral: #F2908B;      /* numbers, warnings, the rare alert */

  /* Fonts */
  --cf-mono: "Space Mono", ui-monospace, monospace;
  --cf-sans: Rubik, system-ui, sans-serif;

  /* Type scale */
  --cf-text-hero: clamp(40px, 6vw, 72px);
  --cf-text-h2: clamp(30px, 3.8vw, 46px);
  --cf-text-h3: 21px;
  --cf-text-lead: 20px;
  --cf-text-body: 16px;
  --cf-text-small: 14px;
  --cf-text-micro: 12px;
  --cf-text-code: 14px;
  --cf-tracking-hero: -0.035em;

  /* Shape */
  --cf-radius-xs: 3px;
  --cf-radius-sm: 6px;
  --cf-radius: 8px;
  --cf-radius-lg: 12px;
  --cf-border: 1px solid var(--cf-line);
  --cf-shadow: 0 24px 60px -24px rgba(5, 6, 20, 0.75);
  --cf-shadow-sm: 0 8px 24px -12px rgba(5, 6, 20, 0.6);
  --cf-ring: 0 0 0 3px rgba(185, 168, 255, 0.28);

  /* Space */
  --cf-container: 1120px;
  --cf-narrow: 700px;
  --cf-section: clamp(72px, 10vw, 128px);
  --cf-gap: 24px;
  --cf-halo-step: 18px;
  --cf-ease: cubic-bezier(.2, .7, .2, 1);
}
