:root {
	--body-bg: #f9f9f9;
	--intro-bg: #303030;

	--text: #0a0f14;
	--nav-a: #0a0f14;
	--h1: #777;
	--h1-sof: #777;
	--intro-h2: #faefde;
	--body-h2: #0a0f14;
	--dt: #4A4A4A;

	--max-width: 62.5em;
	--line-height: 1.6;
	--font-size: 1.17rem;

	--a-background: #303030;
}

@media (prefers-color-scheme: dark) {
	:root {
		--body-bg: #212121;
		--text: #cdc7c2;
		--h1: #777;
		--h1-sof: #ffd787;
		--nav-a: #ffd787;
		--a-background: #ffd787;
		--intro-h2: #cdc7c2;
		--body-h2: #faefde;
		--dt: #faefde;
	}
}


* {
	box-sizing: border-box;

	font-family: ui-sans-serif,system-ui,sans-serif;
}


body {
	background-color: var(--body-bg);
	color: var(--text);
	font-weight: normal;
	text-rendering: optimizeLegibility;

	margin-left: auto;
	margin-right: auto;
	max-width: var(--max-width);

	padding-left: 1.0em;
	padding-right: 1.0em;
}

body > nav {
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
	max-width: var(--max-width);
	font-weight: 300;
}

nav ul {
	list-style-type: none;
	position: relative;
	padding-left: 1em;
	padding-right: 1em;
	width: 33%;
	margin-left: 63%;
	float: left;
	margin-bottom: 0.25em;
	margin-top: 1em;
}

nav ul li {
	display: inline;
	text-align: right;
	float: right;
	margin-left: 1em;
}

body > nav a {
	color: var(--nav-a);
	text-decoration: none;
	font-weight: 300;
	font-size: 0.97rem;
}

body > header {
	text-transform: uppercase;
	text-align: center;
	color: var(--h1);
	margin-top: 0.5em;
	margin-bottom: 0.3em;
	font-size: 1.5em;
	font-weight: 900;
}

header span.sof {
	color: var(--h1-sof);
}

body > section#intro {
	background-color: var(--intro-bg);
	padding: 0.33em;
	margin-bottom: 1em;
}

body > section#intro h2 {
	color: var(--intro-h2);
	text-align: center;
	font-size: 0.95em;
}

body > h2 {
	color: var(--body-h2);
	line-height: var(--line-height);
}

body > section#intro {
	max-width: var(--max-width);
}

body > p {
	line-height: var(--line-height);
	font-size: var(--font-size);
}

dt {
	color: var(--dt);
	text-transform: capitalize;
	font-weight: bold;
	line-height: 2.5;
}

dd {
	line-height: var(--line-height);
	font-size: var(--font-size);
}

body > p a {
	color: var(--text);
	text-decoration: none;
	background: linear-gradient(0deg, var(--a-background), var(--a-background)) no-repeat right bottom / 0 var(--bg-h);
	transition: background-size 350ms;
	--bg-h: 2px;
}
body > p a:where(:hover, :focus-visible) {
	background-size: 100% var(--bg-h);
	background-position-x: left;
}

body > footer {
	margin-top: 2em;
	background-color: var(--intro-bg);
	color: var(--intro-h2);
	line-height: 1.5;
	max-width: var(--max-width);
}

body > footer table {
	padding: 1.5em;
	font-size: 0.90em;
	text-decoration: capitalize;
	line-height: 1.2;
}

footer table a {
	color: var(--intro-h2);
	text-decoration: none;
}
