@import "//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css";
@import "//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/dark.min.css" (prefers-color-scheme: dark);
/**
 * Default elements style
 */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.6rem;
  color: #111111;
}

h1 {
  margin-top: 0.5rem;
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  margin-top: 20px;
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

ul {
  margin: 0 20px;
  list-style-position: outisde;
}

p,
li,
summary {
  color: #111111;
  font-size: 1rem;
  text-align: start;
  line-height: 1.5;
}

p {
  margin: 1em 0;
  line-height: 1.4;
}

pre {
  overflow-x: auto;
  background: #eeeeee;
  border: 1px solid #dddddd;
  margin: 10px;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
  margin-top: 0.3rem;
}

a {
  color: #3b78b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

figure {
  margin-bottom: 30px;
}

figure > img {
  width: 100%;
}

figure > figcaption > h4 {
  font-size: 0.9rrem;
  color: #666;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

blockquote {
  font-style: italic;
  padding: 0 40px;
}

/**
 * Site wide classes
 */
.main {
  width: 800px;
  padding: 1rem;
  margin: 0 auto;
}

@media only screen and (max-width: 840px) {
  .main {
    width: calc(100% - 40px);
  }
}

/**
 * Post list styling
 */
.posts {
  list-style-type: none;
  margin: 0;

  li {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 6px;
  }

  li:first-child {
    border-top: none;
  }

  a {
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
  }

  time {
    flex-grow: 1;
    text-align: right;
    font-family: monospace;
    color: #666;
    font-size: 0.9rem;
    min-width: 15%;
  }

  @media only screen and (max-width: 600px) {
    li {
      flex-direction: column;
    }

    time {
      text-align: left;
    }

    a {
      white-space: normal;
    }
  }
}

/**
 * Single post styling
 */
article header time {
  font-size: 0.85rem;
  color: #333333;
}

#post-content img {
  max-width: 100%;
}

/**
 * Main header styling
 */
.main-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;

  a {
    color: #111111;
  }

  nav a{
    text-transform: uppercase;
    font-size: 0.7rem;
  }
}

/**
 * Footer styling
 */
footer {
  font-size: 0.75rem;
  color: #666;
  font-weight: normal;
  text-align: center;
  margin: 5px;
  text-transform: uppercase;
}

/**
 * Dark theme
 */
@media (prefers-color-scheme: dark) {
  body {
    background: #333;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  summary {
    color: #ccc;
  }

  a {
    color: white;
  }

  .posts {
    li {
      border-top-color: #777;
      a {
        color: #eee;
      }
    }

    time {
      color: #aaa;
    }
  }

  #post-content {
    pre {
      background-color: #2d2a2e;
      color: #f1f1f3;
    }
    a {
      color: #ccc;
      text-decoration: none;
      border-bottom: 2px solid #db4d86;
    }
    a:hover {
      color: white;
    }
  }

  .main-header {
    a {
      color: #eee;
    }
  }

}
