@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: url(asset/MaterialIcons-Regular.eot); /* For IE6-8 */
	src: local('Material Icons'),
		local('MaterialIcons-Regular'),
		url(asset/MaterialIcons-Regular.woff2) format('woff2'),
		url(asset/MaterialIcons-Regular.woff) format('woff'),
		url(asset/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons, .mico, i {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;  /* Preferred icon size */
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;
	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;
	/* Support for IE. */
	font-feature-settings: 'liga';
	/* Disable selection */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	src: url(asset/Montserrat-Light.ttf) format('truetype'), local('Montserrat Light');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	src: url(asset/Montserrat-SemiBold.ttf) format('truetype'), local('Montserrat SemiBold');
}

@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 400;
	src: url(asset/RobotoCondensed-Regular.ttf) format('truetype'), local('Roboto Condensed');
}
@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 100;
	src: url(asset/RobotoCondensed-Light.ttf) format('truetype'), local('Roboto Condensed Light');
}
@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 700;
	src: url(asset/RobotoCondensed-Bold.ttf) format('truetype'), local('Roboto Condensed Bold');
}

/* width */
*::-webkit-scrollbar,
*::-webkit-scrollbar-thumb {
  background-clip: padding-box;
	width: 4px;
	height: 4px;
	border-radius: 20px;
}
*::-webkit-scrollbar-thumb {
	background-color: #ffffff30;
}
*:hover::-webkit-scrollbar-thumb {
	background-color: #ffffff80;
}

html {
	display: block;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	overflow: auto;
	font-family: 'Roboto Condensed';
	font-weight: 100;
	font-size: 18px;
}

body {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #242424;
}

a {
	color: #f0f0f0a0;
	transition: color 0.2s ease;
	text-decoration: none;
}
a:hover {
	color: #ffffff;
}

div.blackout {
	display: block;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: #00000040;
	opacity: 1;
	transition: opacity 0.2s ease, visibility 0s;
	transition-delay: 1s, 1s;
}

nav {
	display: inline-block;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 80px;
	box-sizing: border-box;
	border: 1px solid #000;
	/*direction: rtl;*/
	overflow-x: hidden;
	background-color: #000;
	box-shadow: 0 0 30px 0 #00000080;
	transition: width 0.2s ease;
	transition-delay: 1s;
	scrollbar-width: thin;
	scrollbar-color: #c0c0c0;
}
nav:not(:hover) {
	transition-delay: 0s;
}
nav:hover {
	width: 320px;
}
nav:not(:hover) > div.blackout,
div.blackout:active {
	visibility: hidden;
	opacity: 0;
	transition-delay: 0s, 0s;
}
nav:active {
	transition-delay: 0s;
	width: 80px;
}
nav:active > div.blackout {
	visibility: hidden;
	opacity: 0;
	transition-delay: 0s, 0s;
}

nav:active,
nav:active > div.blackout {
	transition-duration: 0s;
}

nav::-webkit-scrollbar {
	width: 2px;
	border-radius: 0;
}
nav::-webkit-scrollbar-thumb,
nav:hover::-webkit-scrollbar-thumb {
	background-color: #ffffff20;
	border-radius: 0;
}

nav:hover::-webkit-scrollbar {
	width: 4px;
}
nav:hover::-webkit-scrollbar-thumb {
	background-color: #ffffff80;
}

nav > a {
	display: block;
	position: relative;
	width: 100%;
	word-break: keep-all;
	white-space: nowrap;
	color: #aaa;
	background-color: transparent;
	box-sizing: border-box;
	border-right: 1px solid #000;
	/*direction: ltr;*/
	text-decoration: none;
	line-height: 80px;
	transition: color 0.2s ease, background 0.2s ease;
	font-family: 'Montserrat';
	font-weight: bold;
}
nav > a:hover {
	color: #fff;
	background-color: #ffffff20;
}
nav > a:active {
	color: #eee;
	background-color: #ffffff10;
}
nav > a > i {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
	line-height: 80px;
	font-size: 48px;
	vertical-align: middle;
	text-align: center;
}
nav > a > span {
	display: inline-block;
	position: relative;
	top: 1px;
	padding-left: 2px;
	padding-right: 10px;
	line-height: 80px;
	vertical-align: middle;
	font-size: 150%;
}
nav > a:not([href]) {
	border-right-width: 80px;
	background-color: #ffffff40;
	transition: color 0.2s ease, border 0.2s ease-out;
}
nav:not(:active):hover > a:not([href]) {
	border-right-width: 1px;
	transition: color 0.2s ease, border 1s ease-in;
}

section {
	display: block;
	position: fixed;
	top: 4px;
	bottom: 4px;
	left: 80px;
	right: 4px;
	overflow: auto;
	background: inherit;
	transition: left 0.3s ease, opacity 0.3s ease, visibility 0s;
	transition-delay: 0s, 0s, 0s;
}
section:not(#home):not(:target),
section:target ~ section#home {
	left: -200px;
	opacity: 0;
	visibility: hidden;
	transition-delay: 0s, 0s, 0.3s;
}
section > header {
	display: block;
	position: relative;
	padding: 26px 0 30px 25px;
	font-family: 'Montserrat';
	font-size: 200%;
	font-weight: normal;
	letter-spacing: 1px;
	color: #f0f0f0;
}

