/* Blog pages: article layout on top of the site styles */

.article {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 140px 0 80px;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-faint);
  margin-bottom: 28px;
  transition: color .3s var(--ease);
}

.article__back:hover {
  color: var(--cyan);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.article__title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.article__lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  line-height: 1.6;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.article__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 42px 0 14px;
}

.article__body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article__body p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.article__body strong {
  color: var(--text);
  font-weight: 600;
}

.article__body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(103, 232, 249, .3);
}

.article__body ul,
.article__body ol {
  margin: 0 0 20px;
  padding-left: 4px;
}

.article__body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--text-soft);
}

.article__body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.article__body ol {
  counter-reset: step;
}

.article__body ol li {
  counter-increment: step;
}

.article__body ol li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .82rem;
}

.article__body pre {
  background: rgba(8, 10, 16, .9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.article__body code {
  font-family: "JetBrains Mono", monospace;
  font-size: .86em;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--cyan);
}

.article__body pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article__body blockquote {
  border-left: 2px solid var(--violet);
  padding: 4px 0 4px 20px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-style: italic;
}

.article__note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.article__note p:last-child {
  margin-bottom: 0;
}

.article__foot {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

/* Blog index listing */

.blog-index {
  position: relative;
  z-index: 2;
  width: var(--content-width);
  margin: 0 auto;
  padding: 140px 0 80px;
}

.blog-index__title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

.blog-index__intro {
  color: var(--text-soft);
  max-width: 58ch;
  margin-bottom: 46px;
}

@media (max-width: 760px) {
  .article,
  .blog-index {
    padding-top: 110px;
  }
}
