/* ==========================================================================
   tomassetti.me — Brand & Design Book v1.0
   Layer 1: tokens. Single source of truth (book §22).
   Nothing in this file may be overridden anywhere else; components read tokens.
   ========================================================================== */

:root {
  /* colour — §09 */
  --page:     #FBFAF6;   /* default background                                */
  --stone:    #F2F0EA;   /* secondary surfaces: colophons, cards, table zebra */
  --ink:      #1A1D1C;   /* headlines, footer ground                          */
  --body:     #26302B;   /* body copy — 12.6:1 on page                        */
  --muted:    #6F746E;   /* muted body copy                                   */
  --hairline: #E2E3DB;   /* 1px rules                                         */
  --sage:     #4A5D4E;   /* links, territory labels, the only filled button   */
  --sage-deep:#2E3B31;   /* duotone base, dark code frames. Never for text    */
  --amber:    #C98A2B;   /* editorial accent. Max one per screenful           */

  /* dek / small-meta ink — §10 */
  --quiet:    #4C534E;

  /* families — §10 */
  --serif: 'Spectral', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* measure and rails — §11 */
  /* Reading column. §10/§11 specify 620px ("never wider, whatever the
     viewport") for a 62-68 character measure. Widened to 720px (~75 chars) on
     Federico's call 2026-08-21: at 620 the column read as a narrow strip on a
     wide screen. Deliberate deviation, recorded in PLAN.md. */
  --measure: 720px;
  --rail:    200px;
  --gutter:  52px;
  --page-max:1120px;

  /* spacing scale — §11. Vertical rhythm comes off the 26px step             */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px;
  --s6:26px; --s7:34px; --s8:44px; --s9:52px;

  /* code — §13 */
  --code-frame:  #DDE0DC;
  --code-body:   #1A2320;
  --code-target: #12332B;
  --code-keyword:#93B79A;
  --code-literal:#C9A96B;
  --code-comment:#7E9A87;
}

/* The book allows two backgrounds maximum per page (page + one of stone /
   sage / ink) and forbids Strumenta's deep blue anywhere. There is no token
   for it on purpose. Ratio in use, per page: ~80% paper, 12% ink, 6% sage,
   2% amber. */
