/* ==========================================================================
   TOKENS — the only file you edit for a new client.
   Change the values here and the whole site re-skins. Nothing below this
   file should ever contain a raw colour, font name or hard-coded size.

   CONTRAST RULE: --paper-2 and --paper-3 must stay at or above 4.5:1
   against --ink-2. If you darken the ground, lighten these to match.
   ========================================================================== */
:root{
  /* --- brand ------------------------------------------------------------
     Ground is a warm greige; Pantone Blue 072 carries emphasis and text
     weight; Process Yellow is a BLOCK colour only. Yellow type on a light
     ground fails contrast at any size, so it never becomes text here.     */
  --accent:#10069F;          /* Blue 072 — emphasis, numbers, links        */
  --accent-2:#2A1BD6;        /* 072 lifted, for hover                      */
  --brand:#10069F;           /* Blue 072 — solid brand surface             */
  --brand-lift:#2A1BD6;
  --yellow:#FFE800;          /* Process Yellow — fills and blocks only     */
  --yellow-2:#F6EB61;        /* Pantone 101 C — softer partner             */
  --iris:#5F5A8C;            /* structure: numbering, labels, connectors   */
  --iris-2:#474273;

  /* --- ground and ink ---------------------------------------------------
     Named ink/paper for historical reasons: "ink" is the ground, "paper"
     is the type. On this light theme the values are simply inverted.      */
  --ink:#D8CFC6;             /* page ground: warm greige                   */
  --ink-2:#E3DBD3;           /* raised surface                             */
  --ink-3:#EDE7E1;           /* raised further                             */
  --ink-4:#F6F2ED;
  --paper:#15122F;           /* primary text: near-black, blue-cast        */
  --paper-2:#3F3A63;         /* secondary text  (>= 4.5:1 on --ink-2)      */
  --paper-3:#54506F;         /* tertiary/labels (>= 4.5:1 on --ink-2)      */
  --line:rgba(21,18,47,.16);
  --line-2:rgba(21,18,47,.09);

  /* --- type ------------------------------------------------------------- */
  --font-display:"Cabinet Grotesk","Helvetica Neue",Arial,sans-serif;
  --font-serif:"Boska",Didot,"Bodoni 72","Times New Roman",serif;  /* wordmark */
  --font-text:"Switzer","Helvetica Neue",Arial,sans-serif;
  --font-label:"Switzer","Helvetica Neue",Arial,sans-serif;
  --font-mono:"JetBrains Mono Variable",ui-monospace,Menlo,monospace;

  /* --- states ----------------------------------------------------------- */
  --ok:#1C5B4E;
  --ok-wash:rgba(28,91,78,.12);
  --placeholder:#8A8599;

  /* --- code colours (the live-build editor keeps its dark surface) ------- */
  --c-gutter:#6E6A8C;
  --c-attr:#2E63B8;
  --c-punc:#7A7694;
  --c-prop:#3C5A87;
  --c-comment:#8A86A3;

  /* --- type scale -------------------------------------------------------
     One scale for the whole site. Nothing sets a font-size outside this.   */
  --t-hero:clamp(2.7rem,6.2vw,5rem);
  --t-h2:clamp(1.8rem,3.2vw,2.75rem);
  --t-h3:clamp(1.15rem,1.5vw,1.32rem);
  --t-stat:clamp(1.85rem,2.9vw,2.45rem);
  --t-lede:clamp(1.02rem,1.25vw,1.12rem);
  --t-body:1rem;
  --t-sm:.9rem;
  --t-label:.72rem;

  /* --- measure and container -------------------------------------------- */
  --page:1240px;           /* nothing gets wider than this                  */
  --measure:58ch;          /* running text                                  */
  --measure-tight:34ch;    /* captions, cells, columns                      */

  /* --- rhythm ----------------------------------------------------------- */
  --gut:clamp(20px,5vw,72px);
  --r:10px;

  /* --- motion ----------------------------------------------------------- */
  --e-out:cubic-bezier(.22,1,.36,1);
  --e-io:cubic-bezier(.65,0,.35,1);
}
