html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, li, img, figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 120%;
  color: #404040;
  background-color: #fff;
  position: relative;
  min-height: 100vh;
  padding-bottom: 150px;
}

img,
video {
  display: block;
  max-width: 100%;
}

figcaption {
  font-size: 80%;
  font-style: italic;
  text-align: right;
  padding-right: 5px;
}

main::after,
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

p {
  background-color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding: 0 20px;
  margin: 20px 0;
  font-weight: 300;
}

/* BACKGROUND IMAGE */
/* both ::before and ::after elements are needed to get around background-clip bug in Chrome */
body::before,
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
}

body::before {
  z-index: -2;
  background-image: url(../img/background03.png);
}

body::after {
  z-index: -1;
  border-style: solid;
  border-width: 100vh 50vh 0 0;
  border-color: transparent #fff transparent transparent;
}

/* HEADER & HEADINGS */

header {
  background-color: #f8f8ff;
  margin-bottom: 30px;
  padding: 20px;
  box-shadow: 0 10px 20px -20px rgba(0,0,0,0.19), 0 6px 6px -6px rgba(0,0,0,0.23);
}

.site-title {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #404040;
  font-size: 150%;
  margin-bottom: 10px;
}

  /* NAVIGATION */
nav ul {
  list-style: none;
  margin-left: auto;
  justify-content: space-around;
}

nav li:not(:last-of-type) {
  border-bottom: 1px solid black;
}

nav a {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #404040;
  padding: 5px 0;
}

nav a:hover {
  color: #43fdff;
}

h1, h2, h3, h4, h5, h6, header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

h1, .site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}

h1 {
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 10px;
}

/* FOOTER  */

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  clear: both;
  background-color: #f8f8ff;
  margin-top: 30px;
  padding: 20px;
  box-shadow: 0 -10px 20px -20px rgba(0,0,0,0.19), 0 -6px 6px -6px rgba(0,0,0,0.23);
}

.social-icons {
  margin: auto;
}

.social-icons h2 {
  text-align: center;
}

.social-icons img {
  display: inline-block;
}

/* HOME PAGE */

