/* SIFLC design tokens. The one source for type, spacing, color, motion, radius, shadow and layering
   on the public site and the member manual. docs/design/TOKENS.md explains each choice.
   Other stylesheets use these variables and never define :root values of their own. */
:root{
  /* Type: two families. Archivo for the interface, Source Serif 4 for reading the manual. */
  --font-ui:"Archivo",Arial,system-ui,sans-serif;
  --font-reading:"Source Serif 4",Georgia,serif;
  --head:var(--font-ui);--body:var(--font-ui);
  /* Seven sizes. Every font-size in the site uses one of these. */
  --t-xs:.8125rem;   /* 13px labels, meta, captions */
  --t-sm:.9375rem;   /* 15px secondary text, controls */
  --t-md:1.0625rem;  /* 17px body */
  --t-lg:1.25rem;    /* 20px small headings */
  --t-xl:1.625rem;   /* 26px section headings */
  --t-2xl:clamp(2rem,1.4rem + 2.2vw,2.75rem);  /* page titles */
  --t-3xl:clamp(2.5rem,1.6rem + 2.9vw,3.75rem);   /* hero display */
  --lh-display:1.08;--lh-head:1.2;--lh-body:1.6;
  --tr-display:-.025em;--tr-head:-.015em;--tr-label:.06em;
  /* Spacing on a 4px grid. --space-* are the section-level steps used by the layouts. */
  --s-1:.25rem;--s-2:.5rem;--s-3:.75rem;--s-4:1rem;--s-5:1.5rem;--s-6:2rem;--s-7:3rem;--s-8:4.5rem;
  --space-1:var(--s-2);--space-2:var(--s-4);--space-3:var(--s-5);--space-4:var(--s-6);--space-5:var(--s-7);--space-6:var(--s-8);
  --page-width:72rem;
  /* Color, light. Paper-white and graphite surfaces; SIFLC maroon is the accent. */
  --bg:#FFFFFF;--bg2:#F4F5F6;--ink:#202226;--navy:#202226;--muted:#5B6068;--line:#D8DCDF;--line-strong:#7E848B;
  --brand:#6F263D;--brand-dark:#512034;--maroon:#6F263D;--link:#6F263D;--gold:#826B39;--gray:#A2AAAD;
  --mark:#FFE79A;--mark2:#E3EBF3;--hit:#FFF8E1;
  --tr-line:#6F263D;--tr-ink:#6F263D;
  /* Character colors: Rookie uses --brand; Penny's teal and gold come from manual-source/art/penny_draw.py. */
  --penny-teal:#1F5F6B;--penny-gold:#C99844;
  /* Callout tints (fill) and edges, one pair per box kind. */
  --story:#F7EDF1;--real:#F1F3F5;--exc:#EAF3EC;--res:#EAF3EC;--bias:#EAF3EC;--l2:#DDE6EE;--tip:#EAF3EC;
  --e-story:#7A5A18;--e-real:#A2AAAD;--e-exc:#3B7A57;--e-res:#3B7A57;--e-bias:#3B7A57;--e-l2:#13293D;--e-tip:#3B7A57;
  /* Motion: strong ease-out for entering and feedback, ease-in-out for moving on screen. Interface motion stays under 300ms. */
  --ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);
  --dur-press:140ms;--dur-fast:180ms;--dur-base:240ms;
  /* Shape and depth. Shadows carry the ink hue instead of pure black. */
  --r:4px;--r-lg:6px;
  --shadow-1:0 1px 2px rgb(40 35 38 / .06),0 4px 12px rgb(40 35 38 / .06);
  --shadow-2:0 2px 4px rgb(40 35 38 / .08),0 12px 32px rgb(40 35 38 / .10);
  /* Layers. */
  --z-raised:1;--z-sticky:20;--z-companion:50;--z-popover:80;--z-dialog:100;--z-toast:200;
}
:root[data-theme=dark]{
  color-scheme:dark;
  --bg:#111214;--bg2:#1B1D21;--ink:#F5F6F7;--navy:#F5F6F7;--muted:#BDC2CA;--line:#3D424B;--line-strong:#6E747D;
  --link:#F2BCCB;--maroon:#F2BCCB;--gold:#D4BD83;
  --mark:#6B5410;--mark2:#24384A;--hit:#2A2616;
  --tr-line:#E39AB0;--tr-ink:#F2BCCB;
  --story:#291D24;--real:#1C2229;--exc:#162B21;--res:#162B21;--bias:#162B21;--l2:#17293B;--tip:#162B21;
  --e-story:#D9B35B;--e-real:#5D6A73;--e-exc:#58A47C;--e-res:#58A47C;--e-bias:#58A47C;--e-l2:#6FA6D6;--e-tip:#58A47C;
  --shadow-1:0 1px 2px rgb(0 0 0 / .3),0 4px 12px rgb(0 0 0 / .25);
  --shadow-2:0 2px 4px rgb(0 0 0 / .35),0 12px 32px rgb(0 0 0 / .35);
}
