body, li p {
	font-family: 'Merriweather', serif;
}

h1, h2, h3, h4, h5, h6, header {
	text-transform: lowercase;
	font-family: 'Alegreya Sans SC', sans-serif;
}

header {
	font-weight: bold;
}

html {
	font-size: 18px;
}

body > * {
	font-size: 100%;
	margin-left: 7.5rem;
	margin-right: 7.5rem;
}

@media all and (max-width: 840px) {
	html {
		font-size: 17px;
	}
	body > * {
		margin-left: 5.5rem;
		margin-right: 5.5rem;
	}
}
@media all and (max-width: 760px) {
	body > * {
		margin-left: 2.5rem;
		margin-right: 2.5rem;
	}
}
@media all and (max-width: 580px) {
	html {
		font-size: 16px;
	}
	body > * {
		margin: 0.7rem 1.5rem 0 1.5rem;
	}
}
@media all and (min-width: 580px) {
	.img-desktop-width-50 {
		width: 50%;
	}
	.img-desktop-width-75 {
		width: 75%;
	}
}

/* reset */
* {
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
}

body {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 1000px;
	min-height: 100%;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'kern' 1, 'liga' 1;
}

div.content {
	display: block;
	padding: 1rem 0 5rem 0;
}

header {
	display: block;
	padding: 0.5rem 0 0.5rem 0;
	border-bottom: 0.10em solid black;
}

header a {
	color: #777;
}

header .logo {
	float: left;
}

header nav {
	display: inline;
}

footer {
	display: block;
	padding: 0.5rem 0 5.5rem 0;
	text-align: center;
}

@media all and (max-width: 520px) {
	div.content {
		padding: 0;
	}
}

h1 {
	display: block;
	font-size: 170%;
	line-height: 1.1;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
	padding-top: 0.02em;
	hyphens: none;
}

p {
	margin-bottom: 1em;
	line-height: 1.45;
}

ul, ol {
	margin-bottom: 1em;
	padding-left: 1em;
}

li {
	line-height: 1.75;
}

table {
	table-layout: fixed;
	font-size: smaller;
	margin-bottom: 1.5em;
	border-collapse: collapse;
	width: 95%;
}

table tr + tr {
	border-top: 1px solid #ccc;
}

table td + td {
	border-left: 1px solid #ccc;
}

table td {
	padding: 0.4em;
	text-align: center;
	hyphens: none;
}

table th {
	font-weight: normal;
	text-transform: uppercase;
	font-size: 95%;
	padding: 0.3rem 0.5rem 0.3rem 0.5rem;
	line-height: 1.05;
}

img {
	width: 100%;
	border-radius: 25px;
}

.icon-social:after {
	content: none;
}

.icon-social:hover {
	background: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}

a:active {
	color: #777;
}

a:hover {
	background: #fbf3f3;
	border-radius: 10px;
}

a:after {
	position: relative;
	content: "\FEFF°";
	margin-left: 0.10em;
	font-size: 80%;
	top: -0.30em;
	left: -0.1em;
	color: #d21c1c;
}

code {
	font-size: 95%;
	hyphens: none;
}

pre {
	font-size: 0.8rem;
	background: #f5f7f9;
	padding: 1em;
	margin-bottom: 20px;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

figcaption {
	font-weight: 400;
	font-style: italic;
	font-size: 0.7em;
	line-height: 1.3;
	color: #666665;
	text-align: center;
}

blockquote {
	font-style: italic;
	font-size: 1.1em;
	margin: 0.7em 10px 0;
	padding: 1.2em 20px;
	quotes: "\201C" "\201D" "\2018" "\2019";
}

blockquote:before {
	color: #ccc;
	content: open-quote;
	font-size: 3em;
	line-height: 0.1em;
	margin-right: 0.25em;
	vertical-align: -0.4em;
}

blockquote:after {
	color: #ccc;
	content: close-quote;
	font-size: 3em;
	line-height: 0.1em;
	margin-right: 0.25em;
	vertical-align: -0.4em;
}

blockquote p {
	display: inline;
}

/* motion (see static/js/motion.js) */

canvas#ascii-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	pointer-events: none;
	z-index: -1;
}

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

.bear-glyph {
	display: inline-block;
}

.bear-eye {
	text-align: center;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
