@import url(https://fonts.googleapis.com/css?family=Montserrat:700|Raleway:400,400italic);

/* ====================
   Mobile
   ==================== */

/* General */

* {
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  background: #f0f0f0;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Raleway', sans-serif;
}

body {
  margin: 0;
}


/* Layout */

header {
  padding: 0 10px 20px;
}

section {
  padding: 20px 10px;
}


/* Footer */

footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  border-top: 1px solid #8c8b8b;
  padding: 0 10px;
  font-size: 0.9em;
}

footer nav ul li {
  background: none;
}

footer nav ul li:not(.mobile-only) {
  display: none;
}


/* Typography */

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

p {
  text-align: center;
}

a {
  font-family: 'Montserrat', sans-serif;
  color: rgb(50, 50, 50);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

a[href^="mail"] {
  text-transform: none;
}

.logo {
  font-family: 'Montserrat', sans-serif;
}

.section-title {
  font-size: 1em;
  font-weight: bolder;
  text-transform: uppercase;
}


/* Navigation */

nav ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav ul li {
  margin: 5px 0;
  padding: 10px;
  background: #fff;
  text-align: center;
}


/* Elements */

img {
  max-width: 90%;
  display: block;
  margin: 0 auto;
}


/* About */

.about p {
  font-size: 1.2em;
}


/* Portfolio */

.portfolio {
  background: #fff;
}


/* Contact */

.contact {
  background: #fff;
}


/* ====================
   Tablets
   ==================== */

@media screen and (min-width: 768px) {

  /* Footer */

  footer nav ul li:not(.mobile-only) {
    display: inline-block;
  }


  /* Typography */

  .section-title {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
  }


  /* Navigation */

  nav ul {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  nav ul li {
    background: none;
    padding: 10px 20px;
  }


  /* About */

  .about {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .about p {
    text-align: left;
    padding: 0 20px;
  }

  .about img {
    width: 40%;
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
        -ms-flex-order: 1;
            order: 1;
  }


  /* Portfolio */

  .portfolio {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
  }

  .project {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 50%;
        -ms-flex: 1 1 50%;
            flex: 1 1 50%;
  }

  .project__description {
    padding: 0 10px;
  }


  /* Values */

  .values {
    display: flex;
    flex-wrap: wrap;
  }

  .values h2 {
    flex: 1 1 100%;
  }

  .value {
    flex: 1 1 33%;
    padding: 0 10px;
  }

  /* Contact */

  .contact__pitch {
    width: 60%;
    margin: 0 auto;
  }


  /* Overrides */

  .mobile-only {
    display: none;
  }
}

/* ====================
   Desktop
   ==================== */

@media screen and (min-width: 1024px) {
  /* Header */

  header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    padding-bottom: 0;
  }

  header h1 {
    padding-left: 10px;
  }

  /* Typography */

  .section-title {
    padding-bottom: 20px;
  }


  /* About */

  .about {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
        -ms-flex-align: start;
            align-items: flex-start;
  }

  .about p {
    width: 60%;
  }

  .about img {
    width: 60%;
  }

  /* Portfolio */

  .project {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 33%;
        -ms-flex: 1 1 33%;
            flex: 1 1 33%;
  }


  /* Contact */

  .contact__pitch {
    width: 45%;
  }
}