.post-single {
  font-size: 16px;
  line-height: 1.68;
}

.post-title {
  font-size: 34px;
  line-height: 1.25;
}

.post-content h1 {
  font-size: 30px;
}

.post-content h2 {
  font-size: 25px;
}

.post-content h3 {
  font-size: 20px;
}

.post-content .article-terms {
  padding: 14px 18px;
  border-inline-start-color: var(--secondary);
  border-radius: 0 6px 6px 0;
  background: var(--code-bg);
}

.post-content .article-terms > :last-child {
  margin-bottom: 0;
}

.post-content .article-callout-title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85em;
  letter-spacing: 0.08em;
}

.post-content img {
  max-width: 88%;
  max-height: 72vh;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.post-content mark {
  padding: 0.08em 0.22em;
  border-radius: 0.2em;
  background: color-mix(in srgb, #e7b85e 42%, transparent);
  color: inherit;
}

.math-block {
  margin: 1.25rem 0;
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-block .katex-display {
  margin: 0;
  padding-inline: 1rem;
}

.post-content .katex {
  font-size: 1.04em;
}

.math-error {
  color: #b42318;
  white-space: pre-wrap;
}

.legacy-timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--border);
}

.legacy-timeline > h2 {
  margin: 0 0 1.6rem;
}

.timeline-item {
  position: relative;
  margin: 0 0 1.75rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.45rem;
  left: -1.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--theme);
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.timeline-date {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-weight: 600;
}

.timeline-date span {
  margin-left: 0.6rem;
  color: var(--secondary);
  font-size: 0.85em;
  font-weight: 400;
}

.timeline-body {
  color: var(--content);
}

.toc-level-3 {
  margin-left: 1rem;
}

.toc-level-4 {
  margin-left: 2rem;
}

@media (max-width: 640px) {
  .post-single {
    font-size: 15.5px;
  }

  .post-title {
    font-size: 30px;
  }

  .post-content img {
    max-width: 100%;
    max-height: none;
  }

  .legacy-timeline {
    padding-left: 1.1rem;
  }

  .timeline-item::before {
    left: -1.4rem;
  }
}
