@font-face {
	font-family: 'TeX Gyre Thermes';
	font-style: normal;
	font-weight: normal;
	src:
		local('TeX Gyre Thermes'),
		url('texgyretermes-regular.otf') format('opentype');
	unicode-range: U+0000-00FF;
}

@font-face {
	font-family: 'TeX Gyre HerosCn';
	font-style: normal;
	font-weight: bold;
	src:
		local('TeX Gyre HerosCn'),
		url('texgyreheroscn-bold.otf') format('opentype');
	unicode-range: U+0000-00FF;
}

@font-face {
	font-family: 'TeX Gyre Heros';
	font-style: normal;
	font-weight: bold;
	src:
		local('TeX Gyre Heros'),
		url('texgyreheros-regular.otf') format('opentype');
	unicode-range: U+0000-00FF;
}

@font-face {
	font-family: 'Courier Prime, Regular';
	font-style: normal;
	font-weight: normal;
	src:
		local('Courier Prime, Regular'),
		url('CourierPrime-Regular.ttf') format('truetype');
	unicode-range: U+0000-00FF;
}

body {
	width: 60%;
	margin: 0 auto 0 auto;
	font-family: 'TeX Gyre Thermes', 'Times New Roman', serif;
	line-height: 1.6;
	color: #000000;
	background-color: #ffffff;
	font-size: 1.27rem;
}

a {
	color: inherit;
}

header,
footer,
article {
	margin: 3rem 2rem;
}

h1,
h2 {
	font-family: 'TeX Gyre HerosCn', 'Arial Condensed', 'Arial', sans-serif;
	font-weight: bold;
	margin: 1rem 0;
}

h1,
article h2 {
	font-size: 1.4rem;
}

article h1 {
	font-size: 1.8rem;
}

article time {
	font-family: 'TeX Gyre HerosCn', 'Arial Condensed', 'Arial', sans-serif;
	font-weight: bold;
}

footer {
	text-align: center;
}

li code,
p code {
	padding: 0 0.3333rem;
	background-color: #eeeeee;
}

.flex {
	display: flex;
}

.block_container_w100 {
	display: block;
	width: 100%;
}

canvas {
	width: 100%;
	border: thin solid #000000;
	color: #000000;
}

label,
button {
	display: block;
	font-family: 'TeX Gyre Heros', 'Arial', sans-serif;
	font-size: 1.0rem;
}

button {
	display: inline-block;
	padding: 0.3333em;
}

pre {
	padding: 0.6666rem;
	overflow: auto;
	line-height: 1.0;
	border: thin solid #000000;
}

img {
	width: 100%;
}

img.icon {
	display: inline;
	width: 1em;
}

hr {
	margin: 2.0rem 0;
	border: none;
}

code {
	font-family: 'Courier Prime, Regular', 'Courier New', monospace;
	font-size: 1.0rem;
}

code span.kt,
code span.k {
	color: #0000ff;
}

code span.c1 {
	color: #008000;
}

.footnotes {
	font-size: 0.95rem;
}

.footnotes code {
	font-size: 0.85rem;
}

#home_container {
	display: inline-flex;
	margin: 0;
}

#home_container p,
#home_container article {
	margin-top: 0;
}

#home_sidebar {
	font-family: 'TeX Gyre HerosCn', 'Arial Condensed', 'Arial', sans-serif;
	font-weight: bold;
	background-color: #006060;
	padding: 2rem 2rem 2rem 2rem;
	font-size: 1.2rem;
	color: white;
}

#home_sidebar ul {
	padding: 0 1em;
	margin: 0;
}

#microblogging {
	background-color: #006060;
	color: #ffffff;
	font-family: 'TeX Gyre Heros', 'Arial', sans-serif;
	font-size: 1.0rem;
	line-height: 1.6;
}

#microblogging time {
	font-size: 1.2rem;
	line-height: 1.6;
	font-weight: normal;
}

@media screen {
	@media (max-width: 1200px) {
		body {
			width: 720px;
		}
	}

	@media (max-width: 720px) {
		body {
			width: 100%;
			margin: 0;
		}

		#home_container {
			display: inline;
			margin: 0;
		}

		#home_sidebar {
			text-align: center;
		}

		#home_sidebar ul li {
			list-style-type: none;
			display: inline-block;
			margin: 0 0.25em;
		}
	}
}

@media print {
	body {
		width: 100%;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		color: #ffffff;
		background-color: #060606;
		/* TODO, An Encarta from the era had pure white on black */
	}

	li code,
	p code {
		background-color: #131313;
	}

	canvas {
		border: thin solid #ffffff;
		color: #ffffff;
	}

	pre {
		border: thin solid #ffffff;
	}

	code span.kt,
	code span.k {
		color: #ff60a0;
	}

	code span.c1 {
		color: #409060;
	}
}
