/* 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. */

: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%; } }
