/* ADE AMOS · DESIGN TOKENS
   The one place colours, fonts, sizes and shadows are defined.
   Every page on the site reads from this file. Change a value here and it changes everywhere.
   Contrast ratios in the comments were measured, not estimated (WCAG, AA needs 4.5:1 for body text). */
:root{
  /* ---- surfaces ---- */
  --paper:#FBFAF7;        /* the desk. Page background. */
  --sheet:#FFFFFF;        /* paper lying on the desk. Cards, panels, pills. */
  --cobalt-pale:#DFE6FB;  /* soft blue fill for callouts. Ink on it: 14.63:1 */
  --night:#10131C;        /* the dark code panel */

  /* ---- ink ---- */
  --ink-900:#14160F;      /* headlines and body. 17.47:1 on paper, 18.24:1 on sheet */
  --ink-500:#62645A;      /* secondary text and labels. 5.77:1 on paper, 6.02:1 on sheet */
  --rule:rgba(20,22,15,.15); /* borders and dividers only. Never text. */

  /* ---- the one brand colour ---- */
  --cobalt:#2247E6;       /* links, buttons, the second half of a headline. 6.47:1 on paper. White on it: 6.75:1 */
  --dot:rgba(34,71,230,.20); /* the dot grid on the desk */

  /* ---- sticky notes. Ink on each is 11:1 or better. ---- */
  --note-yellow:#FFE066; --note-pink:#FFB8C9; --note-mint:#B6EFD0; --note-blue:#BFD3FF;

  /* ---- one colour per content type. Used as a dot, a top border, or an icon tile. White text passes on all five. ---- */
  --k-articles:#E4002B;   /* 4.85:1 with white */
  --k-tools:#0057B8;      /* 6.87:1 */
  --k-guides:#00843D;     /* 4.81:1 */
  --k-skills:#B45309;     /* 5.02:1. Was a brighter orange (#F28C00) that failed at 2.46:1. */
  --k-cases:#7A3FF2;      /* 5.50:1 */

  /* ---- status ---- */
  --ok:#0E8A4B; --ok-pale:#DDF3E4; --ok-ink:#0B5D33;
  --warn-pale:#FFF0CC; --warn-ink:#7A4B00;
  --bad:#D92D20; --bad-pale:#FFF4F2;

  /* ---- type: three faces, one job each ---- */
  --font-sans:'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;  /* everything you read */
  --font-mono:'Geist Mono',ui-monospace,Menlo,Consolas,monospace;                 /* small labels and code */
  --font-hand:'Caveat','Segoe Print','Bradley Hand',cursive;                      /* sticky notes and captions only */
  --text-display:clamp(44px,6.4vw,88px);  /* page headline. 800 weight, -0.045em */
  --text-h2:clamp(32px,4vw,48px);
  --text-h3:28px;
  --text-lede:23px;
  --text-body:19px;
  --text-small:16.5px;
  --text-label:11.5px;                    /* mono, uppercase, 1.5px tracking */

  /* ---- shape and depth ---- */
  --radius-card:18px; --radius-box:12px; --radius-pill:99px;
  --shadow:0 22px 50px rgba(20,22,15,.10);       /* paper lifted off the desk */
  --shadow-note:0 12px 22px rgba(20,22,15,.14);  /* a sticky note */
  --space-1:8px; --space-2:16px; --space-3:24px; --space-4:40px; --space-5:60px;
  --ease:cubic-bezier(.22,1,.36,1);
  --page:1180px;                                 /* widest content width */

  /* ---- short names the pages use. Do not redefine these on a page. ---- */
  --bg:var(--paper); --card:var(--sheet); --ink:var(--ink-900); --dim:var(--ink-500); --line:var(--rule);
  --accent:var(--cobalt); --pale:var(--cobalt-pale);
  --sans:var(--font-sans); --mono:var(--font-mono); --hand:var(--font-hand);
  --n1:var(--note-yellow); --n2:var(--note-pink); --n3:var(--note-mint); --n4:var(--note-blue);
  --c:var(--cobalt);                              /* the current page's content-type colour */
}
