/* Article page styles — extends style.css */

/* ── ARTICLE HEADER ── */
.article-header {
  background: var(--bg);
  padding: 24px 0;
}

.article-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.article-header .header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: start;
}

.article-header .back-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.article-header .back-link:hover {
  color: var(--accent);
}

.article-header .brand-center {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  justify-self: center;
}

.article-header .brand-center:hover {
  color: var(--accent);
}

.article-header .brand-center .initial {
  font-size: 30px;
}

.article-header .header-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-self: end;
}

.article-header .header-nav-icons {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.article-header .header-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.article-header .header-nav a:hover {
  color: var(--accent);
}

.article-header .header-nav .gear-btn {
  color: var(--text-dim);
}

.article-header .header-nav .gear-btn:hover {
  color: var(--text);
  background: var(--border-light);
}

/* ── ARTICLE BODY ── */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

article h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

article .byline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 48px;
}

article h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

article h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

article p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: var(--text-mid);
}

article blockquote {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.5;
}

article ul, article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

article li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

article code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--surface-warm);
  padding: 2px 6px;
  border-radius: 4px;
}

article pre {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
}

article pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

article th, article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

article th {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

article td {
  color: var(--text-mid);
}

article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .article-header .header-nav {
    display: none;
  }
  article h1 { font-size: 26px; }
}
