/**
 * print-grammar/tokens.css — layer 1: design tokens.
 *
 * The client-agnostic variables every other layer reads. A project themes
 * the grammar by overriding these on :root (see edition-paged.css for the
 * Workhorse Editions theme). Defaults follow Argetsinger, "A Grammar of
 * Typography" (printed folios cited) — see .agents/skills/book-typography.
 */

:root {
  /* Paper: warm/off-white — bright blue-whites are "death" for all but
     classic modern faces (p. 361). Ink runs a short scale, full black
     reserved for display and furniture. */
  --pg-paper: #fffdf7;
  --pg-ink: #0a0a0a;
  --pg-ink-soft: #1f1f1f;
  --pg-ink-faint: #6b6b6b;
  --pg-rule: #cccccc;
  /* Red is the primordial second color (p. 257). */
  --pg-accent: #a02015;

  /* Faces: a text roman with true italic, small caps, and old-style
     figures (pp. 112–113); a display cut for sizes above ~24pt. */
  --pg-font-text: Georgia, serif;
  --pg-font-display: var(--pg-font-text);

  /* Measure and body: 35 min / 55–65 optimum / 75 max characters
     (p. 200); leading scales with measure (p. 202). */
  --pg-size-text: 10.5pt;
  --pg-leading: 1.58;
  --pg-measure: 5.4in;

  /* Marginal apparatus (the Argetsinger page model): note column at
     ~3/10 of the measure, notes and captions at ~72% of text size. */
  --pg-note-col: 1.5in;
  --pg-note-gap: 0.25in;
  --pg-note-size: 0.72em;

  /* Letterspacing: small caps and displayed capitals are always
     uniformly letterspaced (p. 193); never lowercase. */
  --pg-sc-tracking: 0.06em;
  --pg-caps-tracking: 0.12em;

  /* Page margins (letter default; furniture.css reads these). Margins
     grow gutter → head → fore-edge → tail (p. 177). The fore-edge
     (outer) margin is wide because it houses the note column: it must
     hold --pg-note-col + --pg-note-gap plus a true edge margin. On
     letter: 0.9in gutter + 5.4in measure + 2.2in fore-edge = 8.5in. */
  --pg-margin-top: 0.9in;
  --pg-margin-inner: 0.9in;
  --pg-margin-outer: 2.2in;
  --pg-margin-bottom: 0.85in;
}
