/* type.css — the typographic system, shared by every page.

   Latin: EB Garamond (SIL OFL 1.1, self-hosted — see assets/fonts/OFL.txt).
   A 16th-century Garamond revival: humanist, warm, and old enough to sit beside
   a Song-dynasty scroll without pretending to be Chinese. Variable 400–600, one
   44 KB file, no external requests and nothing phoning home about visitors.

   Chinese: the system serif stack. Songti/Source Han Serif are 5–10 MB per weight
   and the site uses only a few dozen characters of UI, so shipping one would cost
   more than the entire painting. Song-style serifs are present on every platform
   we care about, and they are the correct companion to a Garamond.

   Rule of thumb: --type for running text and titles, --type-ui for the small
   letterspaced labels, which need the extra weight to hold up on a dark ground.
*/

@font-face{
  font-family:'EB Garamond';
  font-style:normal;
  font-weight:400 600;              /* variable range */
  font-display:swap;
  src:url('../assets/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
                U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,
                U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --type:'EB Garamond',"Songti SC","Source Han Serif SC","Noto Serif SC",
         "STSong","SimSun",Georgia,serif;
  --type-ui:'EB Garamond',"Songti SC","Source Han Serif SC","Noto Serif SC",
            "STSong","SimSun",Georgia,serif;
}

/* Garamond runs small and light; nudge it up so it sits level with the Song faces
   beside it, and lean on 500 for the tiny letterspaced labels. */
body{ font-family:var(--type); font-size:16px; }
.t-ui{ font-family:var(--type-ui); font-weight:500; }
:lang(zh) .t-ui{ font-weight:400; }
