/* ==========================================================================
   tokens.css — the site's shared vocabulary.

   One place for the palette, the gutters, the measure and the type scale, so
   the home pages (site.css) and the text pages (shell.css) cannot drift apart.

   Loaded by every public page, before that page's own stylesheet.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Palette */
  --bg: #f7f9fc;
  --ink: #182432;
  --muted: #667789;
  --line: rgba(25, 52, 78, .13);
  --glass: rgba(255, 255, 255, .78);
  --blue: #168cff;
  --violet: #745cff;
  --warm: #ff9855;

  /* Chrome-only tones. */
  --nav-ink: #3a5261;        /* header text on the light ground */
  --footer-bg: #06131d;
  --footer-ink: #b9b9c3;
  --footer-bright: #ededf2;
  --footer-rule: rgba(255, 255, 255, .09);

  /* The navigation bar: one floating object on every page, legible over paper,
     the seam and the night sections alike. */
  --bar-bg: rgba(255, 255, 255, .86);
  --bar-edge: rgba(18, 33, 48, .09);
  --bar-shadow: 0 18px 44px -18px rgba(6, 22, 36, .5);
  --bar-ink: #16293a;
  --bar-active: #122130;

  /* Every primary action on the site. The warm accent is the colour a thought
     takes when it strikes the sphere, so acting on the page reads as the same
     gesture; ink on it holds 8.6:1. */
  --button-bg: #ff9855;
  --button-bg-hover: #ffad75;
  --button-ink: #14212d;

  /* The text pages' own name for the same gutter, so shell.css and the home
     page cannot drift apart again. */
  --shell-gutter: var(--gutter);
  --shell-max: 68rem;
  --shell-header-min: 6rem;
  --measure: 62ch;

  /* One horizontal gutter for the whole site. It used to exist four times over —
     the header and hero sat on 4%/3%, the sections and footer on 5vw, so the
     brand, the headings and the footer edge each started somewhere different.
     Every full-width block now measures its padding from this. */
  --gutter: max(1.25rem, 5vw, calc((100% - 1360px) / 2));

  /* Space for the opening copy, its actions and the central instrument. */
  --section-band: 540px;
  --hero-band: clamp(600px, 42vw, 660px);

  /* One type scale, so a heading means the same thing wherever it appears. */
  --step-0: 1.03125rem;
  --step-1: 1.35rem;
  --step-2: clamp(2.4rem, 5vw, 3.6rem);
}
/* Narrow screens have no 1180px column to centre, so the gutter is simply a
   proportion of the width. This replaces the old --reading-gutter: 6% override
   that lived in site.css. */
@media (max-width: 900px) {
  :root { --gutter: 6%; }
}
