/* ═══════════════════════════════════════════════
   Article / Post page styles
   Extends style.css
═══════════════════════════════════════════════ */

.article-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

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

.back-link svg { flex-shrink: 0; }

.article-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-date, .article-author, .article-read {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-date { color: var(--accent); opacity: 0.7; }

.meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.article-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--accent-dim);
  letter-spacing: 0.05em;
}

/* ─── Article body ─── */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.article-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 32px 0 12px;
}

.article-body ul, .article-body ol {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-body ul { list-style: none; padding-left: 0; }

.article-body ul li {
  padding-left: 20px;
  position: relative;
}

.article-body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.article-body ol { list-style: decimal; }
.article-body ol li { padding-left: 4px; }

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

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--accent);
}

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

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.callout strong { color: var(--accent); }

.checklist {
  list-style: none !important;
  padding-left: 0 !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px !important;
  margin: 24px 0;
}

.checklist li {
  padding-left: 28px !important;
  position: relative;
  margin-bottom: 10px;
}

.checklist li::before {
  content: '✓' !important;
  position: absolute;
  left: 0;
  color: var(--accent) !important;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── Article footer nav ─── */
.article-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 80px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

@media (max-width: 640px) {
  .article-hero-inner, .article-body, .article-nav { padding-left: 20px; padding-right: 20px; }
  .article-title { font-size: 1.5rem; }
}
