/* Source Sans Pro
-------------------------------------------------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format("woff");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format("woff");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format("woff");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400-italic.woff) format("woff");
}

/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}

/* Pix
-------------------------------------------------- */
img {
  max-width: 100%;
}

/* Links
-------------------------------------------------- */
a {
  color: #666666;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}

a:hover {
  color: black;
}

/* Clearfix
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}

/* Container
-------------------------------------------------- */
.container, .main {
  margin: 0 auto;
  padding: 20px;
  max-width: 1440px;
}

@media screen and (min-width: 800px) {
  .container, .main {
    margin: 0 auto;
    padding: 40px;
    max-width: 1440px;
  }
}
@media screen and (min-width: 1090px) {
  .container, .main {
    margin: 0 auto;
    padding: 75px;
    max-width: 1440px;
  }
}
/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: "Source Sans Pro", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  position: relative;
  font-size: 1.25em;
  line-height: 1.5em;
  background: #fff;
  color: #222;
}

/* Header
-------------------------------------------------- */
.header {
  margin: 0 auto;
  padding: 20px;
  max-width: 1440px;
  position: relative;
  margin-top: 2em;
}

.logo {
  display: block;
  margin-bottom: 1.5em;
  text-align: center;
}

.logo img {
  width: 100%;
  max-width: 550px;
}

@media screen and (min-width: 800px) {
  .header {
    margin: 0 auto;
    padding: 40px;
    max-width: 1440px;
    margin-top: 0;
  }
}
@media screen and (min-width: 1090px) {
  .header {
    margin: 0 auto;
    padding: 75px;
    max-width: 1440px;
  }

  .logo {
    margin-bottom: 3em;
  }
}
/* Navigation
-------------------------------------------------- */
.menu a {
  display: inline-block;
  text-decoration: none;
  color: #666666;
}

.menu a:hover,
.menu .active a {
  color: black;
  font-weight: 600;
}

.menu > li > a {
  padding-right: 0.5em;
}

.menu li {
  display: block;
  float: left;
  list-style: none;
  text-align: center;
}

.nav-languages .menu a {
  text-transform: uppercase;
}

.header .nav-languages {
  position: absolute;
  top: -1.5em;
  right: 20px;
}
.header .nav-languages .menu li {
  font-size: 0.7em;
}
.header .menu a {
  text-transform: uppercase;
}

@media screen and (min-width: 800px) {
  .header .menu > li > a {
    padding: .35em;
  }
  .header .nav-main .menu li {
    width: 25%;
  }
  .header .nav-languages {
    top: 0.5em;
    right: 40px;
  }
}
@media screen and (min-width: 1090px) {
  .header .nav-languages {
    right: 75px;
  }
}
/* Headings
-------------------------------------------------- */
h1 {
  font-size: 1.3em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.2em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .5em;
}

h3 {
  font-size: 1.1em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .5em;
}

h4 {
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .5em;
}

h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}

/* DL
-------------------------------------------------- */
dl dd {
  display: inline;
  margin: 0;
}

dl dd:after {
  display: block;
  content: '';
}

dl dt {
  display: inline-block;
  min-width: 100px;
}

button {
  background: transparent;
  cursor: pointer;
}

/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1.5em;
  padding-top: 0;
  min-height: 500px;
}

.main hr {
  margin: 1em 0;
  height: 1px;
  background: black;
}

.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}

.main a {
  border-bottom: 2px solid #666666;
}

.main a:hover {
  border-color: #222;
}

/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

@media screen and (min-width: 800px) {
  .main {
    font-size: 0.9em;
  }
}
/* Project teaser
-------------------------------------------------- */
.teaser {
  list-style: none;
  text-align: center;
}
.teaser h2 {
  font-weight: 600;
  font-size: 1em;
}
.teaser a {
  border: none;
}
.teaser .outline {
  font-size: 0.8em;
  line-height: 1.3em;
  text-align: center;
  margin-bottom: 0;
}
.teaser .outline .dt {
  color: #666666;
}
.teaser .outline .dt + span {
  font-weight: 600;
}

.teaser li {
  list-style: none;
}

/* Grid Column
-------------------------------------------------- */
.col {
  max-width: 100%;
}

