body, html, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  font-size: 16px;
  width: 100%;
  overflow-y: scroll;
}

header, footer, section, article, nav {
  font-size: 1rem;
}

p {
  font-size: 1rem;
  margin: 1.25rem 0;
}

article {
  line-height: 1.75rem;
}

hr {
  border: none;
  border-bottom: 0.2rem solid #ddd;
}

h1, h2, h3, h3, h5, h6 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
}

h1 {
  font-weight: 900;
  font-size: 2rem;
  border-bottom: 0.2rem solid #ddd;
  padding: 0 0 0.5rem 0;
  margin: 0 0 1rem 0;
}

h2 {
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0 0 0.5rem 0;
  margin: 0 0 0.5rem 0;
  border-bottom: 0.2rem solid #ddd;
}

h3, h3, h5, h6 {
  font-weight: bold;
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  color: #97a;
  border-bottom: 0.2rem solid #edf;
  display: inline-block;
}

main {
  background: #eee;
  width: 100%;
  min-height: 100%;
  position: absolute;
}

article, header {
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow:
    0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12)
  ;
}

a {
  transition: all .5s ease;
}

a:hover {
  transition: all .25s ease;
}

header a {
  color: unset;
  text-decoration: unset;
}

header h1 a:hover, header h1 a:focus, header h1 a:active {
  outline: none;
  color: #fff;
  text-shadow:
    0 0 2.2px #cad,
    0 0 5.3px #cad,
    0 0 10px #cad,
    0 0 17.9px #cad,
    0 0 33.4px #cad,
    0 0 80px #cad
  ;
}

header h1 a:active {
  color: #edf;
}

header nav a {
  font-size: 1rem;
}

header nav a, button {
  color:#333;
  font-size: 1rem;
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  background: #ddd;
  border-style: unset;
  cursor: pointer;
  transition: all .5 ease;
}

header nav a.open, button.open {
  background: #aaa;
  color: #333;
  transition: all .5 ease;
}

header nav a:hover, header nav a:focus, header nav a:active, button:hover, button:focus, button:active {
  background: #97a;
  color: #000;
  box-shadow: 0 0 0.25rem 0.25rem #cad;
  outline: none;
  transition: all .25 ease;
}

header nav a:active {
  color: #edf;
  transition: all .25 ease;
}

header nav a:hover.open, header nav a:focus.open, header nav a:active.open, button:hover.open, button:focus.open, button:active.open {
  background: #768;
  color: #000;
}

header nav a:active.open {
  color: #edf;
  transition: all .25 ease;
}

header nav a:last-child {
  margin-right: 0;
}

article a {
  text-decoration: unset;
  color:#333;
  display: inline;
  border-radius: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: #ddd;
}

article a:hover, article a:focus, article a:active {
  outline: none;
  background: #97a;
  box-shadow: 0 0 0.25rem 0.25rem #edf;
}

article a:active {
  color: #edf;
}

input {
  font-family: 'Exo 2', sans-serif;
  color:#333;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  border: 0.2rem solid #aaa;
  font-size: 1rem;
  margin: 1rem;
  transition: all .5s ease;
}

::placeholder {
  color: #97a;
}

input:focus, textarea:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0.25rem 0.25rem #cad;
}

footer {
  color:#777;
  text-align: center;
  margin-bottom: 2rem;
}

.accent-color {
  color: #97a;
}

#mobile-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
}

ul.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 1rem;
  text-align: center;
}

ul.projects li {
  display: inline-block;
  padding: 0.5rem;
  line-height: 0.5rem;
}

article a.project {
  display: block;
  border-radius: 10px;
  background: unset;
  color: unset;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0.2rem solid #ddd;
  box-sizing: border-box;
  overflow: hidden;
}

a:hover.project, a:focus.project, a:active.project {
  background: unset;
  box-shadow: unset;
  z-index: 10;
  box-shadow: 0 0 0.25rem 0.25rem #cad;
  border-color: #97a;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .5s ease;
}

a:hover.project img, a:focus.project img, a:active.project img {
  transition: all .25s ease;
  filter: brightness(50%);
}

.project .project-title {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  text-align: center;
  line-height: 1.5rem;
  width: 100%;
  height: 100%;
}

