/* Blog Typography - Optimized for readability */

/* Circular Std Fonts */
@font-face {
  font-family: 'Circular Std';
  src: url('/fonts/CircularStd-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('/fonts/CircularStd-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('/fonts/CircularStd-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Article body text - Use Circular Std for better readability */
article .prose p,
article .prose li,
article .prose blockquote,
article .prose td {
  font-family: 'Circular Std', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  color: #1f2937;
  letter-spacing: 0.01em;
}

/* Headings use the same font stack */
article .prose h1,
article .prose h2,
article .prose h3,
article .prose h4,
article .prose h5,
article .prose h6 {
  font-family: 'Circular Std', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

article .prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-size: 2rem;
  line-height: 1.3;
}

article .prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* Improve paragraph spacing */
article .prose p {
  margin-bottom: 1.5rem;
}

/* Make lead paragraphs stand out */
article .prose p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #374151;
}

/* Code blocks should use monospace */
article .prose pre,
article .prose code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Better link styling in article content */
article .prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

article .prose a:hover {
  color: #6366f1;
  text-decoration-thickness: 2px;
}

/* Improve list readability */
article .prose ul li,
article .prose ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* Better spacing for callout boxes */
article .prose > div[class*="bg-"] {
  margin: 2rem 0;
}

/* Tables in articles */
article .prose table {
  font-family: 'Circular Std', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 0.95rem;
}

/* Strong text emphasis */
article .prose strong {
  font-weight: 500;
  color: #111827;
}

/* Blockquote styling */
article .prose blockquote {
  font-style: italic;
  border-left: 4px solid #6366f1;
  padding-left: 1.5rem;
  color: #4b5563;
}

/* Blog index - card descriptions */
.blog-card-description {
  font-family: 'Circular Std', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  article .prose p,
  article .prose li {
    font-size: 1.0625rem;
    line-height: 1.75;
  }
  
  article .prose p:first-of-type {
    font-size: 1.125rem;
  }
  
  article .prose h2 {
    font-size: 1.75rem;
  }
  
  article .prose h3 {
    font-size: 1.375rem;
  }
}
