/* The Drug Law Record — brand tokens.
   Every colour, type, space and radius value the site uses lives here.
   Fonts are self-hosted under the SIL Open Font License 1.1 (see brand/fonts/*-OFL.txt). */

@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/Newsreader-VF.woff2) format("woff2")}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:200 800;font-display:swap;src:url(fonts/Newsreader-Italic-VF.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/IBMPlexMono-Regular.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/IBMPlexMono-Medium.woff2) format("woff2")}

:root{
  /* Paper and ink */
  --paper:#FFFFFF;          /* page */
  --paper-2:#F3F3F0;        /* table heads, quiet bands; neutral grey, not cream */
  --ink:#1B1C1F;            /* text, rules — 17.0:1 on paper */
  --ink-2:#55575E;          /* secondary text, notes — 7.2:1 on paper, 6.5:1 on paper-2 */
  --rule:#1B1C1F;           /* ledger rules */
  --rule-mid:#9E9E99;       /* empty-map edges, form borders — 2.7:1, non-text only */
  --rule-soft:#DCDCD8;      /* hairlines between rows */

  /* One brand colour, one accent */
  --brand:#7A1E2E;          /* "rubric" oxblood: the § mark, link underlines, current item — 10.2:1 on paper */
  --brand-tint:#F6E1E3;     /* brand at low strength, quiet fills */
  --accent:#FFE45C;         /* highlighter: "new this year" and the current-year mark only — ink on it 13.4:1 */
  --focus:#1B1C1F;          /* focus ring, always with a paper gap */

  /* Map and chart set: sequential, "years in effect". One hue, lightness carries the order,
     so it survives every common colour-vision deficiency. Relative luminance falls at every step. */
  --map-none:#FFFFFF;  --map-none-edge:#9E9E99;   /* no law yet (ruled outline) */
  --map-1:#F6E1E3;     /* in effect 1–4 years   — ink label 13.6:1 */
  --map-2:#E2A3AE;     /* 5–9 years             — ink label 8.2:1 */
  --map-3:#AE4560;     /* 10–19 years           — paper label 5.5:1 */
  --map-4:#5E1020;     /* 20 years or more      — paper label 13.4:1 */
  --map-new:#FFE45C;   /* enacted this year: highlighter plus a 2px ink frame, so colour is never the only cue */
  --map-label-light:#FFFFFF; --map-label-dark:#1B1C1F;

  /* Type families */
  --font-serif:"Newsreader","Iowan Old Style","Georgia",serif;   /* reading, headings, display */
  --font-mono:"IBM Plex Mono","SFMono-Regular","Menlo",monospace; /* dates, stamps, citations, data labels */

  /* Type scale (roles) */
  --fs-display:clamp(2.25rem,1.45rem + 2.9vw,3.75rem);   /* home h1 */
  --fs-h1:clamp(2rem,1.5rem + 1.9vw,3rem);               /* page titles */
  --fs-h2:clamp(1.375rem,1.2rem + .6vw,1.75rem);         /* section heads */
  --fs-h3:1.25rem;                                       /* sub-heads, questions */
  --fs-lede:clamp(1.1875rem,1.1rem + .35vw,1.375rem);    /* decks */
  --fs-body:1.125rem;                                    /* running text, 18px */
  --fs-caption:1rem;                                     /* captions, map note */
  --fs-table:.9375rem;                                   /* table text */
  --fs-note:.875rem;                                     /* footnotes, citations, source notes */
  --fs-mono:.8125rem;                                    /* mono stamps and labels */
  --fs-readout:clamp(3rem,2rem + 3.6vw,4.5rem);          /* the map's year */
  --fs-tile:clamp(.5625rem,.45rem + .45vw,.8125rem);     /* map tile labels */

  --lh-body:1.55; --lh-note:1.45; --lh-head:1.15; --lh-display:1.04;
  --wt-text:400; --wt-strong:600; --wt-head:600; --wt-display:500;
  --track-mono:0; --track-display:-.015em;

  /* Space (4px base) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:64px; --sp-9:96px;

  /* Rules */
  --rule-hair:1px; --rule-heavy:3px; --rule-gap:3px;     /* the ledger double rule: 3px, 3px gap, 1px */

  /* Radius: square by default; tiles get a hint */
  --radius-0:0; --radius-1:2px;

  /* Layout */
  --page-max:1168px;                    /* content width at desktop */
  --page-pad:clamp(16px,4vw,48px);      /* side gutter; 16px at phone width */
  --margin-col:208px;                   /* the hanging margin: dates, heads, contents */
  --col-gap:40px;
  --measure:42rem;                      /* reading column, about 70 characters */
  --aside:300px;                        /* map controls, header figures */
}
