/* newsprint.css: the tokens of The Daily Whiff's newspaper look (owner's decisions of Nov. 19, 2026).

   One standalone file of CSS custom properties and nothing else: colors, the two typefaces, the rules, the sizes. The
   site (config/site/design.css, deployed together with this file by `whiff wp-design`) styles every part with them;
   another site (whiff-term) may copy this file as it is. The two sites never link to or load each other: a copy is a
   copy. Change a value here and the whole paper follows.

   Morning edition: paper, ink and one spot color, used sparingly (kickers, links, the Drama Index). Night edition:
   the same names with other values under `prefers-color-scheme: dark`. Every text color passes WCAG AA on its paper
   (tests/test_front_css.py counts it): ink 15.1:1 / 14.4:1, muted 5.6:1 / 6.8:1, spot 4.8:1 / 6.7:1 (morning / night).
   The hair is a line between columns, never text.

   The tokens, in order:
   --np-paper        the page
   --np-ink          text and the heavy rules
   --np-muted        captions, labels, the status line
   --np-hair         hairlines between columns and rows (no text in it)
   --np-spot         the one spot color: kickers, links, the Drama Index
   --np-spot-fill    the spot as a fill under white text (a button): 5.0:1 with #fff in both editions
   --np-sheet        an inside page drawn as a sheet of its own
   --np-shadow       the soft shadow under a sheet
   --np-serif        Newsreader: titles, reading text, the dek, jump lines (served by the site, WOFF2, swap)
   --np-sans         Archivo: the data voice (kickers, datelines, figures, tables)
   --np-sans-stretch Archivo's width for small caps and agate
   --np-sc-size      small caps (uppercase, tracked), never under 12px; --np-sc-track their tracking
   --np-agate        agate: standings, results, odds (13px, tabular figures)
   --np-body         reading text, 16.5px on a line of --np-body-line, justified with hyphens
   --np-title        "The Daily Whiff" in the header on a desktop (60px, Newsreader 800); --np-title-phone 42px
   --np-title-small  the title of an inside page's header (34px)
   --np-hed          the lead's headline on a desktop (70px, Newsreader 700); --np-dek its italic dek (23px)
   --np-rule         an ink line: structure (a table's head, the foot of a dateline)
   --np-rule-head    the 2px ink line over a section's head
   --np-rule-hair    a hairline between columns and rows
   --np-rule-heavy   the double rule's heavy line (3px), --np-rule-gap the gap before its 1px line
   --np-box          The Whiff's puzzle box, double-ruled like a crossword's
   --np-cols         columns of a desktop page (from 1000px); a phone has one
   --np-gutter       between two columns, the hairline in its middle
   --np-measure      the longest line of reading text */

:root {
  --np-paper: #f5f3ee;
  --np-ink: #1c1e21;
  --np-muted: #64615b;
  --np-hair: #c9c2b5;
  --np-spot: #b04d1f;
  --np-spot-fill: #b04d1f;
  --np-sheet: #fbfaf7;
  --np-shadow: rgba(28, 30, 33, .14);
  --np-serif: Newsreader, Georgia, "Times New Roman", serif;
  --np-sans: Archivo, "Arial Narrow", sans-serif;
  --np-sans-stretch: 87%;
  --np-sc-size: .75rem;
  --np-sc-track: .11em;
  --np-agate: .8125rem;
  --np-body: 1.03125rem;
  --np-body-line: 1.42;
  --np-title: 3.75rem;
  --np-title-phone: 2.625rem;
  --np-title-small: 2.125rem;
  --np-hed: 4.375rem;
  --np-dek: 1.4375rem;
  --np-rule: 1px solid var(--np-ink);
  --np-rule-head: 2px solid var(--np-ink);
  --np-rule-hair: 1px solid var(--np-hair);
  --np-rule-heavy: 3px;
  --np-rule-gap: 2px;
  --np-box: 3px double var(--np-ink);
  --np-cols: 6;
  --np-gutter: 56px;
  --np-measure: 38rem;
}

/* the night edition */
@media (prefers-color-scheme: dark) {
  :root {
    --np-paper: #15171a;
    --np-ink: #ebe6dc;
    --np-muted: #a59f94;
    --np-hair: #3c3f44;
    --np-spot: #e8834f;
    --np-spot-fill: #b04d1f;
    --np-sheet: #1d2024;
    --np-shadow: rgba(0, 0, 0, .45);
  }
}
