body {
  margin: 0;
  color: #171717;
  background: #fbfbfa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #155d91;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #d95f02;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #202124;
  color: #fff;
  padding: 0 14px;
  border-bottom: 3px solid #336699;
}

.topbar a {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  padding: 10px 11px;
}

.topbar a:hover {
  background: #ff6600;
}

.topbar a.active {
  background: #336699;
}

.brand {
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 600;
  margin-left: -8px;
}

.topbar .brand:hover {
  background: transparent;
  color: #ffb066;
}

.navlinks {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  white-space: nowrap;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 18px 50px;
}

.intro {
  margin-bottom: 40px;
  border-bottom: 1px solid #dedede;
  padding-bottom: 22px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: #111;
  font-weight: 650;
}

h1 {
  font-size: 40px;
  margin: 0 0 8px;
}

h2 {
  font-size: 25px;
  margin: 34px 0 12px;
}

h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 18px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 22px auto;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
}

.post-list a {
  font-weight: 600;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tags-inline a,
.tag-list a {
  color: #555;
  font-size: 13px;
  text-decoration: none;
}

.tags-inline a::before {
  content: "#";
}

.tags-inline a:hover,
.tag-list a:hover {
  color: #d95f02;
  text-decoration: underline;
}

.tag-list {
  columns: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  break-inside: avoid;
  padding: 4px 0;
}

.tag-list span {
  color: #777;
  font-size: 13px;
}

time {
  color: #676767;
  font-size: 15px;
}

.article-head {
  border-bottom: 1px solid #dedede;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

pre {
  border-left: 3px solid #336699;
  background: #f4f4f2;
  overflow-x: auto;
  padding: 12px 14px;
  margin: 22px 0;
}

code {
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.95em;
}

p code,
li code {
  background: #eeeeec;
  padding: 2px 5px;
}

.footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #dedede;
}

@media (max-width: 560px) {
  .topbar {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
  }

  .navlinks {
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow-x: visible;
  }

  .topbar a {
    padding: 10px 8px;
  }

  .post-list li {
    display: block;
  }

  .post-list time {
    display: block;
  }

  .tag-list {
    columns: 1;
  }
}