.project .project-title span {
  width: 100%;
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  letter-spacing: 0.075rem;
  text-shadow:
    0 0 2.2px rgba(0, 0, 0, 1),
    0 0 5.3px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 1),
    0 0 17.9px rgba(0, 0, 0, 1),
    0 0 33.4px rgba(0, 0, 0, 1),
    0 0 80px rgba(0, 0, 0, 1)
  ;
}

:active.project .project-title span {
  color: #edf;
} 

.project .project-title span div {
  display: inline-block;
  position: relative;
}

.project .project-title span div hr {
  margin: 0.25rem auto 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 0.2rem solid #fff;
  z-index: -2;
  box-shadow:
    0 0 2.2px rgba(0, 0, 0, 1),
    0 0 5.3px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 1),
    0 0 17.9px rgba(0, 0, 0, 1),
    0 0 33.4px rgba(0, 0, 0, 1),
    0 0 80px rgba(0, 0, 0, 1)
  ;
  width: 0;
  transition: all .5s ease;
}

:hover.project .project-title span div hr, :active.project .project-title span div hr, :focus.project .project-title span div hr {
  width: 100%;
  transition: all .25s ease;
}

:active.project .project-title span div hr {
  border-color: #edf;
  transition: all .25s ease;
}

article {
  overflow: hidden;
}

article img.profile {
  object-fit: cover;
  border: 0.2rem solid #ddd;
  float: right;
  clear: both;
  margin: 1rem 0 1rem 1rem;
  transition: all .5s ease;
}

.media iframe {
  border: 0.2rem solid #ddd;
  float: right;
  clear: both;
  margin: 1rem 0 1rem 1rem;
  transition: all .5s ease;
  background: #000;
}

p.tags a {
  padding: 0.1rem 0.6rem;
  margin: 0 0.5em;
  display: inline-block;
}

/* Transitions */

.page-fade-enter-active, .page-fade-leave-active {
  transition: opacity .25s ease;
}

.page-fade-enter, .page-fade-leave-to {
  opacity: 0;
}

.article-fade-enter-active, .article-fade-leave-active {
  transition: opacity .25s ease;
}

.article-fade-enter, .article-fade-leave-to {
  opacity: 0;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

/* Large Screens */

@media only screen and (min-width: 1023px) {
  article, header {
    max-width: 80%;
  }

  article {
    margin: 3rem auto;
  }

  header {
    margin: 2rem auto 3rem auto;
  }

  header nav {
    opacity: 1;
    transition: all .25s ease;
  }

  #mobile-menu {
    opacity: 0;
    transition: all .5s ease;
    visibility: hidden;
  }

  ul.projects li {
    width: 21rem;
    height: 12rem;
  }

  article img.profile, .media iframe {
    width: 33rem;
    height: 21rem;
    object-position: 50% 33%;
  }
}

/* Medium Screens */

@media only screen and (max-width: 1024px) and (min-width: 641px) {
  article, header {
    width: unset;
  }

  article {
    margin: 3rem 0;
  }

  header {
    margin: 2rem 0 3rem 0;
  }

  header nav {
    opacity: 1;
    transition: all .25s ease;
  }

  #mobile-menu {
    opacity: 0;
    transition: all .5s ease;
    visibility: hidden;
  }

  ul.projects li {
    width: 21rem;
    height: 12rem;
  }

  article img.profile, .media iframe {
    width: 33rem;
    height: 21rem;
    object-position: 50% 33%;
  }
}

/* Small Screens */

@media only screen and (max-width: 640px) {
  article, header {
    width: unset;
  }

  article {
    margin: 2rem 0;
  }

  header {
    margin: 0 0 2rem 0;
  }

  header nav {
    opacity: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  #mobile-menu {
    opacity: 1;
    transition: all .25s ease;
    visibility: unset;
  }

  header nav.mobile-menu-open {
    opacity: 1;
    margin-top: 1rem;
    transition: all .25s ease;
    height: 100%;
    visibility: unset;
  }

  header nav.mobile-menu-open a {
    display: block;
    margin: 1rem auto;
    width: 25%;
    text-align: center;
  }

  ul.projects li {
    width: 100%;
    height: 14rem;
    padding: 0.5rem 0;
  }

  article img.profile, .media iframe {
    width: 100%;
    height: 14rem;
    object-position: 50% 33%;
  }
}