.home-page .subheading {
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.home-hero {
  margin: 20px auto;
}

.current-project {
  max-width: 1300px;
  margin: 0 auto 40px auto;
  clear: both;
}

.current-project img {
  margin: 0 20px 20px 0;
}

.current-project figure img {
  margin-bottom: 0;
}

.current-project figure {
  margin-bottom: 2px;
}

.current-project-description {
  margin: 0 20px;
}

.current-project-description p {
  font-weight: 400;
  background-color: transparent;
  padding: 0;
  margin: 0;
}

/* TEACHING PAGE */
.teaching-page {
  max-width: 800px;
  margin: 0 auto;
}

.teaching-page h2 {
  margin-bottom: 20px;
}

.teaching-page ul {
  list-style-position: inside;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.teaching-page li {
  line-height: 1.5;
  margin-bottom: 5px;
}

/* ABOUT PAGE */
.about-page {
  max-width: 1300px;
  margin: 0 auto;
}

  /* IMAGE */
.about-self-image {
  padding: 0 20px;
  margin-bottom: 20px;
}

  /* DEETS */
.deets {
  padding: 0 20px;
}

.deets ul {
  list-style-position: inside;
  font-weight: 300;
}

.deets li {
  font-size: 120%;
  margin: 5px 0;
  line-height: 1.5;
}

    /* BULLET IMAGES */
.deets ul {
  list-style: none;
}

.deets li::before {
  content: "";
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  width: 1em;
  height: 1em;
  margin-right: 5px;
  vertical-align: baseline;
  position: relative;
  top: 3px;
}

.deets li:first-of-type::before {
  background-image: url(../about/img/street-view.svg);
}

.deets li:nth-of-type(2)::before,
.deets li:nth-of-type(3)::before {
  background-image: url(../about/img/suitcase.svg);
}

.deets li:nth-of-type(4)::before {
  background-image: url(../about/img/map-marker-alt.svg);
}

.deets li:nth-of-type(5)::before {
  background-image: url(../about/img/graduation-cap.svg);
}

.deets li:nth-of-type(6)::before {
  background-image: url(../about/img/gamepad.svg);
}

  /* RESUME LINKS */
.resume-links,
.koan-links {
  clear: both;
  margin: 20px 0;
  padding: 0 20px;
}

.resume-link,
.koan-link {
  margin-bottom: 20px;
}

.resume-link a,
.koan-link a {
  display: block;
  padding: 30px;
  border-radius: 10px;
  color: #f8f8ff;
  background-color: #43fdff;
  font-size: 120%;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.resume-link a:hover,
.koan-link a:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  color: #404040;
  background-color: #f8f8ff;
}

.resume-link p {
  margin: 0;
  text-align: center;
  font-style: italic;
  background-color: transparent;
}

  /* BIO */
.bio {
  clear: left;
}

  /* SOCIAL LINKS */
.about-social-links {
  padding: 0 20px;
}

.about-social-links p {
  margin: 0;
  min-height: 50px;
}

.about-social-links img {
  float: left;
  margin: 0 20px 10px 0;
}

.about-social-link {
  clear: both;
  margin-bottom: 10px;
}

/* WORK TEASER PAGES */

  /* TEASER CARDS */
.teaser {
  padding: 0 20px;
  margin-bottom: 30px;
}

.teaser img {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  margin-bottom: 3px;
}

.teaser img:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.teaser h2 {
  margin-bottom: 5px;
}

.teaser p {
  padding: 0;
  margin: 0;
  line-height: 1.215;
  font-weight: 400;
  background-color: transparent;
}

.teaser-description a {
  color: #404040;
  text-decoration: none;
}

.teaser-description a:hover h2{
  text-decoration: underline;
}

/* WORK INDIVIDUAL PAGES */
.work-main-img {
  margin: 0 auto;
}

.work-main-img-centered {
  margin: 20px auto;
}

.work-item {
  max-width: 1300px;
  margin: 0 auto;
}

.work-item ul,
.work-item ol,
.work-item dl {
  background-color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding: 0 20px 0 40px;
  margin: 20px 0 20px 20px;
  font-weight: 300;
  list-style-position: inside;
}

/* ART INDIVIDUAL PAGES */

.art-media,
.art-image-credit,
.art-collaboration-credit {
  text-align: center;
  background-color: transparent;
}

.art-media,
.art-image-credit {
  margin: 0;
  font-style: italic;
}

.art-collaboration-credit {
  font-weight: 400;
}

.art-video {
  margin: 0 auto;
}

/* RESPSONSIVE */
@media screen and (min-width: 500px) {
  /* align nav links horizontally */
  header,
  nav ul {
    display: flex;
  }

  header {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  /* this selector must be equally specific as above */
  nav li:not(:last-of-type) {
    border-bottom: 0;
  }

  nav ul a {
    padding: 0 20px;
  }
}

@media screen and (min-width: 600px) {
  .work-main-img,
  .current-project img {
    float: left;
    max-width: 50%;
    margin: 0 20px 20px 20px;
  }

  .art-media,
  .art-image-credit,
  .art-collaboration-credit {
    text-align: left;
  }

  .art-video {
    margin: 0 20px 20px 20px;
  }

  .current-project figure img {
    max-width: 100%;
    float: none;
    margin-left: 0;
  }

  .current-project figure {
    max-width: 50%;
    float: left;
    margin-left: 20px;
    margin-right: 20px;
  }

  .work-item p {
    margin-left: 20px; /* prevent p background from extending past floated img */
  }

  .about-self-image {
    float: left;
    max-width: 40%;
  }

  .resume-links {
    display: flex;
    justify-content: space-around;
  }

  .resume-link {
    width: 45%;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 640px) {
  main.work-previews {
    display: flex;
    flex-wrap: wrap;
  }

  h1 {
    width: 100%;
  }

  .teaser {
    width: 50%;
  }
}

@media screen and (min-width: 756px) {
  .koan-links {
    clear: none;
    padding-left: 0;
    display: flex;
  }
}

@media screen and (min-width: 840px) {
  /* align all header content horizontally */
  header {
    flex-direction: row;
    align-items: baseline;
  }

  .site-title {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 860px) {
  .bio {
    float: left;
    width: 50%;
  }

  .about-social-links {
    float: left;
    width: 50%;
    margin-bottom: 30px;
  }
}

@media screen and (min-width: 1000px) {
  .teaser {
    width: 33.3333333%;
  }
}

@media screen and (min-width: 1230px) {
  .resume-links {
    clear: none;
    padding-left: 0;
  }
}
