:root {
	color-scheme: light dark;
	--svg-draw: light-dark(#000, #ddd);
	--svg-grid: #888;
	--svg-p50: light-dark(#00f, #59d);
	--svg-p90: #ffa500;
	--svg-p98: #f00;
	--svg-freeze: #ff00001a;
}

html {
	font-family: sans-serif;
	font-size: 12pt;
}

html.dark {
	color-scheme: dark only;
}

html.light {
	color-scheme: light only;
}

body {
	background: light-dark(#fff, #222);
	color: light-dark(#000, #ddd);
}

header,footer,main {
    margin: auto;
    width: 11.45in;
}

header {
	text-align: center;
}

footer {
	margin-top: 3rem;
	font-size: 10pt;
	color: #888;
}

a {
	color: light-dark(#00a, #59d);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

footer a {
	color: light-dark(#55a, #7be);
}

img {
	width: 100%;
}

h1 {
	font-size: 2rem;
	font-weight: bold;
	text-decoration: none;
	margin: 1em 0 1em;
	page-break-after: avoid;
	break-after: avoid;
}

header h1 {
	margin-top: 0;
}

h2 {
	font-size: 1.5rem;
	font-weight: bold;
	text-decoration: underline;
	margin: 1em 0 1em;
	page-break-after: avoid;
	break-after: avoid;
}

p {
	margin: 0.5rem 0;
}

.theme-select {
	position: fixed;
	left: 0;
	bottom: 0;
	font-size: 0.8rem;
	padding: 1rem;
	backdrop-filter: blur(8px);
}

.theme-select button {
	appearance: none;
	border: 1px solid #888;
	border-radius: 0.125rem;
	background-color: light-dark(#ccc, #333);
	color: light-dark(#333, #ccc);
	margin: 0 0.125rem;
}

.theme-select button:hover,button.selected {
	background-color: light-dark(#fff, #555);
}

@media only print {
	html {
		color-scheme: light only;
	}

	header,footer,main {
		width: 100%;
	}
	nav {
		display: none;
	}
	a[href]:after {
		content: " \2329" attr(href) "\232a ";
	}
	h1,h2 {
	}
	.theme-select {
		display: none;
	}
}

