@font-face {
  font-family: "PlexSans";
  src: url("/fonts/IBMPlexSans-Regular-Pi.woff2") format("woff2"),
    url("/fonts/IBMPlexSans-Regular-Pi.woff") format("woff"),
    url("/fonts/IBMPlexSans-Regular.ttf") format("truetype"),
    url("/fonts/IBMPlexSans-Regular.otf") format("opentype");
}

@font-face {
  font-family: "PlexSerif";
  src: url("/fonts/IBMPlexSerif-SemiBold-Pi.woff2") format("woff2"),
    url("/fonts/IBMPlexSerif-SemiBold-Pi.woff") format("woff"),
    url("/fonts/IBMPlexSerif-SemiBold.ttf") format("truetype"),
    url("/fonts/IBMPlexSerif-SemiBold.otf") format("opentype");
}

html {
  font-size: 18px;
  font-family: "PlexSans", Helvetica, sans-serif;
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .gist-file .gist-data {
    font-size: 16px;
  }

  .mugshot-container {
    display: none;
  }
}

body,
html {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 30px;
  margin: 0;
  line-height: 1.6rem;
}

.twitter-follow-button {
  display: inline-block;
  vertical-align: bottom;
}

body {
  /*padding-bottom: 3rem;*/
}

code {
  font-size: 0.75em;
}

* {
  margin: 0;
  padding: 0;
}

nav {
  padding: 2rem 0;
  margin-bottom: 1rem;
  line-height: 2rem;
}

hr {
}

header > *:not(:first-child),
section > *:not(:first-child),
article > *:not(:first-child) {
  margin-top: 1.5rem;
}

header > *:not(:last-child),
section > *:not(:last-child),
article > *:not(:last-child) {
  margin-bottom: 1rem;
}

article {
  padding-bottom: 1rem;
}

article p {
  text-align: left;
}

code {
  background-color: #ededed;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

a {
  text-decoration: none;
  color: #1891ac;
}

a:hover {
  color: #1f5f8b;
}

h1 > *,
h2 > *,
h3 > *,
h4 > *,
h5 > *,
h6 > * {
  color: inherit;
}

h1,
h2 {
  line-height: 1.8rem;
}

ul,
ol {
  margin-left: 1.2rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-left: 1rem;
}

li {
  padding-left: 0.2rem;
  padding-bottom: 0.5rem;
}

time {
  font-style: italic;
}

.main-heading {
  color: inherit;
  /* font-family: "PlexSans" !important; */
  font-size: 2.5rem;
  font-weight: bold;
  display: inline-block;
  line-height: 2.8rem;
}

.main-heading > h1 {
  font-size: inherit;
  line-height: inherit;
  margin: inherit;
  padding: inherit;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
}

.mugshot {
  display: block;
  border: 1px solid black;
  margin-bottom: 1rem;
  float: right;
  width: 150px;
  height: 150px;
}

article img {
  display: block;
  margin: 0 auto;
  max-width: 80%;
}

blockquote {
  padding-left: 2rem;
  padding-right: 2rem;
  font-style: italic;
}

blockquote > p {
  margin-top: inherit;
  margin-bottom: inherit;
}

.nav {
  margin-top: 0.5rem;
}

.nav > * {
  margin-right: 0.5rem;
}

.nav > *:hover {
  text-decoration: underline;
}

.zigzag {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.inline-logo {
  display: inline-block;
  height: 1.6rem;
  vertical-align: middle;
  margin-top: -0.2rem;
}

.comments {
  margin-top: 1rem;
}

.comments form {
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.comments input {
  margin-bottom: 0.2rem;
  padding: 2px;
  font-size: 0.8rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: none;
  display: block;
  border: 1px solid black;
}

.comments textarea {
  padding: 2px;
  font-size: 0.8rem;
  border-radius: 2px;
  width: 20rem;
  height: 10rem;
  box-shadow: none;
  border: 1px solid black;
  display: block;
}

.comments button {
  margin-top: 1rem;
  padding: 5px;
  font-size: 1rem;
  border: 1px solid black;
  cursor: pointer;
}


.comment {
  margin-top: 1rem;
}

.comment img {
  /* vertical-align: middle; */
}

.comment-body {
  padding-top: 10px;
}

/* Util */

.no-deco {
  text-decoration: none;
  color: inherit;
}

.no-deco:hover {
  color: inherit;
}

.no-deco:active {
  color: inherit;
}

.deco {
  color: #1f5f8b;
}

.pull-right {
  float: right;
}

hr.zig,
hr.zag {
  border: none;
  height: 30px;
}

hr.zig {
  background: linear-gradient(-155deg, #ffffff 20px, rgba(0, 0, 0, 0) 0) 0 5px,
    linear-gradient(155deg, #ffffff 20px, rgba(0, 0, 0, 0) 0) 0 5px;
  background-color: rgba(0, 0, 0, 0);
  background-position: center bottom;
  background-size: 20px 40px;
  position: relative;
}

hr.zag {
  background: linear-gradient(-155deg, #1891ac 20px, rgba(0, 0, 0, 0) 0) 0 5px,
    linear-gradient(155deg, #1891ac 20px, #ffffff 0) 0 5px;
  background-color: rgba(0, 0, 0, 0);
  background-position: center bottom;
  background-size: 20px 40px;
  margin-top: -28px;
}

/*Overrides*/

.gist-file .gist-data {
  max-height: 300px;
}
