/* Preserve the blog's original Terminal "green" color scheme. */
:root {
  --background: #1f222a;
  --foreground: #ffffff;
  --accent: #78e2a0;
}

/* The original site displayed images without the newer theme's accent frame. */
img {
  border: 0;
  padding: 0;
}

/* Captions written with {{< center >}} are smaller than body text. */
.image-caption {
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

/* Match the original Terminal v3 content styling. */
.post-content {
  margin-top: 30px;
}

.post-meta {
  color: rgb(120 226 160 / 70%);
}

.post-content a:not(.hanchor) {
  color: inherit;
}

.post-content ul {
  margin: 16px 0 16px 22px;
}

.post-content :not(pre) > code {
  background: rgb(120 226 160 / 20%);
  border: 0;
}

.post-content pre {
  background: transparent !important;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  margin: 40px 0;
  padding: 20px 10px;
}

.post-content pre code {
  color: var(--accent);
}

.post-content .highlight {
  border: 0;
}

.post-content pre + pre {
  border-top: 0;
  margin-top: -40px;
}

.post-content blockquote {
  margin: 40px 0;
}

/* Restore the old theme's heading scale and vertical rhythm. */
.headings--one-size h1,
.headings--one-size h2,
.headings--one-size h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.headings--one-size h4,
.headings--one-size h5,
.headings--one-size h6 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.headings--one-size h1:not(:first-child),
.headings--one-size h2:not(:first-child),
.headings--one-size h3:not(:first-child),
.headings--one-size h4:not(:first-child),
.headings--one-size h5:not(:first-child),
.headings--one-size h6:not(:first-child) {
  margin-top: 40px;
}

.headings--one-size h2 {
  margin-bottom: 18.592px;
}

.headings--one-size h3 {
  margin-bottom: 22.4px;
}
