/* The site's type, in one place. Every page that wears home.css or styles.css
   links this first, so a face, a pin or a role changes here and nowhere else;
   test/type-tokens.test.js fails if a site sheet declares its own copy.
   Only the site's own pages: the rooms (rose, moonrise, ash-and-thread), the
   games and the business studies keep their own voices on purpose. */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
/* Subset covers only the glyphs used on the page (bilingual details).
   pinned: _headers serves /assets/fonts/* as immutable for a year, so a
   returning visitor holds the OLD subset until 2027 unless the URL changes.
   Adding the 干支 glyphs on 2026-08-19 is exactly the case that needs it:
   without the pin those readers would see the date fall back to a system
   font, or to tofu on a machine with no CJK serif. */
@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/noto-serif-sc-subset-69.woff2?v=1") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-cjk: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --weight-display: 400;
  --weight-body: 350;
  --leading-body: 1.65;
  --tracking-display: -.015em;
  --type-section: clamp(2.25rem, 4.2vw, 3.75rem);
  --type-card: clamp(1.875rem, 2.8vw, 2.625rem);
  --type-label: .875rem;
  /* Instrument Serif has one weight: a heavier request must not smear bold */
  font-synthesis-weight: none;
}
