:root {
	color-scheme: light;
	--bg: #f7f4ee;
	--fg: #1c1916;
	--muted: #5c564e;
	--rule: #d9d2c5;
	--link: #6b3a12;
	--nav: #2c261f;
	--th: #efeae1;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	/* Latin serifs first; CJK faces after so 梅山猪 is not tofu when Georgia has no glyphs. */
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
		"Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC",
		"Songti SC", "STSong", "SimSun", "Noto Serif", serif;
	line-height: 1.5;
}
.wrap {
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.25rem 1.25rem 4rem;
}
header {
	border-bottom: 1px solid var(--rule);
	padding-bottom: 0.85rem;
	margin-bottom: 1.75rem;
}
header .site {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.45rem;
}
nav {
	font-family: ui-sans-serif, system-ui, "Noto Sans CJK SC", "Noto Sans SC",
		"Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 0.92rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.1rem;
}
nav a { color: var(--nav); }
nav a[aria-current="page"] {
	font-weight: 600;
	text-decoration: none;
	color: var(--fg);
}
h1, h2, h3, h4 {
	line-height: 1.2;
	font-weight: 650;
}
h1 { font-size: 2.1rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.5rem; }
p, li { color: var(--fg); }
a { color: var(--link); }
code {
	font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
	font-size: 0.86em;
}
hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2rem 0;
}
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.92rem;
	font-family: ui-sans-serif, system-ui, "Noto Sans CJK SC", "Noto Sans SC",
		"PingFang SC", "Microsoft YaHei", sans-serif;
}
th, td {
	border: 1px solid var(--rule);
	padding: 0.4rem 0.55rem;
	text-align: left;
	vertical-align: top;
}
th { background: var(--th); }
.index-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.index-list li {
	border-bottom: 1px solid var(--rule);
	padding: 0.45rem 0;
}
.index-list a { text-decoration: none; }
.index-list a:hover { text-decoration: underline; }
.note {
	color: var(--muted);
	font-size: 0.95rem;
}
@media (max-width: 640px) {
	html { font-size: 16px; }
	.wrap { padding: 1rem 0.9rem 3rem; }
	h1 { font-size: 1.7rem; }
}
