/* Blog styles */
:root { --accent: #fe5f0a; }

.blog-article {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: white;
}

.article-body {
  max-width: 65ch; /* Optimal line length for readability */
  margin: 0 auto;
  font-size: 1.125rem; /* Slightly larger base size */
  line-height: 1.8;
  color: #334155;
}

.article-body .article-section + .article-section {
  margin-top: 4rem;
}

.article-body .article-section:first-child {
  margin-top: 0;
}

.article-body h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 1.5rem 0;
}

.article-body ul {
  margin: 1.5rem 0 1.5rem 1rem;
  padding-left: 1rem;
  list-style: none; /* Custom bullets */
}

.article-body ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.8;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

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

.article-quote {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.article-quote::before {
  content: "“";
  position: absolute;
  top: -1rem;
  right: 1rem;
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.05;
  font-family: serif;
  pointer-events: none;
}

.article-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: #1e293b;
  position: relative;
  z-index: 1;
}

.article-quote__author {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  font-style: normal;
}

.article-quote__role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: normal;
}

.article-section {
  scroll-margin-top: 8rem; /* Increased scroll margin for sticky headers */
}

@media (max-width: 640px) {
  .article-body {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 1.75rem;
  }

  .article-quote {
    padding: 1.5rem;
    margin: 2rem 0;
  }
}

@supports (text-wrap: balance) {
  .article-body h2,
  .blog-article h1,
  .blog-article h2,
  .blog-article h3 {
    text-wrap: balance;
  }
}
