/* Lato (123456789) for primary font, for Cantonese using IPA orthography */
@import url(https://brick.freetls.fastly.net/Lato:500,500i,700,700i,800,800i);
/*
@import url(https://fonts.googleapis.com/css?family=VT323&subset=latin-ext);
*/
/* Noto Sans (134579) has slightly heavier weight than Lato. You will notice it so need to subtract 100 to compensate */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

:lang(en),	/* XXX temporary hack to work around possible Firefox bug, should not be necessary */
:lang(fr),
:lang(pl),
html {
	font-weight: 500;
}
:lang(en),	/* XXX temporary hack to work around possible Firefox bug, should not be necessary */
:lang(fr),
:lang(pl),
html {
	font-family: Lato, sans-serif;
}
pre.code :lang(en) {
	font-family: VT323;
}
:lang(ja) {
	font-family: "Noto Sans JP", sans-serif;
}
:lang(ja-Latn) {
	font-family: unset;
}
:lang(yue-HK),
:lang(zh-hant),
:lang(zh-hk-hant),
:lang(zh-tw-hant),
:lang(zh-hk),
:lang(zh-tw) {
	font-family: "Noto Sans HK", "Noto Sans TC", "Noto Sans JP", sans-serif;
}
section.gallery-item > h2 + div > subline,
i.heading,
.blog x-textblock h1,
.toc-entry a,
:lang(en),
:lang(fr),
dt,
h2 ~ subline,
h2 {
	/* These would have been in a contrasting face, if a suitable one existed */
	font-family: Lato, sans-serif;
}
abbr .sc {
	font-feature-settings: inherit;
	font-size: inherit;
	letter-spacing: inherit;
}
abbr.sup {
	font-size: unset;
	font-feature-settings: inherit;
	letter-spacing: inherit;
}
abbr.sup > sup {
	/* Technically we can just use ordn (not sups), but Lato's ordn glyphs are the wrong size (not the same as Unicode ordinal a/o) */
	font-feature-settings: inherit;
	font-size: 66%;
	font-weight: 700; /* XXX should be 757 but Lato isn't variable */
	position: relative;
	bottom: 1.3ex;
}
footer#footnotes .fn em:lang(yue-HK) abbr.sup > sup,
footer#footnotes .fn em:lang(zh-HK) abbr.sup > sup,
x-textblock h1 em:lang(yue-HK) abbr.sup > sup,
x-textblock h1 em:lang(zh-HK) abbr.sup > sup,
x-textblock h2 em:lang(yue-HK) abbr.sup > sup,
x-textblock h2 em:lang(zh-HK) abbr.sup > sup,
x-textblock h3 em:lang(yue-HK) abbr.sup > sup,
x-textblock h3 em:lang(zh-HK) abbr.sup > sup,
x-textblock dd em:lang(yue-HK) abbr.sup > sup,
x-textblock dd em:lang(zh-HK) abbr.sup > sup,
x-textblock li em:lang(yue-HK) abbr.sup > sup,
x-textblock li em:lang(zh-HK) abbr.sup > sup,
x-textblock blockquote em:lang(yue-HK) abbr.sup > sup,
x-textblock blockquote em:lang(zh-HK) abbr.sup > sup,
x-textblock p em:lang(yue-HK) abbr.sup > sup,
x-textblock p em:lang(zh-HK) abbr.sup > sup,
section#bio dt abbr.sup > sup,
section#contact dt abbr.sup > sup {
	font-weight: 900;
}
