/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after {
  content: '';
  content: none;
}

q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}
strong {
  font-weight: 700;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat Regular"), local("Montserrat-Regular"), url(/assets/media/fonts/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat Regular"), local("Montserrat-Regular"), url(/assets/media/fonts/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat Regular"), local("Montserrat-Regular"), url(/assets/media/fonts/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat Regular"), local("Montserrat-Regular"), url(/assets/media/fonts/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat Regular"), local("Montserrat-Regular"), url(/assets/media/fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Grid */
grid-cell {
  border: 10px solid #ffffff;
  display: inline-block;
  float: left;
  width: 100%;
}
.one-fourth, .one-third, .one-half, .two-third, .three-fourth {
  display: block;
  width: 100%;
  flex-basis: 100%;
}

/* Global */
html {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: calc(1em + 1vw);
  color: #ffffff;
}
body {
  display: block;
  height: 100%;
  width: 100%;
  border: 10px solid #ffffff;
}
main, header, footer {
  display: block;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}
img {
  width: 100%;
}
img.center {
  display: block;
  margin: 0 auto;
}
content-wrapper {
  display: block;
  width: 95%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
main > * {
  width: 100%;
  display: flex;
  text-align: center;
  flex-flow: row wrap;
}
h1 {
  padding-bottom: 0.6em;
  font-size: 1.5em;
}
h2 {
  padding-bottom: 0.6em;
  font-size: 1.2em;
}
p {
  margin-bottom: 1em;
  line-height: 1.3;
}
form {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
form label {
  width: 100%;
}
form input, form textarea {
  display: block;
  width: 100%;
}
.mob-hide {
  display: none;
}

/* Theme UI */
/* Colors */
.lightblue {
  background-color: #577483;
}
.brown {
  background-color: #402312;
}
.blue-on-white {
  background-color: #ffffff;
  color: #577483;
}
/* Buttons */
.cta {
  border: 2px solid transparent;
  padding: 0.5em 1.2em;
  line-height: 15px;
  border-radius: 1.2em;
  text-decoration: none;
  display: inline-block;
  margin: 1em auto 0 auto;
}
/* Overlays */
.overlay-wrapper {
  position: relative;
}
color-overlay {
  background-color: inherit;
  opacity: 0.8;
  filter: alpha(opacity=80);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
/* Card Gallery */
card-gallery {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding-top: 2em;
}
card-wrapper {
  display: block;
  background-color: #ffffff;
  width: 100%;
  position: relative;
  font-size: 0.6em;
  clear: both;
  overflow: auto;
  margin-bottom: 1em;
}
card-photo {
  display: inline-block;
  width: 25%;
  float: left;
}
card-photo img {
  display: block;
  width: 100%; 
}
card-headline {
  display: inline-block;
  color: #577483;
  padding: 0.3em 0;
  font-size: 1.2em;
  font-weight: 700;
  min-height: 3em;
  width: 75%;
  float: left;
}
card-body {
  color: #000000;
  display: block;
}
card-cta {
  display: block;
  background-color: #402312;
  width: 75%;
  position: absolute;
  bottom: 0;
  right: 0;
}
card-cta a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.6em 0;
  font-size: 0.8em;
  color: #ffffff;
  text-decoration: none;
}
/* Forms */
form {
  text-align: left;
  font-size: 0.6em;
  padding: 1em 0 3em 0;
}
form label {
  padding-bottom: 1.5em;
}
form input, form textarea {
  margin-top: 1em;
}
form input {
  height: 3em;
}
form textarea {
  height: 6em;
}
form button {
  font-size: 1.5em;
}
/* Block quotes */
blockquote {
  font-size: 1.5em;
  font-style: italic;
  margin: 1.5em auto;
}

/* Header */
header nav a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 1em 0;
}
header nav a:hover {
  color: #577483;
}
header nav a + a {
  margin-left: 15px;
}
.site-logo {
  display: block;
  max-width: 75px;
  margin: 1em auto 0 auto;
}
header nav {
  text-align: center;
}
header grid-cell {
  border-bottom: 0px;
}

/* Intro-hero */
intro-hero grid-cell {
  border-top: 0px;
  padding: 65px 0;
}

/* About Me */
about-me grid-cell {
  padding: 65px 1em;
}
about-me content-wrapper {
  text-align: left;
}
about-me h1, about-me h2 {
  text-align: center;
}
about-me a {
  color: #ffffff;
}
about-me a:hover {
  color: #402312;
}

/* Autotyper */
autotyper-section {
  display: block;
  text-align: center;
  width: 21em;
  max-width: 100%;
  margin: 0 auto;
  min-height: 2em;
}
autotyper-container {
  display: block;
}

/* Latest Post */
latest-post content-wrapper {
  text-align: left;
  width: 90%;
  margin: 0 auto;
}
latest-post .overlay-wrapper {
  background: url('/assets/media/images/glassblowingv1.jpg');
  background-size: cover;
}
latest-post color-overlay {
  background-color: #402312;
}
latest-post .content {
  padding: 65px 0;
}
latest-post span {
  display: block;
  font-size: 0.5em;
  font-weight: bold;
  margin-bottom: 5px;
}
latest-post p {
  display: block;
  margin-bottom: 10px;
}
latest-post p, latest-post a {
  font-size: 0.7em;
}
latest-post a {
  color: #ffffff;
  text-decoration: none;
}

/* Portfolio Gallery */
portfolio-summary {
  position: relative;
  float: left;
  overflow: hidden;
  min-height: 250px;
}
portfolio-bg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  padding-bottom: 51%;
}
portfolio-bg img {
  min-width: 480px;
  position: absolute;
  top: 0;
  left:50%;
  transform:translateX(-50%);
}
portfolio-summary article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.5s ease;
}
portfolio-summary article p {
  padding-bottom: 0.6em;
}
portfolio-summary article a {
  color: #ffffff;
}
portfolio-summary:hover article {
  opacity: 1;
}

