/* ============================================================================
   article.css — shared shell + typography for /insights/* articles.
   Loaded AFTER styles.css so it can override defaults. Lighter body color,
   bigger reading size, calmer blockquote/code, more breathing room.
   ============================================================================ */

/* Reading shell */
.art-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Meta line at top */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #b8cdd9;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.art-meta .stage { color: var(--green); font-weight: 700; }
.art-meta .author { color: #6fe4ff; }

/* Hero H1 */
.art-h1 {
  font-size: clamp(32px, 5.2vw, 50px);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* Lede paragraph (under H1, before body) */
.art-lede {
  font-size: 19px;
  color: #f1f8ff;
  line-height: 1.62;
  margin-bottom: 36px;
  max-width: 680px;
  font-weight: 400;
}

/* ----- Body typography ----- */
.art-body {
  font-size: 17.5px;
  color: #f1f8ff;
  line-height: 1.85;
  max-width: 680px;
  font-weight: 400;
}

.art-body p { margin-bottom: 22px; }

.art-body p strong,
.art-body li strong {
  color: #ffffff;
  font-weight: 700;
}

.art-body em {
  color: #ffffff;
  font-style: italic;
}

/* Headings */
.art-body h2 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.22;
  margin: 56px 0 20px;
  letter-spacing: -0.005em;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid rgba(167, 213, 239, 0.10);
}
.art-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.art-body h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  margin: 38px 0 14px;
  line-height: 1.3;
}

/* Inline code */
.art-body code {
  background: rgba(132, 239, 90, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.92em;
  color: var(--green);
  border: 1px solid rgba(132, 239, 90, 0.18);
  white-space: nowrap;
}

/* Code blocks */
.art-body pre {
  background: rgba(4, 8, 12, 0.7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 28px 0;
  color: #e7f5ff;
}
.art-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
  white-space: pre;
}

/* Blockquote — pull-quote style, lighter background */
.art-body blockquote {
  margin: 32px 0;
  padding: 20px 26px;
  background: rgba(132, 239, 90, 0.04);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  color: #ffffff;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

/* Lists */
.art-body ul,
.art-body ol {
  margin: 0 0 26px 24px;
  padding-left: 4px;
}
.art-body li {
  margin-bottom: 10px;
  line-height: 1.78;
}
.art-body ul li::marker { color: var(--green); }
.art-body ol li::marker { color: var(--green); font-weight: 700; }

/* Links */
.art-body a {
  color: var(--green);
  border-bottom: 1px solid rgba(132, 239, 90, 0.35);
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.art-body a:hover {
  color: #a3f57f;
  border-bottom-color: var(--green);
}

/* Horizontal rule (rare) */
.art-body hr {
  border: none;
  border-top: 1px solid rgba(167, 213, 239, 0.14);
  margin: 40px 0;
}

/* ----- Author box ----- */
.author-box {
  margin: 64px 0 36px;
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(15, 27, 37, 0.7) 0%, rgba(8, 18, 28, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.author-box strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}
.author-box p {
  color: #c9dce6;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
}
.author-box a { color: var(--green); }

/* ----- Related reading ----- */
.related {
  margin-top: 52px;
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(15, 27, 37, 0.7) 0%, rgba(8, 18, 28, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.related h4 {
  color: var(--green);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(167, 213, 239, 0.08);
  color: #c9dce6;
  font-size: 14.5px;
  line-height: 1.6;
}
.related li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.related li a {
  color: #f1f8ff;
  font-weight: 600;
  border-bottom: none;
  transition: color 0.15s;
}
.related li a:hover { color: var(--green); }

/* ----- End CTA ----- */
.end-cta {
  margin: 56px 0 88px;
  padding: 40px 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 27, 37, 0.95) 0%, rgba(8, 18, 28, 0.95) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
}
.end-cta h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.end-cta p {
  color: #c9dce6;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Reading progress + bigger touch targets on mobile ----- */
@media (max-width: 680px) {
  .art-body { font-size: 16.5px; line-height: 1.78; }
  .art-body h2 { font-size: 24px; margin-top: 44px; }
  .art-body h3 { font-size: 18px; margin-top: 30px; }
  .art-lede { font-size: 17px; }
  .author-box, .related, .end-cta { padding: 22px 20px; }
  .end-cta { padding: 32px 22px; }
  .end-cta h3 { font-size: 21px; }
}

/* Selection */
.art-body ::selection,
.art-lede::selection,
.art-h1::selection {
  background: rgba(132, 239, 90, 0.28);
  color: #ffffff;
}
