/* ============================================================
   Quiz Engine — article.css
   Styles for content pages: article, prose (about/privacy),
   and home page hero. Requires quiz.css to be loaded first
   (all :root custom properties are defined there).

   Load order on content pages:
     <link rel="stylesheet" href="/quiz/css/quiz.css">
     <link rel="stylesheet" href="/quiz/css/article.css">
   ============================================================ */

/* ── 1. Article page ──────────────────────────────────────── */
/*
 * Used by: articles/protect-devices/index.html (and future articles)
 * Classes: .article-container, .article-eyebrow, .article-title,
 *           .article-meta, .article-body, .article-callout
 */

.article-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.article-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.article-title {
  font-family: var(--font-display); /* serif — matches editorial register of result-title and landing-headline */
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

@media (max-width: 640px) {
  .article-title {
    font-size: 1.625rem;
  }
}

.article-meta {
  font-size: 0.875rem;
  color: var(--color-faint);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

/* ── 1a. Article body prose ───────────────────────────────── */

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-body p {
  margin-bottom: var(--space-md);
  line-height: 1.72;
  color: var(--color-text);
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-speed);
}

.article-body a:hover {
  color: var(--color-accent-hover);
}

/* ── 1b. Article lists ────────────────────────────────────── */

.article-body ul {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-md);
  list-style: disc;
}

.article-body li {
  margin-bottom: var(--space-sm);
  line-height: 1.65;
  color: var(--color-text);
}

.article-body li:last-child {
  margin-bottom: 0;
}

/* ── 1c. Article callout ──────────────────────────────────── */
/*
 * A highlighted aside — not a warning, not a CTA.
 * Rendered in a warm surface box to distinguish from body copy.
 * Kept visually quiet: no icon, no border-left stripe, no bold heading.
 */

.article-callout {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.article-callout p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* ── 2. Prose pages (about / privacy) ─────────────────────── */
/*
 * Used by: about/index.html, privacy/index.html
 * Classes: .prose-container, .prose-title, .prose-body
 * Simpler than article: no eyebrow, no meta line.
 */

.prose-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.prose-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

@media (max-width: 640px) {
  .prose-title {
    font-size: 1.5rem;
  }
}

/* ── 2a. Prose body ───────────────────────────────────────── */

.prose-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose-body p {
  margin-bottom: var(--space-md);
  line-height: 1.72;
  color: var(--color-text);
}

.prose-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-speed);
}

.prose-body a:hover {
  color: var(--color-accent-hover);
}

/* ── 3. Home page hero ────────────────────────────────────── */
/*
 * Used by: index.html
 * Classes: .home-hero
 * Shared classes .btn-primary and .secondary-line are defined in quiz.css.
 */

.home-hero {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.home-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: 1.4375rem;
  }
}

.home-hero p {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  max-width: 54ch;
}
