@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("fontawesome-all.min.css");

:root {
  --accent-colour-red: #d94146; /* redish */
  --accent-colour-blue: #003369; /* blueish */
  --accent-colour-orange: rgb(240, 141, 73);; /* orange */
  --accent-colour-violet: #8F00FF; /* purpleish */
  --font-colour: #2C2C34;
}

/*
	Aerial by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

main pre {
  white-space: pre-wrap;
  background-color: #ddd;
  padding-left: .2em;
  color: var(--accent-colour-orange);
  counter-reset: line;
}

main pre.code-example code:before {
  counter-increment: line;
  content: counter(line) ".";
  display: inline-block;
  border-right: 1px solid #ddd;
  margin-right: .5em;
  color: #888
}

p code {
  font-size: 1.1rem;
  color: var(--accent-colour-orange);
}

strong {
  font-weight: bold;
  letter-spacing: 0.5px;
}

em {
  font-style: italic;
  margin-right: .2em;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;}

body {
	line-height: 1;
}

ul {
	list-style: none;
}

ol {
  padding-left: .8em;
}

section.series {
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  padding: 1em;
  padding-top: 0;
  background-color: #0000000d;
  opacity: 0.8;
  margin: 3em 0;
}

a.series {
  font-size: .6em;
  opacity: .8;
}

ol.series-list {
  list-style: auto;
  padding-left: 1em;
}

ol.series-list li {
  padding-left: .5em;
}

.you-are-here {
  display: inline-block;
  margin-left: .5em;
}

blockquote, q {
	quotes: none;
}

	blockquote:before, blockquote:after, q:before, q:after {
		content: '';
		content: none;
	}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
}

mark {
	background-color: transparent;
	color: inherit;
}

input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input, select, textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
}

/* Basic */

	html {
		box-sizing: border-box;
	}

	*, *:before, *:after {
		box-sizing: inherit;
	}

	body {
		background: #fff;
	}

		body.is-preload *, body.is-preload *:before, body.is-preload *:after {
			-moz-animation: none !important;
			-webkit-animation: none !important;
			-ms-animation: none !important;
			animation: none !important;
			-moz-transition: none !important;
			-webkit-transition: none !important;
			-ms-transition: none !important;
			transition: none !important;
		}

	body, input, select, textarea {
    color: var(--font-colour); /* background */
		font-family: 'Source Sans Pro', sans-serif;
		font-size: 15pt;
		font-weight: 300 !important;
		letter-spacing: -0.025em;
		line-height: 1.75em;
	}

	a {
		-moz-transition: border-color 0.2s ease-in-out;
		-webkit-transition: border-color 0.2s ease-in-out;
		-ms-transition: border-color 0.2s ease-in-out;
		transition: border-color 0.2s ease-in-out;
		border-bottom: dashed 1px;
    color: var(--accent-colour-blue);
		outline: 0;
		text-decoration: none;
	}

  a:hover {
    border-color: var(--accent-colour-red);
		border-bottom: solid 1px;
  }

/* Icon */

	.icon {
		text-decoration: none;
		position: relative;
	}

		.icon:before {
			-moz-osx-font-smoothing: grayscale;
			-webkit-font-smoothing: antialiased;
			display: inline-block;
			font-style: normal;
			font-variant: normal;
			text-rendering: auto;
			line-height: 1;
			text-transform: none !important;
			font-family: 'Font Awesome 5 Free';
			font-weight: 400;
		}

		.icon > .label {
			display: none;
		}

		.icon.solid:before {
			font-weight: 900;
		}

		.icon.brands:before {
			font-family: 'Font Awesome 5 Brands';
		}

/* Main index */

	#main {
		position: fixed;
		right: 0;
		left: 0;
		top: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
	}

