/* Witch of Design · type system. Three typefaces, each with one job, on one scale. Loaded last on every page.

   IM Fell English    headlines only. Regular, never bold. Italic only in the wordmark ("of") and in her handwriting.
   IBM Plex Sans      everything you read and press: text, labels, buttons, captions. 400, and 500 for labels, buttons and nav.
   IBM Plex Mono      numbers that are measured or counted: px, ratios, colour values, counters, dates, lesson numbers.

   Scale (fluid between phone and desktop)
   d1   page title          44 → 112
   d2   section title       34 → 72
   d3   card title, line    24 → 38
   lede intro paragraph     19 → 23, line height 1.45
   body text                17,      line height 1.55
   small captions, notes    15,      line height 1.45
   label above things       13, Plex Sans 500, sentence case, no tracking                                                      */
:root{
  --f-display:'IM Fell English','Fell Fallback',Georgia,serif; --f-text:'IBM Plex Sans',Arial,sans-serif; --f-num:'IBM Plex Mono',ui-monospace,monospace;
  --t-d1:clamp(44px,7vw,112px); --t-d2:clamp(34px,4.6vw,72px); --t-d3:clamp(24px,2.6vw,38px);
  --t-lede:clamp(19px,1.6vw,23px); --t-body:17px; --t-small:15px; --t-label:13px;
}
body{font-family:var(--f-text);font-size:var(--t-body);line-height:1.55}

/* the roles, as classes */
.t-d1{font-family:var(--f-display);font-weight:400;font-style:normal;font-size:var(--t-d1);line-height:.96;letter-spacing:-.01em;text-wrap:balance}
.t-d2{font-family:var(--f-display);font-weight:400;font-style:normal;font-size:var(--t-d2);line-height:.98;letter-spacing:-.005em;text-wrap:balance}
.t-d3{font-family:var(--f-display);font-weight:400;font-style:normal;font-size:var(--t-d3);line-height:1.05;text-wrap:balance}
.t-lede{font-family:var(--f-text);font-size:var(--t-lede);line-height:1.45;max-width:34em}
.t-small{font-family:var(--f-text);font-size:var(--t-small);line-height:1.45}
.t-label{font-family:var(--f-text);font-weight:500;font-size:var(--t-label);line-height:1.3;letter-spacing:0;text-transform:none}
.num,.t-num{font-family:var(--f-num);font-variant-numeric:tabular-nums}

/* the existing pieces, mapped onto the roles */
/* d1: page titles */
.sheet h1,.p-hero h1,.regh,.her-t h1,.her-t h2{font-family:var(--f-display);font-weight:400;font-size:var(--t-d1);line-height:.96}
/* d2: section titles, lesson titles */
.p-hero.compact h1,.p-h2,.w-head h2,.band h2,.gzhead h1,.gzhead h2,.sheet h2:not(.t-d1):not(.t-d3){font-family:var(--f-display);font-weight:400;font-size:var(--t-d2);line-height:.98}
/* d3: card titles and single lines */
.p-door b,.door b,.fcard dd,.mani .s,.card .line,.sent .big,.legal h2,.prow h2{font-family:var(--f-display);font-weight:400;font-size:var(--t-d3);line-height:1.05}
/* lede */
.p-lede,.lede,.band .lede,.p-hero .p-lede{font-family:var(--f-text);font-size:var(--t-lede);line-height:1.45}
.p-hero.compact .p-lede{font-size:var(--t-small)}
/* body and small */
.prose p,.prow p,.p-door .what,.door span,.rcard .rx,.mani .x{font-size:var(--t-body);line-height:1.55}
.small,.fine,.note,.ep figcaption,.regcap,.sf-line,.p-learn summary,.p-learn li{font-family:var(--f-text);font-style:normal;font-size:var(--t-small);line-height:1.45}
/* labels: Plex Sans, not mono, unless the label is a number */
.p-kick,.sf-cols h2,.fcard dt,.kicker,.p-task .lab,.ep-snd,.meta{font-family:var(--f-text);font-weight:500;font-size:var(--t-label);letter-spacing:0;text-transform:none}
.p-door .top{font-family:var(--f-text);font-weight:500;font-size:var(--t-label)}
.p-door .top .num,.p-kick .num{font-family:var(--f-num);font-weight:400}
/* numbers stay mono */
.reading,.lctl output,.bigscore,.meas b,.her-num,.mark-note,.sp-clock,#clock,.tally,.p-hud .num{font-family:var(--f-num);font-variant-numeric:tabular-nums}
/* buttons and nav: Plex Sans 500 */
.btn,.btn-k,.p-btn,.w-btn,.cta,.pbar nav,.seg a,.gzbar,.tools button{font-family:var(--f-text);font-weight:500}

/* an intro paragraph stays a lede inside running text */
.prose .lede,.prose p.lede,.who .lede{font-size:var(--t-lede);line-height:1.45}
