/* Redsparks /insights/* article styles
 * Served from /var/www/insights/_assets/article.css via nginx (bypasses Next.js).
 * Source of truth: ops/insights-assets/article.css — deploy with scripts/deploy-insights-assets.sh
 */

:root {
  --bg-primary: #0F0F1A;
  --bg-card: #161628;
  --accent-purple: #8B3CFF;
  --accent-purple-light: #A66BFF;
  --accent-purple-hover: #7B2EE8;
  --text-primary: #FFFFFF;
  --text-secondary: #8B9CC0;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

article header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

article h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

article h2 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
}

article h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  margin: 40px 0 12px;
}

article p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
}

article a {
  color: var(--accent-purple-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 107, 255, 0.3);
  transition: color 0.15s, border-color 0.15s;
}

article a:hover {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

article ul, article ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

article li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
}

article code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  color: var(--accent-purple-light);
}

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

article pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

article blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent-purple);
  color: var(--text-secondary);
  font-style: italic;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

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

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

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

article th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
}

article td {
  color: rgba(255, 255, 255, 0.88);
}

.article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.article-meta time + span::before {
  content: " · ";
  margin: 0 4px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  article { padding: 32px 16px 64px; }
  article h1 { font-size: 30px; }
  article h2 { font-size: 24px; margin-top: 40px; }
  article h3 { font-size: 19px; margin-top: 32px; }
  article pre { padding: 14px; font-size: 13px; }
}