/* Header */

	@-moz-keyframes header {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@-webkit-keyframes header {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@-ms-keyframes header {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@keyframes header {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@-moz-keyframes nav-icons {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@-webkit-keyframes nav-icons {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@-ms-keyframes nav-icons {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	@keyframes nav-icons {
		0% {
			-moz-transform: translate3d(0,1em,0);
			-webkit-transform: translate3d(0,1em,0);
			-ms-transform: translate3d(0,1em,0);
			transform: translate3d(0,1em,0);
			opacity: 0;
		}

		100% {
			-moz-transform: translate3d(0,0,0);
			-webkit-transform: translate3d(0,0,0);
			-ms-transform: translate3d(0,0,0);
			transform: translate3d(0,0,0);
			opacity: 1;
		}
	}

	#header {
		-moz-animation: header 1s 0.25s forwards;
		-webkit-animation: header 1s 0.25s forwards;
		-ms-animation: header 1s 0.25s forwards;
		animation: header 1s 0.25s forwards;
		-moz-backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		-ms-backface-visibility: hidden;
		backface-visibility: hidden;
		-moz-transform: translate3d(0,0,0);
		-webkit-transform: translate3d(0,0,0);
		-ms-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
		cursor: default;
		opacity: 0;
		text-align: center;
		height: 100%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-evenly;
	}

  #landing-photo {
    max-height: 40vh;
    max-width: 90vw;
  }

		#header h1 {
			font-size: 4.35em;
			font-weight: 900;
			letter-spacing: -0.035em;
			line-height: 1em;
		}

		#header p {
			font-size: 1.25em;
			margin: 0.75em 0 0.25em 0;
			opacity: 0.75;
		}

    aside nav.socials {
      margin: 0;
      display: inline-block;
    }

    nav.socials ul {
      padding-left: 0;
    }

    aside nav.socials li {
      height: unset;
      width: unset;
      line-height: unset;
      margin-left: .4em;
    }

		nav.socials {
			margin: 1.5em 0 0 0;
		}

			nav.socials li {
				-moz-backface-visibility: hidden;
				-webkit-backface-visibility: hidden;
				-ms-backface-visibility: hidden;
				backface-visibility: hidden;
				-moz-transform: translate3d(0,0,0);
				-webkit-transform: translate3d(0,0,0);
				-ms-transform: translate3d(0,0,0);
				transform: translate3d(0,0,0);
				display: inline-block;
				height: 5.35em;
				line-height: 5.885em;
				position: relative;
				top: 0;
				width: 5.35em;
			}

      nav.socials.animated li {
				opacity: 0;
				-moz-animation: nav-icons 0.5s ease-in-out forwards;
				-webkit-animation: nav-icons 0.5s ease-in-out forwards;
				-ms-animation: nav-icons 0.5s ease-in-out forwards;
				animation: nav-icons 0.5s ease-in-out forwards;
      }

				nav.socials li:nth-child(1) {
					-moz-animation-delay: 0.5s;
					-webkit-animation-delay: 0.5s;
					-ms-animation-delay: 0.5s;
					animation-delay: 0.5s;
				}

				nav.socials li:nth-child(2) {
					-moz-animation-delay: 0.75s;
					-webkit-animation-delay: 0.75s;
					-ms-animation-delay: 0.75s;
					animation-delay: 0.75s;
				}

				nav.socials li:nth-child(3) {
					-moz-animation-delay: 1s;
					-webkit-animation-delay: 1s;
					-ms-animation-delay: 1s;
					animation-delay: 1s;
				}

				nav.socials li:nth-child(4) {
					-moz-animation-delay: 1.25s;
					-webkit-animation-delay: 1.25s;
					-ms-animation-delay: 1.25s;
					animation-delay: 1.25s;
				}

				nav.socials li:nth-child(5) {
					-moz-animation-delay: 1.5s;
					-webkit-animation-delay: 1.5s;
					-ms-animation-delay: 1.5s;
					animation-delay: 1.5s;
				}

				nav.socials li:nth-child(6) {
					-moz-animation-delay: 3.75s;
					-webkit-animation-delay: 3.75s;
					-ms-animation-delay: 3.75s;
					animation-delay: 3.75s;
				}

				nav.socials li:nth-child(7) {
					-moz-animation-delay: 4s;
					-webkit-animation-delay: 4s;
					-ms-animation-delay: 4s;
					animation-delay: 4s;
				}

				nav.socials li:nth-child(8) {
					-moz-animation-delay: 4.25s;
					-webkit-animation-delay: 4.25s;
					-ms-animation-delay: 4.25s;
					animation-delay: 4.25s;
				}

				nav.socials li:nth-child(9) {
					-moz-animation-delay: 4.5s;
					-webkit-animation-delay: 4.5s;
					-ms-animation-delay: 4.5s;
					animation-delay: 4.5s;
				}

				nav.socials li:nth-child(10) {
					-moz-animation-delay: 4.75s;
					-webkit-animation-delay: 4.75s;
					-ms-animation-delay: 4.75s;
					animation-delay: 4.75s;
				}

			nav.socials a {
				-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
				-webkit-touch-callout: none;
				border: 0;
				display: inline-block;
			}

				nav.socials.animated a:before {
					-moz-transition: all 0.2s ease-in-out;
					-webkit-transition: all 0.2s ease-in-out;
					-ms-transition: all 0.2s ease-in-out;
					transition: all 0.2s ease-in-out;
					border-radius: 100%;
          border: solid 1px transparent;
					display: block;
					font-size: 1.75em;
					height: 2.5em;
					line-height: 2.5em;
					position: relative;
					text-align: center;
					top: 0;
					width: 2.5em;
				}

				nav.socials a:hover {
					font-size: 1.1em;
				}

					nav.socials.animated a:hover:before {
						background-color: rgba(255, 255, 255, 0.175);
						color: var(--accent-colour-blue);
					  border: solid 1px var(--accent-colour-blue);
					}

				nav.socials a:active {
					font-size: 0.95em;
					background: none;
				}

					nav.socials a:active:before {
						background-color: rgba(255, 255, 255, 0.35);
						color: var(--accent-colour-blue);
					}

				nav.socials a span {
					display: none;
				}

/* Footer */

	#footer {
    opacity: .7;
		font-size: .8em;
		bottom: 0;
		cursor: default;
		left: 0;
		text-align: center;
		width: 100%;
	}

main#content {
  width: 100%;
  max-width: 800px;
  padding: 0 0.5em;;
  margin: 2em auto;
}

.post-list li {
  margin-bottom: 2.5em;
}

.post-list li h1 {
  font-size: 1.4em;
  margin-bottom: .2em;
}

.post-list li p {
  margin: .5em 0;
  margin-bottom: 0;
  font-style: italic;
}

.post-list li time {
  font-style: normal;
}

.post-list li span.tag {
  margin-right: 0;
}

/* Nav */

body > nav {
  max-width: 800px;
  margin: 0.5em auto 0 auto;
}

nav > a#home {
  display: flex;
  align-items: center;
  border: none;
  margin-right: .2em;
}

