:root {
	color-scheme: light dark;
}

html {
	background-color: #BAADC5;
}

body {
	max-width: 50rem;
	margin: auto;
	font-family: sans-serif;
	font-size: 11pt;
	background-color: white;
}

section {
	margin-top: 2rem;
}

header, footer {
	background-color: #D9CBFA;
	padding: 0.1rem;
}

h1 {
	text-align: center;
}

h1, h2 {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

h3 {
	margin-top: 1.5rem;
}

h1, h2, h3, p, pre, table {
	margin-left: 1rem;
	margin-right: 1rem;
}

ul {
	margin-right: 1rem;
}

p.date {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: small;
}

q {
	font-style: italic;
}

footer {
	margin-top: 2rem;

	p {
		margin: 0.5rem;
		text-align: center;
	}
}

img {
	border: 2px solid gray;
	margin: 1rem;
}

header img {
	float: right;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

pre {
	text-wrap: wrap;
	background-color: #f7f7f7;
	padding: 0.2rem;
}

table {
	table-layout: fixed;
	border-collapse: collapse;
}

th, td {
	border: 1px solid lightgray;
	padding: 0.2rem;
}

span.size {
	color: #717171;
}

@media (prefers-color-scheme: dark) {
	html {
		background-color: #453C4B;
	}
	body {
		background-color: #23192A;
	}
	header, footer {
		background: #6D5B99;
	}
	span.size {
		color: #A2A2A2;
	}
	th, td {
		border-color: darkgray;
	}
	pre {
		background-color: #383838;
	}
}