article {
	display: block;
	position: relative;
	left: 0px;
	width: 736px;
	background-image: url(asset/article-gradient.png);
	background-position: right;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	overflow: hidden;
	/*box-shadow:
		0 0 0 400px #24242480 inset,
		-800px 0 800px -400px #242424 inset;*/
	transition: left 0.3s ease-out, max-height 0.4s ease;
}
article:not(:last-of-type) {
	margin-bottom: 30px;
}
section:not(#home):not(:target) article,
section:target ~ section#home article {
	left: -800px;
	transition-delay: 0s, 0s !important;
}
article.closed {
	max-height: 74px !important;
}
article:nth-of-type(1) {transition-delay: .0s, 0s;}
article:nth-of-type(2) {transition-delay: .1s, 0s;}
article:nth-of-type(3) {transition-delay: .2s, 0s;}
article:nth-of-type(4) {transition-delay: .3s, 0s;}
article:nth-of-type(5) {transition-delay: .4s, 0s;}
article:nth-of-type(6) {transition-delay: .5s, 0s;}
article:nth-of-type(7) {transition-delay: .6s, 0s;}
article:nth-of-type(8) {transition-delay: .7s, 0s;}
article:nth-of-type(9) {transition-delay: .8s, 0s;}
article:nth-of-type(10) {transition-delay: .9s, 0s;}
article:nth-of-type(11) {transition-delay: 1.0s, 0s;}
article:nth-of-type(12) {transition-delay: 1.1s, 0s;}

article:nth-of-type(4n+1) {
	background-color: hsl(310, 30%, 30%);
}
article:nth-of-type(4n+2) {
	background-color: hsl(270, 30%, 30%);
}
article:nth-of-type(4n+3) {
	background-color: hsl(330, 30%, 30%);
}
article:nth-of-type(4n+4) {
	background-color: hsl(290, 30%, 30%);
}

article > header,
article > main,
article > footer {
	display: block;
	position: relative;
	width: 640px;
	padding: 0 70px 0 25px;
	color: #f0f0f0;
}
article > header {
	height: 72px;
	line-height: 72px;
	background-color: inherit;
	border: 1px solid #ffffff10;
	border-left: none;
	border-bottom-right-radius: 72px;
	box-shadow:
		-20px 20px 40px -10px #00000040,
		-1px 0px 0px 1px #00000020 inset;
	font-family: 'Montserrat';
	font-size: 150%;
	font-weight: bold;
	cursor: default;
	/* TODO: doesn't work?
	transition: box-shadow 0.4s ease; */
}
article.closed > header {
	box-shadow: -1px 0px 0px 1px #00000020 inset;
}
article > header::after {
	display: inline-block;
	content: "[EXPAND]";
	cursor: inherit;
	position: relative;
	padding-left: 12px;
	clear: left;
	height: 20px;
	line-height: 20px;
	/*bottom: 0px;
	left: 25px;
	height: 20px;
	line-height: 20px;*/
	font-family: 'Roboto Condensed';
	font-size: 20px;
	font-weight: 100;
	opacity: 0;
	transition: opacity 0.2s ease;
}
article.closed > header::after {
	cursor: pointer;
	opacity: 0.8;
}
article > header > span,
article > header > a {
	display: inline-block;
	position: absolute;
	font-family: 'Roboto Condensed';
	text-align: right;
}
article > header > span {
	right: 50px;
	top: 17px;
	font-size: 60%;
	font-weight: normal;
}
article > header > a {
	right: 25px;
	line-height: 52px;
	padding-bottom: 20px;
	font-size: 110%;
	font-weight: bold;
}
article > header > img {
	display: block;
	position: absolute;
	top: 50%;
	right: 1px;
	height: 70px;
	margin-top: -35px;
	border-bottom-right-radius: 70px;
	opacity: 0.15;
}
article > main {
	padding-top: 24px;
	padding-bottom: 24px;
}
article > footer {
	padding-top: 20px;
	padding-bottom: 20px;
	font-weight: normal;
	background-color: inherit;
	background-image: url(asset/article-gradient-footer.png);
	background-position: right;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	/*box-shadow:
		-800px 0 800px -400px #242424 inset;*/
}
article > main,
article > footer {
	line-height: 1.4;
}

h1, h2, h3, h4, h5, h6, p, ul {
	margin: 0.6em 0;
	padding: 0;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child,
ul:first-child {
	margin-top: 0;
}
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
ul:last-child {
	margin-bottom: 0;
}

ul {
	padding-left: 1.6em;
}
ul li:not(:last-child) {
	margin-bottom: 0.3em;
}

p br {
	line-height: 1.8;
}

h1, h4 {
	font-family: 'Montserrat';
	font-weight: bold;
}
h2, h5 {
	font-family: 'Montserrat';
	font-weight: normal;
}
h3, h6 {
	font-family: 'Roboto Condensed';
	font-weight: bold;
}
h1, h2, h3 {
	font-size: 150%;
}
h4, h5, h6 {
	font-size: 120%;
}

span.headnote {
	font-family: 'Roboto Condensed';
	font-weight: lighter;
	font-size: 60%;
	font-style: italic;
	opacity: 0.6;
}

span.headsub {
	display: block;
	font-weight: normal;
	font-size: 80%;
	opacity: 0.9;
}

p > *[title] {
	border-bottom: 1px dotted #ffffff40;
}
p.small,
/*p.small ul li,*/
ul.small li,
li.small {
	font-size: 80%;
}

a {
	cursor: pointer;
}

.gone {
	display: none;
}
.hide {
	opacity: 0;
}
