/*
	中文排版适配 · Editorial 中文版
	在 main.css 之后引入，只覆盖字体与中文阅读相关的度量，不改任何布局
*/

/* 正文字体：拉丁字符用 Open Sans（如本机已安装），中文走系统字体 */
body, input, select, textarea {
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
		"Source Han Sans SC", sans-serif;
}

/* 标题字体：Roboto Slab 只覆盖拉丁字母，中文用宋体类字体 */
h1, h2, h3, h4, h5, h6,
#menu ul {
	font-family: "Roboto Slab", "Songti SC", "STSong", "Noto Serif SC",
		"Source Han Serif SC", "SimSun", serif;
}

/* 中文标题不需要西文那么大的字距；行高也要比 1.3 松一点 */
h1, h2, h3, h4, h5, h6 {
	letter-spacing: 0.02em;
}

h1 {
	line-height: 1.45;
}

h2, h3, h4, h5, h6 {
	line-height: 1.55;
}

/* 侧栏菜单原本按大写拉丁字母设了 0.075em 字距，中文收窄一些 */
#menu ul {
	letter-spacing: 0.05em;
}

/* 中文正文的舒适行高 */
p, blockquote, dd, td {
	line-height: 1.8;
}

#main ul li,
#main ol li {
	line-height: 1.8;
}

/* 代码块里的中文回退到等宽中文字体 */
code, pre {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
		"Courier New", "Microsoft YaHei", monospace;
}
