
/** Responsive */

@media only screen and (min-width: 1201px) {
	/* Fixed size page width */
	body {
		width: 1200px;
    	font-size: 14pt;
	}
	header {
		height: 320px;
	}
	header,
	main {
		padding: 0 4em 2em;
	}
	nav {
    	padding: 0 4em;
	}
	.project,
	.job {
		padding-left: 4em;
		padding-right: 4em;
		margin-left: -4em;
		margin-right: -4em;
	}
}
@media only screen and (max-width: 1200px) {
	/* Dynamically sized page width */
	body {
		width: 100vw;
    	font-size: 13pt;
	}
	header {
		height: 26.67vw;
	}
	header,
	main {
		padding: 0 6vw 4vw;
	}
	nav {
    	padding: 0 6vw;
	}
	.project,
	.job {
		padding-left: 6vw;
		padding-right: 6vw;
		margin-left: -6vw;
		margin-right: -6vw;
	}
}
/* Reduce base font size */
@media only screen and (max-width: 800px) {
	body {
    	font-size: 12pt;
	}
	header, nav {
		font-size: 11pt;
	}
}
@media only screen and (max-width: 600px) {
	header, nav {
		font-size: 8.5pt;
	}
	header > .content {
		text-shadow: white 0 0.1em 3em, white 0 0.1em 2em, white 0 0.1em 1.5em, white 0 0.1em 1em, white 0 0.1em 0.8em, white 0 0.1em 0.6em, white 0 0.1em 0.5em, white 0 0.1em 0.4em !important;
	}
}
@media only screen and (max-width: 400px) {
	header {
		font-size: 2.8vw;
	}
	nav {
		font-size: 3.4vw;
		text-align: center;
	}
	nav {
    	padding: 0;
	}
}




@media only screen and (min-width: 961px) {
	/* Dates left of project / job description */
	.time {
		width: 19%;
		float: left;
		margin-top: .6em;
	}
	.description {
		width: 80%;
		float: right;
	}
}
@media only screen and (max-width: 960px) {
	/* Dates above project / job description */
	.time {
		width: 100%;
		text-align: right;
	}
	.description {
		width: 100%;
	}
}


/** Main */

html, body {
    background: #dadada;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 300;
}
b, strong {
    font-weight: 500;
}
body {
    margin: auto;
    border-left: 1px solid #555;
    border-right: 1px solid #555;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.3),
                0 0 4vw rgba(0, 0, 0, 0.1);
    overflow-y: scroll;
}


header {
    position: relative;
	background: linear-gradient(to right, transparent 30%, rgba(255,255,255,.05) 40%, rgba(255,255,255,.35) 70%, rgba(255,255,255,.4) 80%), url(header.jpg);
	background-size: 100%, 100%;
	box-sizing: border-box;
}
header > .content {
    position: absolute;
    bottom: 6%;
    right: 6%;
	text-align: right;
	text-shadow: white 0 0.1em 1em, white 0 0.1em 0.5em, white 0 0.1em 0.2em;
}

h1 {
    color: #333;
    font-size: 240%;
    font-weight: 500;
}
h2 {
    color: #777;
    font-size: 180%;
    font-weight: 400;
}
h3 {   
    color: #258;
    font-size: 160%;
    font-weight: inherit;
}
h4, .subtitle {  
    color: #555;
    font-size: 150%;
    font-weight: 400;
}

a {
    color: #38e;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
article > a[id] {
    position: relative;
    top: -7em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child {
	margin-top: 0;
}



/** Toggling the 'more' text */

input.toggle-more {
    display: none;
}
input.toggle-more + * .more {
    transition: max-height .4s cubic-bezier(0,0,0,.8),
                opacity .3s;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
}
input.toggle-more + * .brief:after {
    transition: opacity .3s;
    display: inline;
    padding-left: 1em;
    color: #258;
    font-style: italic;
}
[lang=en] input.toggle-more + * .brief:after {
	content: 'more...';
}
[lang=de] input.toggle-more + * .brief:after {
	content: 'mehr...';
}
input.toggle-more:checked + * .more {
    transition: max-height .4s cubic-bezier(1,.2,1,1),
                opacity 1s;
    max-height: 1000px;
    opacity: 1;
}
input.toggle-more:checked + * .more.xl {
    max-height: 2000px;
}
input.toggle-more:checked + * .brief:after {
    opacity: 0;
}
input.toggle-more + * > * {
    cursor: pointer;
}


/** Project listing */

.project,
.job {
    padding-top: 1em;
    padding-bottom: 1em;

    transition: background 0.5s;
    background: transparent;
}
.project:hover,
.job:hover {
    background: #eee;
}
.project::after,
.job::after {
    content: '';
    display: block;
    clear: both;
}

.time .from,
.time .to {
    display: inline;
    margin: 0;
    margin-top: .3em;
}
.time .month {
    opacity: .5;
    display: inline-block;
    font-size: 80%;
}
.time > .from::after {
    display: inline;
    content: '\2013';
    opacity: .5;
    padding: 0 .4em;
}
.time .year::before {
    display: inline-block;
    content: '/';
    opacity: .2;
    transform: scale(1.4);
    padding: 0 .15em;
}


.title  {
    margin: 0;
    margin-bottom: .2em;
}
.company,
.context {
    font-size: 80%;
    color: #666;
    margin: 0;
    margin-bottom: 1.5em;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}

.technologies {
    list-style: none;
    padding-left: 0;
    font-size: 80%;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
}
.technologies > li {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #f4f4f4;
    border-radius: .3em;
    padding: .05em .4em .15em;
    margin-right: .2em;
}





nav {
    background: linear-gradient(to bottom, white 60%, rgba(255,255,255,0.25) 80%, transparent 100%);
    box-shadow:
        inset 0 8em 4em -8em rgba(0, 0, 0, 0.1),
        inset 0 4em 2em -4em rgba(0, 0, 0, 0.2),
        inset 0 2em 1em -2em rgba(0, 0, 0, 0.3);
    border-top: 2px solid #258;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav:after {
    display: block;
    content: '';
    height: 4em;
    margin-bottom: -1em;
}
nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
nav li {
    display: inline-block;
    padding: .7em 0;
}
nav a {
    text-decoration: none;
    margin: 0 0 -1em;
    padding: .5em 1em 1em;
    color: #777;
    font-size: 150%;

    background-image:
        linear-gradient(#258, #258),
        linear-gradient(to bottom left, #258 50%, transparent 53%),
        linear-gradient(to bottom right, #258 50%, transparent 53%);
    background-size:
        100% 77%,
        50.5% 20%,
        50.5% 20%;
    background-position:
        0% -375%,
        0% -12.5%,
        100% -12.5%;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    transition: background-position .2s, color .2s;
}
nav a:hover {
    color: black;

    background-position:
        0 -337.5%,
        0 -1.75%,
        100% -1.75%;
}
nav a.active {
    color: white;

    background-position:
        0 0,
        0 95%,
        100% 95%;
}
