/* ==========================================================================
   Demonstrable design tokens. Provisional. Change values here, not in site.css.
   Colour:  paper, light paper, ink, one accent. The supplied marks stay pure black.
   Type:    Archivo (grotesk, variable width) + Newsreader (editorial serif, italic asides).
            Both SIL Open Font License 1.1, served by Google Fonts.
   ========================================================================== */
:root{
  color-scheme:light dark;

  /* colour */
  --c-paper:   light-dark(#E7E9E1,#151515);
  --c-paper-2: light-dark(#F6F7F2,#1F1F1F);
  --c-ink:     light-dark(#171717,#E7E9E1);
  --c-mute:    light-dark(#5A5C56,#A7A9A1);
  --c-rule:    light-dark(#C7C9C0,#383838);
  --c-accent:  #FF4A1C;              /* interaction, annotation, punctuation */
  --c-night:   light-dark(#151515,#000000); /* dark bands; deeper than the page in dark mode */
  --c-night-ink:#E7E9E1;
  --c-error:   light-dark(#B3260A,#FF8A6B);

  /* type */
  --f-sans:"Archivo",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --f-serif:"Newsreader",Georgia,"Times New Roman",serif;
  --t-display:clamp(44px,7vw,112px);
  --t-h1:clamp(38px,5.2vw,76px);
  --t-h2:clamp(30px,3.8vw,54px);
  --t-h3:clamp(20px,1.7vw,25px);
  --t-lede:clamp(19px,1.55vw,23px);
  --t-body:17px;
  --t-small:14px;
  --lh-tight:.98;
  --track-tight:-.035em;

  /* space */
  --s-1:8px; --s-2:16px; --s-3:24px; --s-4:clamp(28px,3vw,44px);
  --s-5:clamp(40px,5vw,72px); --s-6:clamp(64px,9vw,136px);
  --gutter:max(5vw,18px);
  --measure:38em;
  --w-max:1280px;

  /* motion */
  --d-fast:.18s; --d-base:.35s; --d-slow:.9s;
  --ease:cubic-bezier(.2,.7,.2,1);
}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
@media (prefers-reduced-motion:reduce){
  :root{--d-fast:0s;--d-base:0s;--d-slow:0s}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
