html, body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  overflow-y: scroll;
  background: #1d1f21;
}

@media print {
  h1, li, a, ul {
    page-break-inside: avoid;
  }
}

body {
  font-family: monospace;
  font-size: 16px;
  color: #c9cacc;

  box-sizing: border-box;
  padding: 0 1rem;
  max-width: 780px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  overflow: visible;
}

main {
  flex: 1;
}

footer {
  color: #666;
  font-size: 11px;
  margin: 16px auto 30px auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  line-height: 48px;
}

#title {
  flex: 0 0 auto;
  font-size: 20px;
  padding-right: 8px;
  color: #eee;
  text-decoration: none;
}

header > nav {
  flex: 0 0 auto;
}

header > nav > ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
  line-height: 15px;
}

header > nav > ul > li {
  display: inline-block;
  border-right: 1px dotted #2bbc8a;
  margin-right: 15px;
  padding-right: 15px;
}

@media (max-width: 350px) {
  header > nav > ul > li {
    margin-right: 8px;
    padding-right: 8px;
  }
}

header > nav > ul > li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

header > nav> ul > li > a {
  text-decoration: none;
  color: #2bbc8a;
}

header > nav> ul > li > a:hover {
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 100% 6px;
  /* border-bottom: 1px solid #2bbc8a; */
  background-image: linear-gradient(transparent, transparent 5px, #2bbc8a 5px, #2bbc8a);
}

/* Main */
main h1 {
  letter-spacing: 0.01em;
  font-size: 1.5em;
  font-style: normal;
  font-weight: 700;
  color: #2bbc8a;
  margin-top: 3rem;
  margin-bottom: 1rem;
  display: block;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  margin: 16px 0;
  text-align: left;
}

main h2, main h3, main h4, main h5, main h6 {
  color: #eee;
}

main h2 {
  position: relative;
  font-size: 20px;
  margin-top: 40px;
}

main h2::before {
  content: "#";
  color: #2bbc8a;
  position: absolute;
  left: -16px;
  top: -1px;
  font-size: 1.2rem;
  font-weight: bold;
}

main a {
  text-decoration: none;
  color: #c9cacc;
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 100% 6px;
  /* border-bottom: 1px solid #c9cacc; */
  background-image: linear-gradient(transparent, transparent 5px, #c9cacc 5px, #c9cacc);
}

main a:hover {
  /* border-bottom: 1px solid #d480aa; */
  background-image: linear-gradient(transparent, transparent 4px, #d480aa 4px, #d480aa);
}

/* Aricles */
ul.articles {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.articles > li {
  margin-bottom: 6px;
  display: flex;
}

ul.articles > li > time {
  flex: 0 0 auto;
  color: #666;
  margin-right: 32px;
}

@media (max-width: 430px) {
  ul.articles > li {
    margin-bottom: 12px;
    display: list-item;
  }
  ul.articles > li > time {
    display: block;
  }
}

/* Tags */
ul.tags {
  display: inline;
  list-style-type: none;
  padding: 0;
}

ul.tags.all {
  display: block;
  margin: 8px 0;
}

ul.tags > li {
  display: inline;
}

/* Article */
article {
  font-family: monospace;
  line-height: 24px;
  text-align: justify;
}

article .meta {
  text-align: left;
}

article blockquote {
  border-left: 2px solid #c9cacc;
  padding-left: 10px;
  margin: 0 10px;
}

/* Highlight */
code, pre.code {
  font-family: monospace;
  background: #212326;
  color: #d1d9e1;
}
code {
  border-radius: 2px;
  border: 1px dotted #666;
  padding: 0 5px;
}
pre.code {
  padding: 10px 15px;
  margin: 1rem 0 1rem 0;
  overflow-x: auto;
  border-radius: 4px;
}

.hljs-meta, .hljs-meta-keyword, .hljs-keyword, .hljs-literal {
  color: #c9c;
}
.hljs-meta-string, .hljs-string {
  color: #8abeb7;
}
.hljs-number {
  color: #f99157;
}
.hljs-comment {
  color: #969896;
  font-style: italic;
}
.hljs-title, .hljs-built_in {
  color: #b5bd68;
}

/* Scrollbar */
html {
  scrollbar-color: #2bbc8a #1d1f21;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #1d1f21;
}

::-webkit-scrollbar-thumb {
  background: #2bbc8a;
}

dt:first-child {
  margin-top: 0;
}

dt, dd {
  margin-top: 8px;
}

dt {
  float: left;
}

dd {
  clear: right;
  margin-left: 120px;
}

dl.skills > dt {
  font-weight: bold;
}

dl.skills > dd {
  padding-bottom: 8px;
  border-bottom: 1px dashed #c9cacc;
}

dl.skills > dd:last-child {
  border-bottom: none;
}

ul {
  list-style-type: square;
  padding-left: 20px;
}
