/* ============================================================
   Resonant System v2 — Article page typography
   Long-form reading: title + summary + meta header, then a
   BlockNote-rendered body with prose, headings, lists, tables,
   dividers, concept links, and external links.
   ============================================================ */

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.article-summary {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--body);
  line-height: 1.55;
  max-width: 56ch;
}

/* ===== Body (BlockNote-rendered) ===== */
.article-body {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--body);
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-body hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  font-weight: 600;
  color: var(--heading);
}

.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--heading); }

.article-body .concept-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(42, 90, 107, 0.3);
  text-underline-offset: 3px;
  cursor: help;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(42, 90, 107, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.article-body a:hover {
  text-decoration-color: var(--accent);
}
