/* ---------- system type for the desktop 3 layout studies ----------
   the chrome's voice: window titles, the menubar, the taskbar, dock labels,
   pop-up menus, control labels. every piece of it carries .sys. reading text in
   window bodies is not system type and stays desktop 2's recursive MONO 0.

   switched by [data-systype] on <html>, or on any ancestor, so a bench can set
   several side by side (the same reason themes are [data-theme]):

     recursive  desktop 2 exactly. the control.
     pixel      a bitmap system face — chicago, via chikarego2.
     harder     no new font. recursive pushed to a chicago weight.
     grotesk    a plain sans, the helvetica of next and beos. instrument sans.

   the systems in the os research pass each ran one dedicated face across
   their chrome — chicago on the classic mac, tahoma on windows 2000/xp, topaz
   on the amiga — so each direction here is one face at one size. poolsuite, measured 2026-09-26, runs four
   pixel faces across its chrome (ishmeria titles, pixolde menubar, chikarego2
   buttons, everyday small labels); one is the stricter read of the lineage.

   tokens, per the layout contract: --chrome-font --chrome-var --chrome-weight
   --chrome-size --chrome-track --chrome-case. none of the four needs a different
   --title-h or --bar-h; see pixel below for why. */

:root,[data-systype=recursive]{
  --chrome-font:"Recursive",ui-monospace,monospace;
  --chrome-var:"MONO" 1,"CASL" 0,"wght" 460;
  --chrome-weight:460;
  --chrome-size:11px;
  --chrome-track:.02em;
  --chrome-case:none}

/* chicago 12, pixel for pixel. chikarego2's grid is 64 units in a 1024 em, so
   one font pixel is one css pixel at exactly 16px; at any other size the
   squares land between pixels and blur. 16 is its only size here (32 if it is
   ever doubled). cap height 9px, x-height 7 — a touch larger than desktop 2's
   11px labels, the size poolsuite sets it at.
   it is drawn with 2px between letters; the original mac mostly used 1, and
   poolsuite pulls it back with -1px. an integer, so every glyph still starts
   on a whole pixel.
   it covers basic latin and ×, nothing else: · — ’ … and the arrows fall to
   pixel operator, which is drawn on the same 16px grid, rather than to a
   vector face that would read as a mistake.
   --title-h and --bar-h can stay 24 and 34: the face is on the css pixel grid
   at any integer height, and chromium snaps the baseline to a whole pixel. what
   can still blur it is horizontal — a title centred to a half pixel on a 1x
   screen, or any fractional device scale (windows at 125%). */
:root[data-systype=pixel],[data-systype=pixel]{
  --chrome-font:"ChiKareGo2","Pixel Operator","Recursive",monospace;
  --chrome-var:normal;
  --chrome-weight:400;
  --chrome-size:16px;
  --chrome-track:-1px;
  --chrome-case:none}

/* chicago's weight without chicago: recursive's proportional cut (MONO 0) at
   800. chicago was a heavy proportional sans, not a mono, so the mono axis
   goes the other way from desktop 2's labels. 12px because chicago was 12
   point on a 72dpi screen. lowercase stays — the register is lowercase. the
   bench also carries 11px, and two capitals variants (a topaz-ish MONO 1 and
   a proportional one) that read more terminal than system.
   CASL stays 0: the casual cut is drawn for 14px and up. */
:root[data-systype=harder],[data-systype=harder]{
  --chrome-font:"Recursive",Helvetica,sans-serif;
  --chrome-var:"MONO" 0,"CASL" 0,"wght" 800;
  --chrome-weight:800;
  --chrome-size:12px;
  --chrome-track:0;
  --chrome-case:none}

/* next and beos set their title tabs in bold helvetica (swis721 on beos).
   instrument sans is the self-hosted neo-grotesk in that register: helvetica's
   proportions and a width axis, so a long title can narrow instead of
   truncating. self-hosted rather than system helvetica, because "helvetica"
   is arial on windows and something else again on linux, and the point of
   the study is one committed face. 600 rather than next's bold: the same
   weight also sets the menubar and taskbar, where bold on every word is loud. */
:root[data-systype=grotesk],[data-systype=grotesk]{
  --chrome-font:"Instrument Sans",Helvetica,Arial,sans-serif;
  --chrome-var:normal;
  --chrome-weight:600;
  --chrome-size:12px;
  --chrome-track:.005em;
  --chrome-case:none}

/* :root lifts this above a page's own `.title h2` or `.bar` font rules, so the
   switch always wins without !important. */
:root .sys{
  font-family:var(--chrome-font);
  font-variation-settings:var(--chrome-var);
  font-weight:var(--chrome-weight);
  font-size:var(--chrome-size);
  letter-spacing:var(--chrome-track);
  text-transform:var(--chrome-case);
  font-synthesis:none}

/* a bitmap face gets no smoothing, no kerning and no ligatures: every one of
   them moves a glyph off the pixel grid. the line box is 16px — the font's own
   line gap is 1.4375px, which would otherwise put half-pixels into every bar. */
[data-systype=pixel] .sys,[data-systype=pixel].sys{
  line-height:16px;
  -webkit-font-smoothing:none;
  font-kerning:none;
  font-variant-ligatures:none;
  text-rendering:optimizeSpeed}
