﻿*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

body {
  font: 100% sans-serif;
  margin: 0em;
  background-color: #fff;
  color: #666;
}

h1, h2, h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.link-wrapper {
  position: relative;
  display: inline-block;
}

.background-svg {
  position: absolute;
  top: 50%;
  left: 10px;
  height: 80px;
  transform: translateY(-50%);
  z-index: -1;
  opacity: .10;
}

a {
  color: #3d6dbe;
  z-index: 1;
  text-decoration: none;
  font-weight: bold;
}

a:focus,
a:hover {
  color: #6594e0;
}

p {
  font-size: 1em;
  line-height: 1.8;
  margin-top: 0em;
}

img {
  max-width: 100%;
}

hr {
  border-top: 1px solid #ccc;
  border-bottom: none;
  margin-top: 3em;
  margin-bottom: 2em;
}

header {
  background-color: #999;
  background-image: url(img/moon2.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  margin-bottom: 4em;
  text-align: center;
  height: 500px;
}

header h1 {
  color: white;
  font-size: 2em;
  margin: 0;
  letter-spacing: 1px;
  opacity: 1;
  text-shadow: 0 3px 0 rgba(0,0,0, 0.5);
  position: relative;
  top: 370px;
  font-weight: 700;
}

header h1 .deemphasized {
  opacity: 0.6;
  font-size: 0.8em;
}

header p {
  color: #fff;
  font-size: 1.1em;
  padding-bottom: 1.3em;
  padding-top: .5em;
  opacity: .9;
  position: relative;
  top: 360px;
}

section h1 {
  font-size: 1.8em;
  line-height: 1em;
  margin-bottom: .6em;
}

section ul li, section ol li {
  font-size: 1em;
  margin-left: -10px;
  line-height: 1.8;
}

footer {
  margin-bottom: 1em;
  color: #888;
}

footer hr {
  margin-top: 2em;
  margin-bottom: 1em;
}

.center {
  text-align: center;
}

@media screen and (min-width: 50em) {
  header {
    height: 700px;
  }

  header h1 {
    font-size: 3.2em;
    top: 540px;
  }

  header p {
    top: 530px;
    font-size: 1.5em;
  }
}


/* ------------------- Grid -------------------*/

.container {
  max-width: 50em;
  width: 92%;
  margin-right: auto;
  margin-left: auto;
}

.row {
  clear: both;
  margin-right: -1%;
  margin-left: -1%;
}

.row:before,
.row:after {
  content: " ";
  display: table;
}

.row:after {
  clear: both;
}

.row {
  *zoom: 1;
}

.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6 {
  float: left;
  width: 100%;
  padding: 0 1%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 40em) {
  .grid-1 { width: 16.6666666%; }
  .grid-2 { width: 33.3333333%; }
  .grid-3 { width: 50%; }
  .grid-4 { width: 66.6666666%; }
  .grid-5 { width: 83.3333333%; }
  .grid-6 { width: 100%; }
}


/* ------------------- Publications -------------------*/

.pub-entry {
  margin-bottom: 2em;
}

.pub-entry h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 1.15em;
  font-weight: 700;
  color: #444;
}

.pub-meta {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 0.5em;
}

.pub-note {
  text-align: right;
  font-size: 0.85em;
  color: #888;
  margin-top: -0.5em;
}

.pub-entry img {
  border-radius: 3px;
  margin-top: 0.3em;
}


/* ------------------- Projects -------------------*/

.project-card {
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: dotted 1px #ccc;
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.2em;
  font-size: 1.15em;
  font-weight: 700;
  color: #444;
}

.project-context {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 0.5em;
  font-style: italic;
}

.project-tags {
  font-size: 0.8em;
  color: #999;
  margin-top: 0.5em;
  font-style: italic;
}

.project-card img {
  border-radius: 3px;
  margin-top: 0.3em;
}


/* ------------------- Helpers -------------------*/

.auto-style10 {
  font-size: smaller;
}


/* ------------------- Gallery -------------------*/

.gallery [class*="grid-2"], .gallery [class*="grid-3"] {
  margin-bottom: 1%;
  margin-top: 1%;
  width: 50%;
}

.gallery a img {
  -webkit-transform: translateZ(0);
  transition: opacity .2s ease;
  opacity: 1;
}

.gallery a img:hover {
  opacity: .8;
}

@media screen and (min-width: 40em) {
  .gallery .grid-2 {
    width: 33.3333333%;
  }
}


/* ------------------- Experience -------------------*/

.experience [class*="row"] {
  border-bottom: dotted 1px #ccc;
  padding-top: 1em;
  padding-bottom: 1em;
}

.experience h2 {
  margin-bottom: 0;
}

.experience h2, .experience p {
  text-align: center;
}

.experience [class*="row"]:last-of-type {
  border: none;
}

@media screen and (min-width: 40em) {
  .experience h2, .experience p {
    text-align: left;
  }
}


/* ------------------- Education -------------------*/

.education {
  font-family: "Lato", sans-serif;
  line-height: 1.5;
  margin-bottom: 0;
  text-align: center;
  margin: 0 auto;
}

@media screen and (min-width: 40em) {
  .education {
    width: 70%;
  }
}


/* ------------------- Testimonials -------------------*/

.testimonial {
  text-align: center;
  margin-bottom: 30px;
}

.testimonial img {
  height: 4em;
  border-radius: 3px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 40px;
}

.testimonial p {
  font-style: italic;
  color: #888;
  margin-top: -15px;
}


/* ------------------- Spotlight -------------------*/

.spotlight {
  background-color: #f3e2d8;
  padding: 3em 1em;
  margin-top: 3em;
  margin-bottom: 3em;
  text-align: center;
}

.spotlight img {
  width: 60%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.spotlight h1 {
  color: #e4382c;
}

.spotlight p {
  color: #6d5e53;
  font-size: 1.1em;
}

.spotlight a {
  background-color: transparent;
  border: 3px solid #e4382c;
  padding: 7px 35px;
  border-radius: 3px;
  color: #e4382c;
  font-size: 1.1em;
  opacity: .8;
  margin-bottom: 10px;
}

.spotlight a:hover {
  opacity: 1;
  cursor: pointer;
}

@media screen and (min-width: 40em) {
  .spotlight {
    padding: 6em;
    text-align: left;
  }

  .spotlight h1, .spotlight p {
    text-align: left;
  }
}
/* ------------------- Project Cards ------------------- */

.project-card {
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: dotted 1px #ccc;
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.2em;
  color: #444;
}

.project-card p {
  font-size: 0.95em;
  line-height: 1.7;
  color: #555;
}

.project-card img {
  border-radius: 3px;
  margin-bottom: 1em;
}

.project-tags {
  font-size: 0.8em !important;
  color: #999 !important;
  font-style: italic;
  margin-top: -0.5em;
}

@media screen and (min-width: 40em) {
  .project-card .grid-2 {
    padding-top: 0.3em;
  }
}
