/* Comprehensive Minima-style CSS for GitHub Pages */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #111;
  background-color: #fdfdfd;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.wrapper {
  max-width: calc(800px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

/* Header */
.site-header {
  border-top: 5px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 55.95px;
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
  text-decoration: none;
  color: #424242;
}

.site-title:hover {
  color: #111;
  text-decoration: none;
}

.site-nav {
  float: right;
  line-height: 54px;
}

.site-nav .nav-trigger {
  display: none;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: #111;
  line-height: 1.5;
  margin-left: 20px;
  text-decoration: none;
}

.site-nav .page-link:hover {
  color: #000;
}

/* Main content */
.page-content {
  flex: 1;
  padding: 30px 0;
}

/* Home page */
.home {
  margin-bottom: 30px;
}

.page-heading {
  font-size: 32px;
  margin-bottom: 30px;
}

/* Posts */
.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list > li {
  margin-bottom: 30px;
}

.post-list h3 {
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: 400;
}

.post-meta {
  font-size: 14px;
  color: #828282;
  margin-bottom: 10px;
}

.post-link {
  display: block;
  font-size: 24px;
  text-decoration: none;
  color: #111;
}

.post-link:hover {
  color: #000;
  text-decoration: none;
}

/* Post content */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 15px;
}

.post-content {
  margin-bottom: 30px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 24px; }
.post-content h4 { font-size: 20px; }

.post-content p {
  margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.post-content li {
  margin-bottom: 5px;
}

.post-content code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
  padding: 2px 6px;
}

.post-content pre {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
  padding: 8px 12px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.post-content pre code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
  background-color: transparent;
}

.post-content blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
  margin-bottom: 15px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
  background-color: #f8f8f8;
  margin-top: auto;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col-wrapper {
  display: flex;
  margin-left: -15px;
}

.footer-col {
  padding-left: 15px;
  margin-bottom: 15px;
}

.footer-col-1 {
  width: calc(35% - 15px);
}

.footer-col-2 {
  width: calc(20% - 15px);
}

.footer-col-3 {
  width: calc(45% - 15px);
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.contact-list li,
.social-media-list li {
  margin-bottom: 5px;
}

.contact-list a,
.social-media-list a {
  color: #828282;
  text-decoration: none;
}

.contact-list a:hover,
.social-media-list a:hover {
  color: #111;
}

/* RSS link */
.rss-subscribe {
  font-size: 14px;
  color: #828282;
  margin-top: 20px;
}

.rss-subscribe a {
  color: #828282;
  text-decoration: none;
}

.rss-subscribe a:hover {
  color: #111;
}

/* Links */
a {
  color: #2a7ae4;
  text-decoration: none;
}

a:hover {
  color: #1756a9;
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 800px) {
  .wrapper {
    max-width: calc(800px - (30px));
    padding-right: 15px;
    padding-left: 15px;
  }
  
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }
  
  .site-nav .nav-trigger {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }
  
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }
  
  .site-nav .trigger {
    clear: both;
    display: none;
  }
  
  .site-nav:hover .trigger {
    display: block;
    padding-bottom: 5px;
  }
  
  .site-nav .page-link {
    display: block;
    padding: 5px 10px;
    margin-left: 20px;
  }
  
  .footer-col-wrapper {
    flex-direction: column;
  }
  
  .footer-col {
    width: 100%;
  }
}
