@import "fonts/fonts.css";

body {
  font-family: 'PT Sans';
  font-size: 15px;
  line-height: 1.5;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
}

h1, h2, h3 {
  font-family: Quicksand;
  color: black;
  margin: 0;
}

h2 {
  color: #DB1818;
}

header h1 {
  color: #DB1818;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}

a {
  color: #DB1818;
  text-decoration: none;
}

code {
  font-family: 'PT Mono';
  border: solid 1px #c5c5c5;
}

blockquote {
  font-style: italic;
}

/** Layout */

header, main {
  min-width: 200px;
  max-width: 640px;
  box-sizing: border-box;
  margin: 30px auto 0;
  padding-right: 20px;
}

main img {
  display: block;
  max-width: 100%;
  margin: 5px auto;
}

.contact img {
  vertical-align: text-bottom;
  height: 24px;
}

nav {
  font-size: 16px;
  text-align: right;
  width: 110px;
  box-sizing: border-box;
  position: absolute;
  margin: 0 0 0 -130px;
}

nav .responsive-menu-toggle {
  display: none;
}

nav .avatar {
  height: 72px;
  width: 72px;
  border-radius: 36px;
}

nav .links {
  margin-top: 20px;
  padding: 0 10px 0 20px;
  border-right: solid 1px black;
  visibility: visible;
}

nav .links > * {
  display: block;
}

nav .links > a {
  font-size: 14px;
  text-decoration: underline;
  color: black;
}

.links > span {
  font-family: Quicksand;
  font-weight: bold;
  margin-top: 10px;
  color: #DB1818;
}

.links > span:first-child {
  margin-top: 0;
}

.date {
  color: black;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 4px;
  border: solid 1px #DB1818;
}

@media (max-width: 900px) {
  header, main {
    margin-left: 130px;
  }
}

@media (max-width: 460px) {
  header, main {
    padding-left: 20px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    background-color: #f5f5f5;
    text-align: left;
  }

  nav .responsive-menu-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 4px;
    cursor: pointer;
  }

  nav .avatar {
    height: 24px;
    width: 24px;
    border-radius: 12px;
    position: absolute;
    left: 50%;
    margin: 4px -12px;
  }

  nav .links {
    visibility: hidden;
    position: absolute;
    background-color: #f5f5f5;
    border-right: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    padding: 10px;
    margin: 0;
  }

  nav .links.shown {
    visibility: visible;
  }

  header, main {
    margin: auto;
  }

  header .contact {
    margin-top: 40px;
    text-align: center;
  }
}