/* Article */
blog-post article {
  width: 100%;
}
blog-post grid-cell {
  padding: 65px 1em;
}
blog-post content-wrapper {
  text-align: left;
}
blog-post header {
  display: block;
  height: auto;
  padding-bottom: 1em;
}
blog-post h1 {
  text-align: center;
  display: block;
  width: 100%;
}
blog-post .byline {
  text-align: center;
  display: block;
  width: 100%;
}
small {
  font-size: 0.6em;
}

/* Get In Touch */
get-in-touch .one-half {
  width: 100%;
  flex-basis: 100%;
}
get-in-touch content-wrapper {
  padding: 65px 1em;
}
get-in-touch grid-cell:first-of-type content-wrapper {
  text-align: left;
  font-size: 0.7em;
}
thanks-message content-wrapper {
  padding: 35px 1em 15px 1em;
}

footer grid-cell {
  padding: 65px 1em;
}

/* Portfolio */
project-flow p, project-wireframes p {
  color: #3a3a3a;
}
project-flow small, project-wireframes small {
  color: #949494;
  display: block;
  padding-top: 10px;
  padding-bottom: 65px;
  font-size: 0.8em;
  text-align: left;
}
project-overview grid-cell {
  border-top: 0px;
  padding: 65px 0;
}
project-flow img, project-wireframes img {
  width: 100%;
  height: auto;
}

portfolio-piece {
  color: #444444;
}
portfolio-piece section {
  width: 100%;
}
portfolio-piece grid-cell {
  padding: 65px 1em;
}
portfolio-piece hero-img {
  width: 100%;
  height: auto;
  margin: 0 10px;
}
portfolio-piece header h1 {
  display: block;
  width: 100%;
  text-align: center;
  color: #666666;
}
portfolio-piece header content-wrapper {
  max-width: none;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
}

/* Responsive */
@media only screen and (min-width: 960px) {
  get-in-touch .one-half {
    width: 50%;
    flex-basis: 50%;
  }
  form label.one-half {
    padding-right: 0.4em;
  }
  form label.one-half + label.one-half {
    padding-left: 0.4em;
    padding-right: 0;
  }
}
@media only screen and (min-width: 767px) {
  .one-fourth, .one-third, .one-half, .two-third, .three-fourth {
    display: inline-block;
  }
  .one-fourth {
    width: 25%;
    flex-basis: 25%;
  }
  .one-third {
    width: 33%;
    flex-basis: 33%;
  }
  .one-half {
    width: 50%;
    flex-basis: 50%;
  }
  .two-third {
    width: 67%;
    flex-basis: 67%;
  }
  .three-fourth {
    width: 75%;
    flex-basis: 75%;
  }
  .mob-hide {
    display: block;
  }
  get-in-touch content-wrapper {
    padding: 65px 3em;
  }
  portfolio-bg {
    padding-bottom: 0px;
  }
  portfolio-bg img {
    position: static;
    transform: none;
  }

  header {
    display: flex;
    height: 150px;
  }
  header grid-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    height: 100%;
    padding-right: 2.5em;
  }
  .site-logo {
    vertical-align: middle;
    display: inline-block;
    margin: 0 0 0 2.5em;
  }
}
@media only screen and (min-width: 480px) {
  .mobile-only {
    display: none;
  }
  .mobile-up {
    display: block;
  }
  autotyper-container {
    display: inline-block;
  }
  autotyper-section {
    text-align: left;
    min-height: 0px;
  }
}