/* =================================================================
   Aware Design — Long-Form Reading Typography
   Optimized for the whitepapers and foundations content pages.
   800px max-width, generous line-height, clear heading hierarchy.
   ================================================================= */

/* Article container — the reading column */
.article {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* Heading hierarchy */
.article h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.article h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.article h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.article h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* Body text — optimized for reading */
.article p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.article strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.article em {
  font-style: italic;
}

/* Lists */
.article ul, .article ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.article li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}
.article li::marker {
  color: var(--accent);
}

/* Article header — title, meta, abstract */
.article-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.article-meta .series-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.article-abstract {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-style: italic;
}

/* Series navigation (prev/next whitepaper) */
.series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}

.series-nav a {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.series-nav a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.series-nav a .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}
.series-nav a .title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--accent);
}
.series-nav a:last-child {
  text-align: right;
}

/* Cross-site CTA at bottom of articles */
.article-cta {
  margin-top: var(--space-12);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
