/* ============================================
   Vexatry Global — blog_detail.html Styles
   Page-specific styles only; reuses design
   tokens from style.css (--primary, --accent,
   --border, --bg-soft, --text-primary, etc.)
   ============================================ */

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ---------- Author avatar (monogram) ---------- */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
}
.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

/* ---------- Article prose ---------- */
.article-prose {
  max-width: 720px;
}
.article-prose > * + * {
  margin-top: 1.25rem;
}
.article-prose h2 {
  margin-top: 3.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.article-prose h2:first-child {
  margin-top: 0;
}
.article-prose h3 {
  margin-top: 2.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.article-prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-prose ul,
.article-prose ol {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-prose ul {
  list-style: disc;
}
.article-prose ol {
  list-style: decimal;
}
.article-prose li {
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}
.article-prose li::marker {
  color: var(--primary);
}
.article-prose strong {
  font-weight: 600;
  color: var(--text-primary);
}
.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-prose a:hover {
  color: #1d4ed8;
}
.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.article-prose blockquote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: var(--bg-soft);
}
.article-prose blockquote p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reading-progress span {
    transition: none;
  }
}