@font-face {
	font-family: 'Bitstream Vera Sans Mono';
	src: url('/fonts/VeraMono.eot');
	src: local('Bitstream Vera Sans Mono'), url('/fonts/VeraMono.eot?#iefix') format('embedded-opentype'), url('fonts/VeraMono.woff2') format('woff2'), url('/fonts/VeraMono.woff') format('woff'), url('/fonts/VeraMoIt.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Bitstream Vera Sans Mono';
	src: url('/fonts/VeraMoIt.eot');
	src: local('Bitstream Vera Sans Mono Oblique'), url('/fonts/VeraMoIt.eot?#iefix') format('embedded-opentype'), url('fonts/VeraMoIt.woff2') format('woff2'), url('/fonts/VeraMoIt.woff') format('woff'), url('/fonts/VeraMoIt.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'Bitstream Vera Sans Mono';
	src: url('/fonts/VeraMoBd.eot');
	src: local('Bitstream Vera Sans Mono Bold'), url('/fonts/VeraMoBd.eot?#iefix') format('embedded-opentype'), url('fonts/VeraMoBd.woff2') format('woff2'), url('/fonts/VeraMoBd.woff') format('woff'), url('/fonts/VeraMoBd.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Bitstream Vera Sans Mono';
	src: url('/fonts/VeraMoBI.eot');
	src: local('Bitstream Vera Sans Mono Bold Oblique'), url('/fonts/VeraMoBI.eot?#iefix') format('embedded-opentype'), url('fonts/VeraMoBI.woff2') format('woff2'), url('/VeraMoBI.woff') format('woff'), url('/fonts/VeraMoBI.ttf') format('truetype');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: 'DINSchablonierschrift';
	src: url('DINSchablonierschrift-Regular.eot');
	src: url('DINSchablonierschrift-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/DINSchablonierschrift-Regular.woff2') format('woff2'), url('DINSchablonierschrift-Regular.woff') format('woff'), url('DINSchablonierschrift-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body {
	background-color: #000;
	font-family: 'Bitstream Vera Sans Mono', monospace;
	color: #fff;
	max-width: 1200px;
	font-size: 80%;
	line-height: 1.4;
	margin: 0;
	padding: 1.75em 0 5em 3em;
	position: relative;
}

body::before,
section::before {
	display: block;
	content: '';
	background-image: url('crest.svg');
	background-size: 306px 396px;
	background-repeat: no-repeat;
	background-position: 98% 2em;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 1;
	transition: opacity 300ms linear;
}

section::before {
	position: absolute;
	top: -2000px;
	left: -2000px;
	background-position: 50% 2em;
	opacity: 0;
}

section {
	transition: all 300ms linear;
}

main {
	margin-right: 3em;
}

h1, h2, h3, h4, h5, h6, nav ul li {
	font-family: DINSchablonierschrift, sans-serif;
	font-weight: normal;
	text-transform: uppercase;
}

h1 {
	font-size: 400%;
	display: inline;
}

h1 + h2 {
	font-size: 250%;
	display: inline;
}

header > h2 + p {
	font-weight: bold;
	margin-bottom: 0;
}

nav {
	background: #fff;
	color: #000;
	padding: 0.2em 1em;
	margin: 1.5em 0 0.5em 0;
	vertical-align: center;
	line-height: 1.6;
}

nav ul {
	padding: 0 0 0 1em;
	display: inline;
	list-style-type: none;
}

nav::before {
	display: inline-block;
	content: "Filter by:";
	vertical-align: top;
	padding-top: 0.45em;
	color: #999;
}

nav li {
	display: inline;
}

nav a {
	background: #fff;
	vertical-align: center;
	font-size: 150%;
	display: inline-block;
	padding: 0;
	margin: 0 1em;
	color: #000;
	border: 0;
}

nav a:hover {
	background: transparent;
	transform: scale3d(1.2,1.2,1) rotate(-3.5deg);
	border: 0;
}

a {
	color: #fff;
	transition: all 120ms linear;
	text-decoration: none;
	background: #444;
	padding: 0 2px;
	margin: 0 -2px;
}

a:hover {
	color: #111;
	background: #eee;
}

pre {
	margin: 1.4em 0 1.4em;
}

pre a {
	background: transparent;
	padding: 0;
	margin: 0;
}

pre a:hover {
	background: transparent;
}

section {
	display: inline-block;
	width: 47.5%;
	vertical-align: top;
	box-sizing: border-box;
	margin: 0 3.5% 0 0;
}

section + section {
	margin: 0;
}

div {
	margin-top: 4em;
	box-sizing: border-box;
	position: relative;
}

div img,
video {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

video {
	display: block;
	margin: 1.4em auto;
}

div::before {
	display: block;
	position: absolute;
	top: 0.4em;
	right: 0;
	width: auto;
	padding: 0 0.5em;
	color: #333;
	background: #fff;
	text-align: left;
}

.about::before {
	content: "about";
}

.event::before {
	content: "event";
}

.resource::before {
	content: "resource";
}

h1 {
	font-size: 4em;
}

h1 > span > span {
	display: inline-block;
	animation-name: out;
	animation-delay: 1s;
	animation-iteration-count: 1;
	animation-timing-function: linear;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}

@keyframes out {
	0% {
		color: #fff;
	}
	65% {
		color: #000;
		font-size: 100%;
	}
	100% {
		color: #000;
		font-size: 0%;
	}
}

h1 > span::after {
	display: inline-block;
	color: #fff;
	opacity: 0;
	content: ".";
	animation-name: in;
	animation-delay: 1s;
	animation-iteration-count: 1;
	animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
	animation-duration: 3000ms;
	animation-fill-mode: forwards;
	font-size: 100%;
}

@keyframes in {
	0% {
		color: #fff;
		opacity: 0;
		font-size: 100%;
	}
	50% {
		color: #fff;
		opacity: 1;
		font-size: 100%;
	}
	100% {
		color: #fff;
		opacity: 1;
		font-size: 100%;
	}
}

blockquote {
	box-sizing: border-box;
	margin: 0.2em 0 0 0;
	background: #313131;
	border: 1px solid #212121;
	padding: 0 1.5em 0 1.5em;
	margin-bottom: 1em;
}

blockquote + cite {
	display: block;
	text-align: right;
	padding-right: 2em;
}

body main > a:last-of-type {
	display: block;
	position: fixed;
	bottom: 48px;
	right: 48px;
	width: 48px;
	padding-top: 48px;
	height: 0;
	background: url('https://transist.or.at/logo.svg');
	background-repeat: no-repeat;
	transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 1ms linear;
	filter: invert(100%);
	overflow: hidden;
}

body main > a:last-of-type:hover {
	opacity: 1;
	transform: scaleY(-1);
	width: 64px;
	padding-top: 64px;
	right: 40px;
	bottom: 40px;
}

main > aside > div {
	position: fixed;
	top: -100%;
	width: 100%;
	background: rgba(255,255,255,.7);
	width: 100%;
	opacity: 0;
	transition: opacity .5s ease-in-out;
	overflow: hidden;
	z-index: 5;
}

main > aside > div img {
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 0%;
	max-width: 0%;
	border: 3px solid white;
	box-shadow: 0px 0px 8px rgba(0,0,0,.3);
	box-sizing: border-box;
	transition: .5s ease-in-out;
}

main > aside > div:target {
	margin: 0;
	opacity: 1;
	top: 0;
	left: 0;
	bottom: 0;
}

main > aside > div:target a {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: transparent;
}

main > aside > div:target img {
	max-height: 100%;
	max-width: 100%;
}

@media (max-width: 1550px) {
	body::before {
		opacity: 0;
	}
	section + section {
		position: relative;
		padding-top: 30em;
	}
	section + section::before {
		top: 0;
		left: 0;
		opacity: 1;
	}
}

@media (max-width: 1330px) {
	body > main > a:last-of-type {
		position: absolute;
		top: 382px;
		right: auto;
		left: calc(89.5% + 8px);
	}
	body > main > a:last-of-type:hover {
		top: 374px;
		right: auto;
		left: 89.5%;
	}
}

@media (max-width: 1000px) {
	html body {
		margin: 0;
		padding: 1em 0em 4.5em 1em;
	}
	body main {
		margin-right: 1em;
	}
	body section {
		position: relative;
		padding-top: 30em;
	}
	body section + section {
		padding-top: 0;
	}
	body section::before {
		top: 0;
		left: 0;
		opacity: 1;
	}
	body section + section::before {
		top: 0;
		left: -2000px;
		opacity: 0;
	}
	body section, body section + section {
		margin: 0 auto;
		display: block;
		width: 100%;
		max-width: 550px;
	}
	body nav::before {
		content: 'Filter:';
	}
	body nav ul {
		padding: 0;
	}
	body nav a {
		margin: 0 0.2em;
	}
	body h1 > span > span {
		display: none;
		animation-name: none;
	}
	body h1 > span::after {
		animation-name: none;
		opacity: 1;
	}
	html body > main > a:last-of-type {
		top: auto;
		left: auto;
		right: 13px;
		bottom: 13px;
	}
	html body > main > a:last-of-type:hover {
		top: auto;
		left: auto;
		right: 5px;
		bottom: 5px;
	}
}
