/**
 * iNKPPL Design System v2.0 — Prose Component (NEW)
 * Long-form editorial body copy container: Source Serif 4, warm parchment bg.
 * Used for: article body, artist bio on Profi profile, studio description.
 * AUDIT §2 "New components" specification.
 */

.prose {
  max-width: 66ch;
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: var(--line-height-prose);
  color: var(--color-text);
  background-color: var(--color-bg-editorial);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

/* Paragraph spacing */
.prose p {
  margin-bottom: var(--space-4);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* h2 inside prose: DM Serif Display, gold bar prefix */
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.prose h2::before {
  content: '';
  width: 3px;
  height: 1.2em;
  background: var(--color-editorial-mark);
  display: inline-block;
  flex-shrink: 0;
}

/* h3 inside prose: DM Sans bold */
.prose h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* Inline formatting */
.prose strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.prose a:hover {
  opacity: 0.75;
}

/* Blockquote inside prose acts as pull-quote — see pull-quote.css for standalone use */
.prose blockquote,
.prose .pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: var(--line-height-tight);
  border-left: 3px solid var(--color-editorial-mark);
  padding-left: var(--space-6);
  margin: var(--space-10) 0;
  color: var(--color-text);
}

.prose blockquote cite,
.prose .pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Figure and figcaption */
.prose figure {
  margin: var(--space-8) 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.prose figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-align: center;
  letter-spacing: var(--letter-spacing-wide);
}

/* Lists */
.prose ul,
.prose ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

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

/* Horizontal rule */
.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Responsive: remove side padding at mobile, full-width */
@media (max-width: 767px) {
  .prose {
    padding: var(--space-4);
    max-width: none;
  }
}
