@import "reset.css";

body {
  font-size: 18px;
  line-height: 1.35em;
  font-family: "freight-sans-pro",sans-serif;
  position: relative;
  padding: 1em;
  color: #333;
}

h1 {
  font-size: 2em;
  font-weight: 600;
  line-height: 1.35em;
}

h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: .5em;
}

h4 {
  font-size: 1.25em;
  font-style: italic;
  font-weight: 500;
  margin-bottom: .5em;
  margin-top: 1em;
  line-height: 1.35em;
}

h5 {
  font-weight: 500;
  margin-bottom: .5em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  font-weight: 500;
  color: #0559AF;
}

a:hover {
  border-bottom: 2px solid #0559AF;
}

strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

img {
  max-width: 100%;
}


ul {
  list-style-type: disc;
  padding-left: 1.5em;
}
li {
  margin-bottom: .25em;
}

header {
  float: left;
  width: 100%;
  clear: both;
  margin-top: 1em;
}


#contact {
  padding: 8px;
  padding-top: 1em;
}
#contact .location {
  font-size: 1.25em;
}
#contact ul {
  margin-bottom: 1em;
  padding-left: 1.5em;
  line-height: 1.25em;
}
#contact .location, #contact .contact-details {
  list-style: none;
  padding-left: 0;
}
#contact li {
  margin-bottom: .5em;
}

.contact-details {
  font-size: 1.25em;
}
.contact-details li {
  margin-bottom: 0;
  line-height: 1em;
}

#site-title h1 {
  border-bottom: 4px solid lightgray;
  padding-bottom: .25em;
}

section {
  margin-top: 0em;
  padding-top: 2em;
  float: left;
  width: 100%;
  clear: both;
}

aside {
  float: left;
  width: 100%;
  clear: both;
  margin-top: 1em;
  line-height: 1.15em;
  padding-top: 2em;
  border-top: 3px solid lightgray;
}

#profile-photo img {
  border: 4px solid lightgray;
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
      -ms-border-radius: 8px;
          border-radius: 8px;
}

#summary .content {
  font-size: 1.25em;
  line-height: 1.35em;
}

@media (min-width: 30em) {
  #profile-photo {
    float: left;
    width: 45%;
    margin-right: 5%;
  }

  #contact {
    float: left;
    width: 50%;
  }
}

@media (min-width: 40em) {
  body {
    font-size: 20px;
  }
}

@media only screen and (min-width: 40em) and (max-width: 72em) {
  aside h5 {
    display: inline-block;
  }
  aside ul {
    padding-left: 0;
    list-style: none;
  }
  aside li {
    display: inline-block;
    padding: 0 .35em;
  }
  aside li:first-child {
    margin-left: -.35em;
  }
}

@media only screen and (min-width: 50em) {
  body {
    padding: 0;
  }
  #profile-photo {
    width: 100%;
  }
  #contact {
    width: 100%;
  }
  #contact ul {
    list-style: none;
    padding-left: 0;
  }
  aside {
    /*margin-top: 0;*/
    margin-top: -1em;
    border-bottom: 4px solid lightgray;
    padding-bottom: .5em;
    border-top: none;
    padding-top: 0;
    margin-top: -1em;
    position: fixed;
    /*top: 6.25em;*/
    top: 5.5em;
    background-color: white;
    width: 71.75%;
    right: 1.55%;
    padding-top: 1em;
  }
  aside h5 {
    margin-right: 1em;
  }
  aside ul {
    display: inline-block;
  }
  #site-title {
    width: 75%;
    float: right;
    padding: 20px;
    background-color: #FFF;
    position: fixed;
    right: 0;
  }
  header {
    padding: 20px;
    width: 25%;
    left: 0;
    top: 0;
    position: fixed;
    overflow: scroll;
    height: 100%;
    font-size: .875em;
    line-height: 1.4em;
  }
  main {
    /*margin-top: 5em;*/
    margin-top: 8em;
    position: fixed;
    padding: 20px;
    width: 75%;
    float: left;
    margin-left: 25%;
    top: 0;
    height: 100%;
    overflow-y: scroll;
  }
  .main-content {
    float: left;
    width: 100%;

  }
  
}

@media only screen and (min-width: 72em) {

  header {
    width: 15%;
  }
  #site-title {
    width: 85%;
  }
  main {
    width: 85%;
    margin-left: 15%;
  }
  .main-content {
    max-width: 40em;
  }
  aside {
    /*margin-top: -.5em;*/
    margin-top: 0;
    width: 20%;
    padding: 20px;
    height: 100%;
    position: fixed;
    padding-right: 0;
    right: 20px;
  }
  aside h5 {
    margin-right: 0;
  }
  aside ul {
    display: block;
  }
  aside .content {
    border: 2px solid lightgray;
    padding: 1em .75em;
    -webkit-border-radius: 8px;
       -moz-border-radius: 8px;
        -ms-border-radius: 8px;
            border-radius: 8px;
  }
  section:first-child {
    margin-top: -2em;
  }
  main {
    padding-right: 20%;
    margin-top: 5em;
  }
}