/**
 * VectoSync Design System — Typography
 * Heading scales, body text, gradient utilities, and prose styles.
 * Depends on: variables.css, base.css
 */

/* ─── Headings ────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--vs-font-sans);
  font-weight: var(--vs-weight-bold);
  line-height: var(--vs-leading-tight);
  color: var(--vs-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--vs-text-5xl);
  font-weight: var(--vs-weight-extrabold);
}

h2 {
  font-size: var(--vs-text-4xl);
}

h3 {
  font-size: var(--vs-text-3xl);
}

h4 {
  font-size: var(--vs-text-2xl);
  font-weight: var(--vs-weight-semibold);
}

h5 {
  font-size: var(--vs-text-xl);
  font-weight: var(--vs-weight-semibold);
}

h6 {
  font-size: var(--vs-text-lg);
  font-weight: var(--vs-weight-semibold);
}

/* ─── Gradient Text Utility ───────────────────────────────────────────────── */

.vs-gradient-text {
  background: var(--vs-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Lead / Intro Text ───────────────────────────────────────────────────── */

.vs-lead {
  font-size: var(--vs-text-lg);
  color: var(--vs-text-muted);
  line-height: var(--vs-leading-relaxed);
}

/* ─── Prose — Article Body Content ───────────────────────────────────────── */

.vs-prose {
  max-width: var(--vs-content);
  color: var(--vs-text);
  font-size: var(--vs-text-base);
  line-height: var(--vs-leading-relaxed);
}

.vs-prose p {
  margin-bottom: var(--vs-space-6);
}

.vs-prose h2 {
  font-size: var(--vs-text-3xl);
  font-weight: var(--vs-weight-bold);
  margin-top: var(--vs-space-12);
  margin-bottom: var(--vs-space-4);
  padding-bottom: var(--vs-space-3);
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-text);
  letter-spacing: -0.02em;
}

.vs-prose h3 {
  font-size: var(--vs-text-2xl);
  font-weight: var(--vs-weight-semibold);
  margin-top: var(--vs-space-8);
  margin-bottom: var(--vs-space-3);
  color: var(--vs-text);
}

.vs-prose h4 {
  font-size: var(--vs-text-xl);
  font-weight: var(--vs-weight-semibold);
  margin-top: var(--vs-space-6);
  margin-bottom: var(--vs-space-2);
  color: var(--vs-text);
}

.vs-prose h5 {
  font-size: var(--vs-text-lg);
  font-weight: var(--vs-weight-semibold);
  margin-top: var(--vs-space-6);
  margin-bottom: var(--vs-space-2);
  color: var(--vs-text);
}

.vs-prose h6 {
  font-size: var(--vs-text-base);
  font-weight: var(--vs-weight-semibold);
  margin-top: var(--vs-space-4);
  margin-bottom: var(--vs-space-2);
  color: var(--vs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vs-prose ul,
.vs-prose ol {
  margin-left: var(--vs-space-6);
  margin-bottom: var(--vs-space-6);
  list-style: revert;
}

.vs-prose li {
  margin-bottom: var(--vs-space-2);
  line-height: var(--vs-leading-relaxed);
}

.vs-prose li::marker {
  color: var(--vs-primary);
}

.vs-prose blockquote {
  border-left: 4px solid var(--vs-primary);
  padding: var(--vs-space-4) var(--vs-space-6);
  color: var(--vs-text-muted);
  font-style: italic;
  background: var(--vs-glass);
  border-radius: 0 var(--vs-radius) var(--vs-radius) 0;
  margin: var(--vs-space-8) 0;
}

.vs-prose blockquote p {
  margin-bottom: 0;
}

.vs-prose code {
  background: rgba(1, 118, 211, 0.12);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: var(--vs-font-mono);
}

.vs-prose pre {
  margin: var(--vs-space-6) 0;
}

.vs-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.vs-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--vs-space-8) 0;
  font-size: var(--vs-text-sm);
}

.vs-prose table th {
  background: var(--vs-bg-elevated);
  font-weight: var(--vs-weight-semibold);
  padding: var(--vs-space-3) var(--vs-space-4);
  text-align: left;
  color: var(--vs-text);
  border-bottom: 1px solid var(--vs-border-strong);
}

.vs-prose table td {
  padding: var(--vs-space-3) var(--vs-space-4);
  border-bottom: 1px solid var(--vs-border);
  color: var(--vs-text-muted);
  vertical-align: top;
}

.vs-prose table tr:hover td {
  background: var(--vs-glass);
}

.vs-prose a {
  color: var(--vs-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--vs-transition-color), border-color 0.2s;
}

.vs-prose a:hover {
  color: var(--vs-primary-hover);
  border-bottom-color: var(--vs-primary-hover);
}

.vs-prose img {
  border-radius: var(--vs-radius);
  margin: var(--vs-space-8) 0;
  width: 100%;
}

.vs-prose strong {
  color: var(--vs-text);
  font-weight: var(--vs-weight-semibold);
}

.vs-prose em {
  color: var(--vs-text-muted);
}

.vs-prose hr {
  border: none;
  border-top: 1px solid var(--vs-border);
  margin: var(--vs-space-10) 0;
}
