/*  ================ Fonts  ================ */
h1,.h1{
  font-size: 3.5rem;
  color: #030303;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 500;
}

@media (min-width: 768px){
  h1,.h1{
    font-size: 6rem;
    color: #030303;
  }
}

h2,.h2{
  font-size: 3rem;;
  color: #030303;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  display: inline-block;
}

.h3, h3 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: regular;
}

h4 {
  letter-spacing: .1rem; }

h5,.h5{
  font-size: 1.5em;
  line-height: 1.5;
  font-weight: 400;
  font-family: Graphik,Arial,sans-serif;  
}

/*  ================ Common Elements  ================ */

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body{
  color: #767676;
  margin: 0px;
  line-height: 1.5;
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: Graphik,Arial,sans-serif;
  color: #222; 
}

a {
  color: #5c68ff ;
  text-decoration: none;
  position: relative;
}

a:hover {
  color: #c8c2ff;
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  margin-bottom: 2.5rem
}

ul {
  list-style: none;
  padding-left: 1.1em;
  margin-bottom: 2.4em;
  list-style-type: square;
  color: #030303
}


/*  ================ Container  ================ */


.container {
  width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (min-width: 375px){
  .container {
    max-width: 768px;
  }
}

@media (min-width: 768px){
  .container {
    max-width: 990px;
  }
}


/*  ================ Header  ================ */

.header-container{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px){
  .header-container{
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

@media (min-width: 768px){
  .header-img{
    flex-basis: 40%;
    overflow: hidden;
    line-height: 0;
    max-width: 250px;
    margin-bottom: 0px;;
  }
}

@media (max-width: 768px){
  .header-img{
    overflow: hidden;
    line-height: 0;
    max-width: 200px;
    margin-bottom: 20px;
  }
}

.header-img:hover img {
  opacity: 0.3;
  transition-duration: 500ms;
}

.header-title{
  flex-basis: 60%;
}

.header-title p{
  margin-bottom: .5em;
}

/*  ================ Sections  ================ */

.section {
  margin-bottom: 2.4rem;
}

@media (min-width: 768px){
  .section {
    margin-bottom: 7.2rem;
  }
}

@media (min-width: 768px){
  .section h2{
    padding-bottom: 35px;
  }
}

.section a::after {
  border-radius: 1em;
  border-top: .1em solid #c8c2ff;
  content: "";
  position: absolute;
    right: 100%;
    bottom: .4px;
    left: 0;
  transition: right .4s cubic-bezier(0,.5,0,1),
              border-color .4s ease-out;
}

.section a:hover::after {
  border-color: #c8c2ff;
  right: 0;
}

/*  ================ Bio  ================ */
.bio-highlight{
  color: #030303;
}


/*  ================ Posts grid styling  ================ */

@media (min-width: 768px){
  .posts {
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    display: grid;
  }
}

.posts{
  margin: 0px;
  padding: 0;
  list-style: none;
}

.post{
  padding-bottom: 0;
}

.post-image-placeholder {
  overflow: hidden;
  line-height: 0;
  max-height: 200px;
  display: flex;
  align-items: center;
}

.post a:hover h3:hover {
  color: #5c68ff;
}

.post-title{
  font-family: Tiempos Headline,Arial,sans-serif;
  padding-top: 1rem;
  font-size: 2.5rem;
  -webkit-transition: color .3s;
  transition: color .3s;
  transition-property: color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  transition-delay: 0s;
  color: #030303

}

.post-description {
  color: #767676;
  margin: 0px;
}


/*  ================ Vitae  ================ */

.vitae-content{
  vertical-align: middle;
  list-style: none;
  position: relative;
  padding-left: 0px;
}

.vitae-content::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 14rem;
  left: 20.5%;
  width: 2px;
  display: block;
  margin-left: -1.5px;
  display: none;
  background-color: #e4e4e4;
}

@media (min-width: 768px){
  .vitae-content::before {
      display: inline;
      display: initial;
  }
}

@media (min-width: 992px){
  .vitae-content::before{
    bottom: 11rem;
  }
}

.vitae-content>li {
  position: relative;
  margin-bottom: 1rem;
  min-height: 5rem;
}

@media (min-width: 768px){
  .vitae-content>li {
      margin-bottom: 5rem;
  }
}

.vitae-content>li:after, .vitae-content>li:before {
  content: " ";
  display: table;
}

.vitae-content>li:after {
  clear: both;
}

@media (min-width: 768px){
  .vitae-item{
    display: -webkit-box;
      display: flex;
  }
}

.vitae-time-place{
  width: 100%;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .vitae-time-place{
    margin-bottom: 0;
    display: block;
    width: 16.66667%;
  }
}

.vitae-place{
  color: #030303;
}

.vitae-place, .vitae-time{
  display: inline-block;
}

@media (min-width: 768px) {
  .vitae-place, .vitae-time{
    display: block;
  }
}

.vitae-image{
  width: 16.66667%;
  height: 16.66667%;
  position: relative;
  display: block;
}

@media (min-width: 768px) {
  .vitae-image{
    height: 8.33333%;
    width: 8.33333%;
  }
}

.vitae-image-placeholder{
  border-radius: 100%;
  overflow: hidden;
  line-height: 0;
}

.vitae-image-placeholder img{
  z-index: 1;
  width: 100%;
  position: relative;
  height: auto;
  text-align: center;
  opacity: 1;
}

.vitae-image::after{
  content: " ";
  display: block;
  position: absolute;
  top: -5px;
  left: -5px;
  height: calc(100% + 6px);
  border-radius: 100%;
  background: #fff;
  border: 2px solid #e4e4e4;
  width: calc(100% + 6px);
}

.vitae-actual::after{
  border-color: #5c68ff;
}

.vitae-panel {
  position: relative;
  padding: 0;
  margin-top: -5.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .vitae-panel {
    padding: 0 0 0 2.7rem;
    margin-top: 0;
    width: 75%;
  }
}

.vitae-position{
  padding: .3rem 0 0 22%;
  min-height: 5rem;
}

@media (min-width: 768px) {
  .vitae-position{
    padding: 0;
    min-height: 0;
  }
}
.vitae-title{
  color: #030303;
  font-size: medium;
}

@media (min-width: 768px){
  .vitae-title{
    padding: 0;
    min-height: 0;
  }
}

.vitae-description {
  margin-top: 2rem;
}

@media (min-width: 768px){
  .vitae-description {
      margin-top: 0;
  }
}

/*  ================ Publications / Other Projects================ */

.publications-content, .other-projects-content{
  vertical-align: middle;
  list-style: none;
  padding-left: 0px;
}

.publications-content li, .other-projects-content li{
  margin-bottom: 5rem;
}

.publication-title, .other-project-title{
  font-size: medium;
  margin-bottom: .3rem;
  color: #030303
}

.other-project-year{
  font-size: 0.8em;
  color: #767676;
  font-weight: normal;
}

.publication-venue, .other-project-description {
  margin-bottom: 1rem;
}

.publication-authors, .other-project-description{
  color: #767676
}

.other-projects-content a:hover h3:hover {
  color: #5c68ff;
}

/*  ================ Footer  ================ */

.footer{
  display: flex;
  text-align: center;
  border-top: 1px solid #eee;
  padding: 15px 0 40px 0;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

@media (min-width: 768px) {
  .footer{
    flex-direction: row;
  }
}

.footer p{
  margin-bottom: 0px;
}

.footer-icons, .footer-sign{
  width:100%;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .footer-icons, .footer-sign{
    width:30%;
  }
}

.footer-thanks{
  width:100%;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .footer-thanks{
    width: 40%;
  }
}


/*  ================ Post pages  ================ */

.the-post-header{
  width: 100%;
  height: 6rem;
  display: -webkit-box;
  display: flex;
  justify-content: space-around;
  -webkit-box-align: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 5%);
  background-color: #fff;
}

@media (min-width: 768px) {
  .the-post-header{
      height: 8rem;
    }
}

.the-post-header .container{
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.posts-link{
  color: #030303
}

.the-post-title-placeholder{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  display: flex;
  flex-direction: column;
  min-height: 459px;
  margin-bottom: 7rem;
}

@media (min-width: 768px) {
  .the-post-title-placeholder{
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
  }
}

.the-post-title{
  font-size: 3rem;
  font-family: Tiempos Headline,Arial,sans-serif;
  color: #030303
}

@media (min-width: 768px) {
  .the-post-title{
    font-size: 4rem;
  }
}

.the-post-date{
  color:#5c68ff
}

.the-post-subtitle{
  font-size: 1.3em;
}

.the-post-image{
  vertical-align: middle;
  text-align: center;
}

.offset{
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width:100%;
}

.the-post-title-text{
  max-width: 500px;
  padding: 2.4rem;
}

@media (min-width: 992px) {
  .the-post-title-text{
    margin-left: auto;
    padding: 2.4rem 4rem 2.4rem 2.4rem;
  }
}

.the-post-title-image{
  overflow: hidden;
  line-height: 0;
  width: 100%;
}

.the-post-content{
  font-size: 19px;
  color: #030303;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .the-post-content{
    padding: 7.2rem 0;
    font-size: 19px;
  }
}

.the-post-container{
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .the-post-container{
    padding: 7.2rem 0;
    font-size: 19px;
  }
}

/*  ================ Code  ================ */

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 80%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px; }
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre; 
  overflow-x: auto;}