#tarnas {
  width: 50px;
  height: 50px;
  display: inline-block;
  background-image: url('/images/kon_head.png');
  background-size: contain;
  border-radius: 50%;
  margin-right: .2em;
}

/* Post */

article footer {
  text-align: center;
}

article #meta {
  margin-top: 4em;
  padding-top: .8em;
  position: relative;
  text-align: right;
  font-size: 0.75em;
  line-height: 1.4em;
}

article #meta:before {
  content: "";
  display: block;
  width: 7em;
  position: absolute;
  right: 0;
  top: 0;
  border-top: .2em solid var(--font-colour);
}

article {
  width: 100%;
}

article blockquote {
  padding-left: 1em;
  border-left: 2px solid var(--font-colour);
  font-style: italic;
  margin: 2.4em 0;
}

article ul {
  padding-left: 1.5em;
  list-style-type: disc;
  margin-bottom: .8em;
}

article a {
  color: var(--accent-colour-blue);
  text-align: justify;
  width: 100%;
}

article > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

article > header > h1 {
  flex: 1;
  text-align: left;
}

article img {
  max-width: 100%;
}

article p {
  margin: .8em 0;
}

article main {
  margin-top: .5em;
}

article main::before {
  content: "";
  display: block;
  width: 7em;
  border-top: .2em solid var(--font-colour);
}

article h1 {
  font-size: 2em;
  margin-bottom: .5em;
  margin-top: .5em;
  text-align: left;
}

article h2 {
  font-size: 1.5em;
  margin-bottom: .75em;
  margin-top: .75em;
  text-align: left;
}

a.tag {
  text-decoration: none;
  border-bottom: 0;
}

span.tag {
  display: inline-block;
  padding: 0 0.6em;
  margin-right: .5em;
  font-size: .8em;
  line-height: 1.8;
  color: var(--accent-colour-blue);
  border: 1px solid var(--accent-colour-blue);
}

time {
  font-style: italic;
  font-size: .9em;
}

span.tag.tag-journal {
  color: var(--accent-colour-red);
  border: 1px solid var(--accent-colour-red);
}

span.tag:hover {
  border-top-width: 2px;
  border-right-width: 2px;
  padding-top: .1em;
  padding-right: .7em;
  font-size: .9em;
}

@media screen and (max-width: 820px) {
  main#content, body > nav {
    padding: 0 1em;
  }
}

/* Wide */

	@media screen and (max-width: 1680px) {

		/* Basic */

			body, input, select, textarea {
				font-size: 13pt;
			}
  }

/* Normal */

	@media screen and (max-width: 1280px) {

		/* Basic */

			body, input, select, textarea {
				font-size: 12pt;
			}

  }
/* Mobile */

	@media screen and (max-width: 736px) {
    p code {
      font-size: 1.1em;
    }

		/* Basic */

			body {
				min-width: 320px;
			}

			body, input, select, textarea {
				font-size: 11pt;
			}

	/* Header */

		#header h1 {
			font-size: 2.5em;
		}

		#header p {
			font-size: 1em;
		}

		#header nav {
			font-size: 1em;
		}

			#header nav a:hover {
				font-size: 1em;
			}

			#header nav a:active {
				font-size: 1em;
			}
  }

/* Mobile (Portrait) */

	@media screen and (max-width: 480px) {

    p code {
      font-size: 1.1em;
    }

	/* Header */

  #landing-photo {
    max-height: 50vh;
  }

		#header nav {
			padding: 0 1em;
			margin: 0;
		}

		#header nav li {
			height: unset;
			line-height: unset;
		}

    #header nav a:hover:before {
      border: none;
    }

		#header nav a:before {
			line-height: unset;
      height: unset;
		}

		#footer {
			font-size: 0.7em;
		}
  }
