body {
	--monospace: "Inconsolata", "Menlo", "Consolas", monospace;
	--ancillary-font: "Silkscreen", sans-serif;
	--ancillary-size: 12px;
	--text: #000;
	--background: #fffefc;
	--link: #379300;
	--red: #ca0000;
	--dark-text: #efefef;
	--maxwidth: 900px;
	--wide-maxwidth: 1200px;

	font-family: "Crimson", "Georgia", serif;
	margin: 0;
	background-color: var(--background);
	color: var(--text);
	font-size: 17px;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

.dark, #lightbox {
	--text: var(--dark-text);
	--background: #000;
	--link: #54cb0a;
}

body > *, body .stripe {
	max-width: var(--maxwidth);
	margin-left: auto;
	margin-right: auto;
}

body.wide > * { max-width: var(--wide-maxwidth); }

footer {
	position: relative;
	padding: 15px 0 80px;
	font-size: 0.7em;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover, a:active, .a:hover, .a:active { text-decoration: underline; }
svg.logo, svg.icon { fill: currentcolor; }

.stripe {
	margin: 0 0 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	display: flex;
}

.stripe a { display: inline-block; }
.stripe.center { justify-content: center; }

.stripe .logo {
	color: #4eba0f;
	float: left;
	height: 40px;
	width: 110px;
}

.stripe .subsection {
	line-height: 1em;
	align-self: center;
	display: inline-block;
	font-size: 0.8em;
	margin: 2px 0 0 6px;
	font-family: var(--ancillary-font);
	letter-spacing: -1px;
}

.icon {
	height: 50px;
	display: inline-block;
}

.icon.text, .icon.small {
	height: 20px;
	width: 20px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	margin: 0 5px;
}

svg.icon.text { top: -2px; }

.icon.small {
	height: 15px;
	width: 15px;
	margin: 0 3px;
	top: -2px;
}

h1 {
	font-size: 4em;
	font-weight: 600;
	letter-spacing: -0.5pt;
	margin: 0 0 -10px;
	clear: both;
}

h2 {
	font-size: 1.8em;
	font-weight: 400;
	letter-spacing: -0.4pt;
	margin: 0 0 5px;
	clear: both;
}

h3 {
	font-size: 1.35em;
	font-weight: 400;
	margin: 5px 0 0;
}

h4 { margin: 0; }
.center { text-align: center; }
h2.center { margin: 50px 0 10px; }
p { margin: 1em 0; }
ul, ol { padding: 0 0 0 30px; }
li { padding: 5px 0; }

.iconList {
	list-style: none;
	padding-left: 15px;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	margin: 20px -20px 30px;
}

.gallery figure {
	width: 20%;
	margin: 0;
	box-sizing: border-box;
	padding: 20px;
}

.gallery figcaption {
	text-align: left;
	padding: 20px 0 0;
}

.gallery.vertical {
	display: block;
	column-count: 3;
	column-width: 150px;
	column-gap: 7em;
	margin: -10px 0 30px;
}

.gallery.vertical > a, .gallery.vertical article {
	width: 100%;
	padding: 20px 0;
	display: inline-block;
	color: inherit;
}

.gallery img, .gallery.vertical img {
	height: auto;
	width: 100%;
}

.gallery.vertical p { margin: 0; }

.nowrap, footer .top { white-space: nowrap; }
.break { word-break: break-all; }
.hidden, .nojs .jsonly { display: none; }

.warning {
	color: var(--red);
	margin: 0 5px 0 -3px;
}

.close {
	display: block;
	text-align: right;
	padding: 0 0 15px;
	cursor: pointer;
}

#lightbox {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	padding: 20px 0 0;
	transition: transform 0.3s steps(5, end);
	transform: scale(1, 1);
	overflow: scroll;
	background: var(--background);
	color: var(--text);
}

#lightbox[data-showat="left"] { padding: 60px 0 0; }

#lightbox .content {
	max-width: var(--maxwidth);
	margin: auto;
	padding: 0 20px;
	overflow: hidden;
}

#lightbox .content > * { clear: none; }

#lightbox .content h2 {
	transform: scale(1.5, 1) translate(-5%, 0);
	word-break: break-word;
	letter-spacing: -2px;
	font-size: 3em;
	line-height: 0.9em;
	margin: 8px 20% 0 2px;
	box-sizing: border-box;
}