@media screen and (min-width: 800px) {
  .teaser h2 {
    min-height: 2.5em;
  }

  .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 -20px;
  }

  .col {
    box-sizing: border-box;
    justify-content: space-between;
    min-height: 1px;
    max-width: 100%;
    padding: 0 20px;
    width: 50%;
  }

  .col-aside {
    width: 33.3%;
  }

  .col-main {
    width: 66.6%;
  }
}
@media screen and (min-width: 1090px) {
  .teaser h2 {
    min-height: 3.75em;
  }

  .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 -37.5px;
  }

  .col {
    padding: 0 37.5px;
  }

  .col-aside,
  .col {
    width: 33.3%;
  }

  .col-main {
    width: 66.6%;
  }
}
@media screen and (min-width: 1280px) {
  .teaser h2 {
    min-height: 3.75em;
  }

  .col-aside,
  .col {
    width: 25%;
  }

  .col-main {
    width: 75%;
  }
}
/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
}

.nextprev a {
  border: 0;
}

.nextprev .prev {
  float: left;
}

.nextprev .next {
  float: right;
}

/* Footer
-------------------------------------------------- */
.footer {
  background-color: black;
  color: white;
  padding: 0 0 6em;
}
.footer a {
  color: white;
  display: inline-block;
  margin-right: 0.5em;
  line-height: 1.2em;
  white-space: nowrap;
}
.footer a:hover {
  color: white;
  text-decoration: underline;
}
.footer .fa {
  font-size: 1.1em;
  margin-right: 0.3em;
}
.footer .container {
  padding-top: 0;
}
.footer .col {
  padding-top: 1em;
}

/* Project
-----------------------------------------*/
.project .outline {
  list-style: none;
  font-family: serif;
  font-size: 0.95em;
}

.project .imdb {
  font-weight: 600;
}

.project header {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}
.project header h1 {
  font-size: 2em;
}
.project header ul, .project header p {
  margin-bottom: .5em;
}

@media screen and (min-width: 1280px) {
  .project .text .video,
  .project header .video {
    margin-top: 2em;
  }
}
/* Carousel
-----------------------------------------*/
.carousel {
  margin-bottom: 1.5em;
}
.carousel ul, .carousel li, .carousel figure, .carousel img {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* JS */
.js .carousel {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 2em;
}
.js .carousel > ul > li {
  transition: .8s;
  opacity: 0;
  visibility: hidden;
  max-width: 100%;
}
.js .carousel > ul > li + li {
  position: absolute;
  top: 0;
}
.js .carousel > ul > li.visible {
  opacity: 1;
  visibility: visible;
}
.js .carousel nav {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 999;
  padding: 1em;
}
.js .carousel nav ul, .js .carousel nav li {
  margin: 0;
  padding: 0;
}
.js .carousel nav li {
  display: inline-block;
  padding: 0 0.25em;
}
.js .carousel nav button {
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5em 0.25em;
}
.js .carousel nav button:focus {
  outline: 0;
}
.js .carousel nav button:focus, .js .carousel nav button:hover, .js .carousel nav li.active button {
  color: white;
}

.video {
  position: relative;
  padding-bottom: 56.25%;
  /* ratio 16x9 */
  overflow: hidden;
  width: 100%;
  height: auto;
}
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Overlay
-----------------------*/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 190;
  width: 100%;
  height: 100%;
  background-color: rgba(200, 200, 200, 0.8);
}
.overlay.white {
  background: white;
}

.overlay.languages {
  text-align: center;
}
.overlay.languages .nav-languages {
  display: inline-block;
  font-size: 0.8em;
}

/* CV
-----------------------*/
.cv {
  margin-top: 1em;
}
.cv, .cv ul {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  list-style: none;
}
.cv > li {
  border-bottom: 1px solid black;
  margin-bottom: .75em;
  padding-bottom: .75em;
}
.cv .head {
  display: none;
}
.cv li li:first-child {
  font-weight: bold;
  width: 10%;
}

@media screen and (min-width: 1090px) {
  .cv {
    margin-top: 2em;
  }
  .cv .head {
    font-weight: bold;
    display: block;
  }
  .cv > li {
    float: left;
    width: 100%;
  }
  .cv li li {
    float: left;
    width: 18%;
    box-sizing: border-box;
    padding: 0 1em 0 0;
  }
  .cv li li:first-child {
    width: 10%;
  }
}
