.article-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--text);
}

.article-byline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1rem;
}

/* Rendered from Markdown (see markdown_render.py) - real <p>/<br> structure
   now, not plain text, so this no longer needs white-space:pre-wrap to keep
   line breaks (that would double up spacing against the HTML's own). */
.article-body {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.2rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--accent3);
}

.article-body blockquote {
  margin: 0 0 1.2rem;
  padding: 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article-body pre {
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  text-align: left;
}

.preview-banner {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(255, 60, 110, 0.3);
  background: rgba(255, 60, 110, 0.05);
  padding: 0.6rem 0.9rem;
  margin-bottom: 2rem;
  /* inline-flex so the warning icon sits on the same line as the label. */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banner .icon {
  font-size: 1rem;
}

/* ─── ARTICLE: MOBILE ─── */
@media (max-width: 700px) {
  .article-body {
    font-size: 1rem;
  }

  /* Code blocks and tables in article markdown are the one thing an author
     can add that the page cannot reflow - they scroll inside their own box
     rather than widening the page. */
  .article-body pre,
  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}
