html,
body {
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: 'Merriweather', serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  color: #222;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 23px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

a {
  outline: none;
}

/* inline code block */
p > code {
  font-family: Menlo, Monaco, Courier;
  font-size: 80%;
  background-color: rgba(0, 0, 0, 0.05);

  padding: 2px 4px;
  font-weight: 100;
  box-sizing: inherit;
}

/* multiline code block */
pre > code {
  font-family: Menlo, Monaco, Courier;
  font-size: 80%;
  background-color: rgba(27,31,35,.05);
  display: block;

  padding: 1.5em;
  font-size: .875rem;
  line-height: 1.6;
  overflow-x: auto;
  border-radius: 3px;
}

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

.wrapper {
  overflow: hidden;
  position: relative;
}

.header {
  padding: 20px 0;
  position: relative;
  background: #f5f5f5;
  border-bottom: 1px solid #eaeaea;
}

.nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: 'Lato', sans-serif;
  text-align: right;
}

.nav-logo {
  float: left;
  margin-top: -11px;
  transition: transform 150ms ease-out;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

.nav-logo  p {
  margin: 12px 0px 0px 15px;
  font-size: 20px;
  color: #111;

  display: none;
}

.nav-links {
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
  margin: 0 0 0 15px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #111;
}

.nav-links a:hover {
  color: #000;
}

.content {
  max-width: 700px;
  margin: 60px auto 80px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.comment {
  max-width: 700px;
  margin: 60px auto 80px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.article-title {
  font-size: 28px;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.article-date {
  color: #ccc;
}

.cp_tag01 {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp_tag01 li {
  display: inline-block;
  color: #ccc;
  font-size: 0.8em;
  margin-top: 5px;
}
.cp_tag01 a {
  line-height: 23px;
  position: relative;
  display: inline-block;
  height: 23px;
  margin: 0 5px 5px 5px;
  padding: 0 12px 0 18px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-decoration: none;
  color: #455a64;
  border-radius: 3px 3px 3px 3px;
  background: #eaeaea;
}
.cp_tag01 a::before, .cp_tag01 a::after {
  background: #fafcfc;
}
.cp_tag01 a::before {
  position: absolute;
  top: 9px;
  left: 7px;
  width: 6px;
  height: 6px;
  content: '';
  border-radius: 10px;
}
.cp_tag01 a::after {
  position: absolute;
  top: -1px;
  right: -5px;
  width: 0;
  height: 0;
  content: '';
  border-width: 13px 0 12px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #eaeaea;
  border-radius: 4px;
}
.cp_tag01 a:hover {
  /* color: #ffffff; */
  background-color: #dedede;
  transform: scale(1.05);
}
.cp_tag01 a:hover::after {
  border-left-color: #dedede;
}

.article-categories, .article-tags {
  display: flex;
  flex-wrap: wrap;
}

.article-tags {
  /* margin-bottom: 20px; */
}

.article-duration {
  margin: 5px 10px 0 0;
  float: right;
  font-size: 10px;
  font-family: 'Lato', sans-serif;
  padding: 1px 5px;
  font-weight: bold;
  border-radius: 3px;
  background: #bbb;
  color: #fff
}

.article-content > :first-child {
  margin-top: 50px;
}

.article-content h1 {
  margin-top: 1.95em;
  margin-bottom: 0;
}
.article-content h2 {
  margin-top: 1.95em;
  margin-bottom: 0;
}
.article-content h3 {
  margin-top: 1.95em;
  margin-bottom: 0;
}

.article-content a:not(.dont-hightlight) {
  text-decoration: none;
  color: inherit;
  border-bottom: 3px solid #CBF8DF;
  box-shadow: inset 0 -4px 0 #CBF8DF;
  background: transparent;
  transition: background 150ms ease;
}

.article-content a:not(.dont-hightlight):hover,
.article-content a:not(.dont-hightlight):focus {
  background: #CBF8DF;
}

/* Thumbnail */
.thumnail {
  margin-top: 40px;
}

/* Table of contents */
.x-toc {
  background: #f9f9f9 none repeat scroll 0 0;
  border: 1px solid #aaa;
  display: table;
  font-size: 95%;
  margin-top: 60px;
  margin-bottom: 60px;
  padding: 15px;
  width: auto;
}

.x-toc > .x-toc-title {
  font-weight: 600;
  text-align: center;
}

#TableOfContents > ul {
  padding-inline-start: 20px;
}

#TableOfContents > ul, #TableOfContents > li {
  list-style: outside none none !important;
}


.list-content > ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.list-content > ul > li {
  padding-top: 4px;
  margin: 0 10px;
  list-style: none;
}

.highlight {
  border-radius: 3px;
  position: relative;
  margin: 40px 0;
  font-size: 14px;
}

p + .highlight {
  margin: 20px 0;
}

.highlight pre {
  padding: 10px;
}

.archive {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.3em;
  text-align: center;
  color: #111;
}

.archive-title {
  font-size: 32px;
  margin: 60px 0 25px 0;
}

.archive-item {
  margin: 5px 0 15px;
  padding: 0;
}

.archive-item-date {
  color: #ccc;
  font-size: 14px;
  padding: 5px 0;
  margin-top: 5px;
  display: block;
}

.archive-item-link {
  display: inline-block;
  text-decoration: none;
  font-size: 21px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

.archive-item-link:hover {
  border-bottom-color: #222;
}

.footnotes li {
  font-size: 0.9em;
  margin-bottom: 7px;
  word-wrap: anywhere;
}

.footer {
  padding: 25px 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ccc;
  font-size: 14px;
}

.footer-links li {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 150ms ease;
  margin: 0 15px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #222;
}

.footer-links li::before {
  content: '/';
  position: relative;
  left: -2px;
}

.footer-links li:first-child::before {
  display: none;
}
.footer-links-kudos img {
  position: relative;
  top: 6px;
  margin-left: 2px;
}

.footer-links + .footer-links {
  margin-top: 5px;
}

.katex {
  font-size: 1.1em !important;
}

@media (min-width: 600px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

  .header {
    padding: 25px 0;
  }

  .nav-logo {
    margin-top: -13px;
    display: flex;
    justify-content: space-between;
  }

  .nav-logo img {
    max-height: 50px;
  }

  .nav-logo  p {
    display: block;
  }

  .nav-links {
    font-size: 18px;
  }

  .nav-links li {
    margin: 0 0 0 30px;
  }

  .content {
    font-size: 19px;
    line-height: 1.8;
    margin: 80px auto;
  }

  .highlight {
    font-size: 16px;
    margin: 40px -20px;
  }

  .archive {
    text-align: left;
  }

  .archive-title {
    font-size: 38px;
  }

  .archive-item-date {
    font-size: 19px;
    text-align: right;
    float: right;
  }


  .archive-item-link {
    /* limit post title length */
    max-width: 520px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .article-title {
    font-size: 32px;
  }

  .article-duration {
    font-size: 12px;
  }

  .footer-links {
    font-size: inherit;
  }
}
