/* ============================================================
   ARTICLE PAGE STYLES
   ============================================================ */

/* ── Header ── */
.article-header {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2rem;
}
.article-header-inner {
  max-width: 740px;
}
.article-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--primary); }

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
}
.article-standfirst {
  font-size: 1.0625rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  flex-wrap: wrap;
}
.article-author { font-weight: 600; color: var(--foreground); }
.article-sep { opacity: 0.4; }

/* ── Hero image ── */
.article-hero-img {
  margin-bottom: 3rem;
}
.article-hero-img img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 0.75rem;
  display: block;
}

/* ── Body layout: content + sidebar ── */
.article-body > .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

/* ── Article content typography ── */
.article-content {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--foreground);
}
.article-content p {
  margin-bottom: 1.375rem;
  color: hsl(194 15% 82%);
}
.article-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
  color: var(--foreground);
}
.article-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 2rem 0 0.625rem;
  color: var(--foreground);
}
.article-content strong { color: var(--foreground); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content ul {
  margin: 1rem 0 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article-content li { color: hsl(194 15% 82%); }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted-fg);
  font-style: italic;
  background: hsl(195 37% 16% / 0.6);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* ── Sidebar ── */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sidebar-signup {
  padding: 1.5rem;
}
.sidebar-signup-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}
.sidebar-signup-note {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.75rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.newsletter-form input {
  background: hsl(195 37% 14%);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  width: 100%;
}
.newsletter-form input::placeholder { color: var(--muted-fg); }
.newsletter-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.newsletter-form .btn { width: 100%; justify-content: center; }

/* ── Footer signup block ── */
.article-footer-signup {
  margin-top: 4rem;
  padding: 0 0 4rem;
}
.article-footer-signup-inner {
  padding: 2.5rem;
  max-width: 680px;
}
.article-footer-signup h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.3;
}
.newsletter-form--wide {
  flex-direction: row;
  gap: 0.75rem;
}
.newsletter-form--wide input { flex: 1; }
.newsletter-form--wide .btn { width: auto; flex-shrink: 0; }

/* ── Related posts ── */
.related-posts {
  border-top: 1px solid var(--border);
  padding: 3rem 0 4rem;
}
.related-inner { }
.related-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: opacity 0.2s;
}
.related-card:hover { opacity: 0.8; }
.related-img {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--card);
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-img--placeholder { background: hsl(195 37% 22%); }
.related-cat {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}
.related-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}
.related-body p {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  font-size: 0.75rem;
  color: var(--muted-fg);
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-body > .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form--wide { flex-direction: column; }
}
@media (max-width: 580px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.625rem; }
}
