/* LunexLab SEO articles — editorial prose on dark specimen shell */

.page--article {
  padding-bottom: 4rem;
}

.page--article .breadcrumbs {
  margin-bottom: 0;
}

.blog-article {
  width: var(--rail);
  margin: 0 auto;
  padding: 0 0 3rem;
}

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

.article-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--synth-coral);
  font-weight: 600;
}

.article-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  max-width: 22ch;
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--newsprint-muted);
  letter-spacing: 0.02em;
}

.article-meta .reading-time::before {
  content: "·";
  margin-right: 0.75rem;
  opacity: 0.5;
}

/* Prose */
.article-content.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--newsprint);
}

.article-content.prose > p:first-child {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--newsprint);
  max-width: 62ch;
}

.article-content.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-content.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--newsprint);
}

.article-content.prose p {
  margin: 0 0 1.25rem;
  max-width: 68ch;
}

.article-content.prose ul,
.article-content.prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
  max-width: 65ch;
}

.article-content.prose li {
  margin-bottom: 0.5rem;
}

.article-content.prose li::marker {
  color: var(--synth-coral);
}

.article-content.prose a {
  color: var(--synth-coral);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-content.prose a:hover {
  color: var(--newsprint);
}

.article-content.prose strong {
  font-weight: 600;
  color: var(--newsprint);
}

.article-content.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--ink-elevated);
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  padding: 0.12em 0.4em;
}

.article-content.prose pre.code-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--ink-elevated);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
}

.article-content.prose pre.code-block code {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tables */
.article-content .table-wrap {
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--ink-elevated);
}

.article-content table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 32rem;
}

.article-content table.data-table th,
.article-content table.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.article-content table.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--newsprint-muted);
  font-weight: 600;
  background: rgba(255, 90, 60, 0.06);
}

.article-content table.data-table tr:last-child td {
  border-bottom: none;
}

.article-content table.data-table td strong {
  color: var(--newsprint);
}

/* Images */
.blog-article .article-hero {
  margin: 0 0 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-elevated);
}

.blog-article .article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-article .article-figure {
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-elevated);
}

.blog-article .article-figure img {
  width: 100%;
  height: auto;
}

.blog-article .image-credit {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  color: var(--newsprint-muted);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--rule);
}

/* End CTA */
.article-cta {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 90, 60, 0.08), transparent 55%);
}

.article-cta p {
  margin: 0 0 1rem;
  max-width: 50ch;
  color: var(--newsprint-muted);
  font-size: 0.95rem;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.article-cta a {
  color: var(--synth-coral);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.article-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .blog-article {
    padding-inline: 0;
  }

  .article-header h1 {
    max-width: none;
  }

  .article-content.prose > p:first-child {
    font-size: 1.1rem;
  }
}
