@media (prefers-color-scheme: dark) {
	a {
		color: #fff;
	}

	article {
		background-color: #333;
	}
}

@media (prefers-color-scheme: light) {
	body {
		background-color: #ddd;
	}

	a {
		color: #000;
	}

	article {
		background-color: #fff;
	}
}

@media (prefers-color-scheme: no-preference) {
	a {
		color: #fff;
	}

	article {
		background-color: #333;
	}
}

* {
	margin: 0;
}

body {
	font-family: 'Roboto Condensed';
	height: 100%;
}

h1 {
	font-size: 1.6em;
}

a {
	font-weight: bold;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

header:first-of-type {
	background-color: #333;
	color: #fff;
	height: 2em;
	padding: 0 20px 24px;
	margin-bottom: 24px;
	overflow: hidden;
	box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

footer:last-of-type {
	padding: 10px 28px;
	overflow: hidden;
	display: block;
	background-color: #333;
	font-size: 12px;
	text-align: center;
	color: white;
	box-shadow: 0 -1px 2px 0 rgba(60,64,67,.3), 0 -1px 3px -1px rgba(60,64,67,.15);
}

footer:last-of-type nav {
	color: #aaa;
	margin: auto;
}

footer:last-of-type nav span a {
	color: #aaa;
}

footer:last-of-type nav span a {
	text-decoration: none;
}

footer:last-of-type nav span a:hover {
	text-decoration: underline;
}

footer:last-of-type nav span:first-of-type:before {
	content: none;
}

footer:last-of-type nav span:before {
	content: " | ";
}

article {
	flex-grow: 1;
	margin: 0 24px 24px 24px;
	padding: 0 28px 28px 28px;
	box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

article h1 {
	padding-top: 28px;
}

#logo{
	font-size: 2em;
	font-family: 'Roboto Mono';
	font-weight: bold;
	text-shadow: 0px 1px 0px #c7c8ca, 0px 2px 0px #b1b3b6, 0px 3px 0px #9d9fa2, 0px 4px 0px #8a8c8e, 0px 5px 0px #77787b, 0px 6px 0px #636466, 0px 7px 0px #4d4d4f, 0px 8px 7px #001135;
}

#logo a {
	color: #fff;
	text-decoration: none;
}

#logo sup {
	margin-left: 2px;
}

#page {
	display: flex;
	min-height: 100vh;
	min-height: -webkit-calc(100vh - 2em - 48px);
	min-height: -moz-calc(100vh - 2em - 48px);
	min-height: calc(100vh - 2em - 48px);
	flex-direction: column;
	justify-content: space-between
}

.noselect {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.speech-bubble {
	color: #000;
	position: relative;
	max-width: 30em;
	background-color: #fff;
	padding: 1.125em 1.5em;
	font-size: 1.25em;
	border-radius: 1rem;
	box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.speech-bubble::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	bottom: 100%;
	left: 50%;
	left: -webkit-calc(50% - .75rem);
	left: -moz-calc(50% - .75rem);
	left: calc(50% - .75rem);
	border: .75rem solid transparent;
	border-top: none;
	border-bottom-color: #fff;
	filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, .1));
}