#lightbox[data-showat="top"] .content h2 {
	transform: scale(1.5, 1) translate(16%, 0);
}

#lightbox #displayImage { 
	width: 100%; 
	height: auto;
}

#lightbox[data-showat="left"] #displayImage {
	min-width: 33%;
	max-width: 50%;
	float: left;
	margin: 5px 20px 0 0;
	padding-bottom: 40px;
}

#lightbox[hidden] {
	display: block;
	transform: scale(0.2, 0);
}

#lightbox #close {
	float: right;
	cursor: pointer;
	z-index: 1000;
	position: relative;
	margin-bottom: 10px;
}

#lightbox #close svg {
	color: var(--red);
	top: 0;
}

body.noscroll {
	overflow: auto;
	height: 100%;
	position: fixed;
	left: 0;
	right: 0;
}

ul.pages {
	padding: 0;
	margin: 0;
	list-style-type: none;
	display: flex;
}

ul.pages li {
	flex-grow: 1;
	text-align: center;
}

ul.pages .prev { text-align: left; }
ul.pages .next { text-align: right; }

ul.pages li a[aria-disabled="true"] {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

ul.pages #pageList {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	padding: 0 8px 0 0;
	margin: 0;
	background: transparent;
	outline: none;
	background-image: url("/images/icons/option.svg");
	background-repeat: no-repeat;
	background-position: top 4px right 0;
	background-size: 10px;
	color: var(--link);
}

.dark ul.pages #pageList { background-image: url("/images/icons/option_dark.svg"); }
ul.pages #pageList:before { content: "Page"; }

@media screen and (max-width: 1250px) and (min-width: 950px) {
	body.wide > *, body.wide .stripe {
		margin-left: 30px;
		margin-right: 30px;
	}
}

@media screen and (max-width: 950px) {
	body > *, body .stripe {
		margin-left: 25px;
		margin-right: 25px;
	}
}

@media screen and (max-width: 650px) {
	body > *, body .stripe {
		margin-left: 20px;
		margin-right: 20px;
	}
		
	.gallery { margin: 20px 0 30px; }
	
	.gallery figure { width: 33%; }
	
	.gallery.large figure {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	
	#lightbox[data-showat] .content h2 {
		transform: scale(1.5, 1) translate(0, 0);
		transform-origin: left;
		margin-right: 20%;
	}
	
	#lightbox[data-showat="left"] { padding: 20px 0 0; }
	
	#lightbox[data-showat="left"] #displayImage {
		min-width: 100%;
		max-width: 100%;
		float: none;
		margin: 0;
		padding: 0;
		/*basically, don't show at the left. very semantic!*/
	}
	
	footer { padding: 10px 0 50px; }
}

/* Font importing*/
@font-face {
	font-family: "Crimson";
	font-style: normal;
	font-weight: 400;
	src: url("/fonts/crimsonroman.woff2") format("woff2");
}

@font-face {
	font-family: "Crimson";
	font-style: italic;
	font-weight: 400;
	src: url("/fonts/crimsonitalic.woff2") format("woff2");
}

@font-face {
	font-family: "Crimson";
	font-style: normal;
	font-weight: 600;
	src: url("/fonts/crimsonsemibold.woff2") format("woff2");
}

@font-face {
	font-family: "Crimson";
	font-style: italic;
	font-weight: 600;
	src: url("/fonts/crimsonsemibolditalic.woff2") format("woff2");
}

@font-face {
	font-family: "Crimson";
	font-style: normal;
	font-weight: 700;
	src: url("/fonts/crimsonbold.woff2") format("woff2");
}

@font-face {
	font-family: "Crimson";
	font-style: italic;
	font-weight: 700;
	src: url("/fonts/crimsonbolditalic.woff2") format("woff2");
}

@font-face {
	font-family: "Inconsolata";
	src: url("/fonts/inconsolata.woff2") format("woff2");
	unicode-range: U+000-5FF;
}

@font-face {
	font-family: "Silkscreen";
	font-style: normal;
	font-weight: 400;
	src: url("/fonts/silkscreen.woff2") format("woff2");
	unicode-range: U+000-5FF;
}
