/* base.css: what the splash page and the docs share: the colours each has
   a job for, light mode, the spaces, and the glow's motion. site.css and
   docs.css add their own type and layout. Colours come from stellar.css's
   named ramps, generated from the seeds in stellar.config.json: a seed is
   step 0, higher steps are lighter, and each step has an -on colour for
   text on it and a -dim one for quieter text, as http-nu's site does. */

/* Inconsolata as bunny.net serves it leaves out the box characters tables
   are drawn with (─ ┬ │), and the browser took them from another font, of
   another width. These are Inconsolata's own (fonts/, under fonts/OFL.txt). */
@font-face { font-family: Inconsolata; src: url(/fonts/inconsolata-box.woff2) format("woff2"); font-weight: 400; unicode-range: U+2500-257F; }
@font-face { font-family: Inconsolata; src: url(/fonts/inconsolata-box.woff2) format("woff2"); font-weight: 700; unicode-range: U+2500-257F; }

/* Type, for the splash page and the docs alike: one weight, normal, and five
   steps of stellar's --font-size scale, each with one job. A new size or
   weight is added here first, with its job.
     --font-size--1  small: captions, footnotes, the splash page's frames
     --font-size-0   body: prose, code, tables, the sidebar, buttons
     --font-size-2   heading: h2, the lede, the tagline
     --font-size-4   title: a docs page's h1
     --font-size-6   hero: the splash page's h1 */

:root {
  --bg: var(--named-night-0);
  --surface: var(--named-night-1);
  --surface-2: var(--named-night-2);   /* a terminal's title bar */
  --term-bg: var(--named-terminal-0);
  --line-c: var(--named-night-4);
  --fg: var(--named-night-0-on);
  --fg-quiet: var(--named-night-0-dim);
  --accent: var(--named-blue-0);
  --accent-strong: var(--named-blue-2);
  --glow: var(--named-glow-0);

  /* a picture of a Mac window's buttons, not a colour with a job */
  --dot-red: #ff5f56;
  --dot-amber: #ffbd2e;
  --dot-green: #27ca3f;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 5rem;

  --line: 1px;
  --radius: 8px;
  --fade: 0.2s;
  --flow: 3s;
}

/* Light mode, for a reader whose system is set to light: Sunlit brick, a
   city in daylight, brick and plaster in afternoon sun (n2 #11353, #11469).
   Every text colour clears 5:1 against the ground. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf6ee;             /* cream plaster */
    --surface: #fffdf8;
    --surface-2: #f0e3d2;      /* a terminal's title bar */
    --term-bg: #fffcf6;
    --line-c: #e2d3bf;
    --fg: #2b241e;             /* brown ink */
    --fg-quiet: #6e6257;
    --accent: #9c3d1e;         /* terracotta */
    --accent-strong: #7c2e14;
    --glow: #e07a4a;
  }
}

/* the name's glow drifts along it */
@keyframes flow { 50% { background-position: 100% 50%; } }
