/*
 * The user's typeface and text size (src/web/appearance.ts), set on <html> by Layout. Faces are
 * ones devices already have, never web fonts; each stack ends in the generic family.
 */
:root {
  --font-gothic:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI",
    "Meiryo", system-ui, sans-serif;
  --font-mincho:
    "Hiragino Mincho ProN", "Noto Serif JP", "BIZ UDPMincho", "Yu Mincho", "YuMincho", serif;
}

html[data-font="gothic"] {
  --font-sans: var(--font-gothic);
}

html[data-font="mincho"] {
  --font-sans: var(--font-mincho);
}

/* A percentage of the browser's own size, so the device's text-size setting still applies. */
html[data-text-size="large"] {
  font-size: 112.5%;
}

html[data-text-size="xlarge"] {
  font-size: 125%;
}

/* Each typeface's choice is drawn in that face, so it can be judged before picking. */
.font-choice-rounded {
  font-family: var(--font-rounded);
}

.font-choice-gothic {
  font-family: var(--font-gothic);
}

.font-choice-mincho {
  font-family: var(--font-mincho);
}
