.article h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  background-color: var(--bg-elev);
  border-left: 3px solid var(--blue);
  font-style: italic;
}

.article li {
  margin-bottom: 0.35em;
}

.article code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article :not(pre) > code {
  padding: 0.15em 0.35em;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.article pre {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article pre[class*="language-"],
.article code[class*="language-"] {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.article pre[class*="language-"] {
  margin: 1.5rem 0;
  background-color: var(--bg-elev);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.article th,
.article td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
}

.article th {
  color: var(--heading);
  background-color: var(--bg-elev);
}

.article tr:nth-child(even) {
  background-color: var(--bg-elev);
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--accent-strong);
  background-color: var(--bg);
  border: 1px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
}

.copy-button:hover {
  color: #fff;
  background-color: var(--blue-soft);
  border-color: var(--blue-soft);
}

.share-buttons {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.share-button:hover {
  color: #fff;
  background-color: var(--blue-soft);
  border-color: var(--blue-soft);
}

.back-to-top {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--accent);
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 10;
}

.back-to-top:hover {
  color: var(--heading);
  border-color: var(--accent);
}

#disqus_thread {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 55.99rem) {
  .share-buttons {
    display: none;
  }
}
