li {
  margin: 5px 0;
}

.post-header {
  padding: 0;
}

.post-container {
  width: 80%;
}

.post-title {
  font-weight: normal;
  font-size: 2.2em;
  margin: 50px 0;
  width: 100%;
  position: relative;
  display: inline-block;
}

.post-title::before {
  content: "";
  position: absolute;
  background-color: var(--topic-color, black);
  height: 30px;
  width: 2px;
  bottom: -10px;
  left: -20px;
}

.post-title::after {
  content: "";
  position: absolute;
  background-color: var(--topic-color, black);
  width: 200px;
  height: 2px;
  bottom: -10px;
  left: -20px;
}

.post-meta {
  font-size: 1.3em;
  color: black;
  margin-left: 100px;
}

.post-article {
  font-size: 1.5em;
  line-height: 1.5em;
  padding-bottom: 50px;
}

.post-article a {
  text-decoration: underline;
}

article h1,
article h2,
article h3,
.post-article h1,
.post-article h2,
.post-article h3 {
  font-weight: normal;
  position: relative;
}

article h1,
.post-article h1 {
  padding-left: 1.5em;
}

article h2,
.post-article h2 {
  padding-left: 2em;
}

article h3,
.post-article h3 {
  padding-left: 2.5em;
}

article h1::before,
.post-article h1::before {
  content: "#";
}

article h2::before,
.post-article h2::before {
  content: "##";
}

article h3::before,
.post-article h3::before {
  content: "###";
}

article h1::before,
article h2::before,
article h3::before,
.post-article h1::before,
.post-article h2::before,
.post-article h3::before {
  position: absolute;
  left: 0;
  color: var(--topic-color, #000);
  margin-right: 0.5em;
}

article img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}

article pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  background: #f4f4f4 !important;
  border: 1px solid #e1e1e1;
}

pre * {
  background: #f4f4f4 !important;
}

:not(pre) > code {
  font-family: "Courier New", Courier, monospace;
  padding: 4px;
  margin: 0 5px;
  white-space: nowrap;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  background: #f4f4f4 !important;
}

.astro-code {
  font-size: 0.8em !important;
}

.post-article h1:has(.date),
.post-article h2:has(.date) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.post-article h1 .date,
.post-article h2 .date {
  font-weight: normal;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1.8em;
  }

  .post-meta {
    font-size: 1.2em;
  }

  .post-article {
    font-size: 1em;
  }
}
