/* Shared look for blog post pages. Matches the homepage writing section:
   Inter, near-black text, plain bordered cards, no colored pills.
   Selectors start with "html body" so they beat the Tailwind CDN styles,
   which get injected after this file. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
html.dark body {
  color: #E5E7EB;
  background: #121212;
}

/* reading column */
html body article.max-w-4xl,
html body article.max-w-3xl {
  max-width: 44rem;
}

/* title + intro */
html body article > header h1,
html body article header h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* intro paragraph reads as normal body text, not a big grey subtitle */
html body article header p.text-lg,
html body article header p.secondary-text,
html.dark body article header p.text-lg,
html.dark body article header p.secondary-text {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  color: inherit;
}

/* category / tag chips: no colored backgrounds */
html body span.rounded[class*="bg-"][class*="-100"],
html body span.rounded-full[class*="bg-"][class*="-100"] {
  background: transparent;
  color: #6B7280;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-weight: 500;
}
html.dark body span.rounded[class*="bg-"][class*="-100"],
html.dark body span.rounded-full[class*="bg-"][class*="-100"] {
  color: #9CA3AF;
  border-color: #9CA3AF;
}

/* body text */
html body .blog-content {
  font-size: 1rem;
  line-height: 1.75;
}
html body .blog-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2.25rem;
}
html body .blog-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
html body .blog-content a {
  color: #06c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.dark body .blog-content a { color: #6cb4ff; }

html body .blog-content ul { list-style: disc; }
html body .blog-content ol { list-style: decimal; }

/* boxes and callouts inside posts: one plain style */
html body .blog-content [class*="bg-blue-50"],
html body .blog-content [class*="bg-yellow-50"],
html body .blog-content [class*="bg-green-50"],
html body .blog-content [class*="bg-purple-50"],
html body .blog-content [class*="bg-gray-50"] {
  background: transparent;
  border: 1px solid #000;
  border-radius: 0.75rem;
}
html.dark body .blog-content [class*="bg-blue-50"],
html.dark body .blog-content [class*="bg-yellow-50"],
html.dark body .blog-content [class*="bg-green-50"],
html.dark body .blog-content [class*="bg-purple-50"],
html.dark body .blog-content [class*="bg-gray-50"] {
  border-color: #9CA3AF;
}
