@font-face {
  font-family: "Ubuntu Mono";
  src: url("/fonts/UbuntuMono-Regular.ttf");
}

.list-posts .post-title {
  display: flex;
  align-items: flex-start;
}

.post-title .post-pub {
  font-family: "Ubuntu Mono";
  display: block;
  width: 80px;
}

.highlight {
  color: var(--accent-color);
}

.code-block {
  font-family: "Ubuntu Mono";
  padding: 16px 20px;
  border-radius: 10px 0 10px 10px;
  width: 100%;
  margin: 0;
}

.mermaid {
  padding: 16px 20px;
  border-radius: 10px;
  width: 100%;
  margin: 0;
}

.code {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
}

.code .code-lang,
.code .code-copy {
  font-family: "Ubuntu Mono";
  padding: 0 16px;
  font-size: 1em;
  border: 0;
  line-height: 1.7;
}

.code .code-copy {
  background-color: var(--dark-secondary-color, var(--light-tertiary-color));
  border-radius: 10px 10px 0 0;
  user-select: none;
  cursor: pointer;
  transition: all ease 0.1s;
  color: var(--dark-text-color, #fff);
}

.code .code-copy:hover {
  background-color: var(--dark-tertiary-color, var(--light-secondary-color));
  color: var(--dark-text-color, var(--light-text-color));
}

:not(pre)>code {
  display: inline-block;
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 2px;
  font-family: "Ubuntu Mono";
}

.heimu {
  background-color: black;
  color: black;
  transition: all ease 0.1s;
}

.heimu:hover {
  background-color: transparent;
  color: inherit;
}

.heimukuai {
  position: relative;
}

.heimukuai::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  transition: background-color ease 0.1s;
  pointer-events: none;
}

.heimukuai:hover::after {
  background-color: transparent;
}

.underline, .circle {
  display: inline-block;
  position: relative;
}

.underline::after {
  width: 100%;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  border-bottom: 2px solid;
  position: absolute;
  content: "";
}

.circle::after {
  width: 100%;
  height: 100%;
  bottom: -2px;
  left: -4px;
  padding: 0 2px;
  border: 2px solid;
  position: absolute;
  border-radius: 10px;
  content: "";
}

a > code {
  text-decoration: underline;
}
a:hover > code {
  color: var(--accent-color);
}