/* blog.css — Styles for the rendered markdown in blog/post.html.
   The post body comes from markdown-it, so bare HTML elements need styling
   that matches the site's 1997 card aesthetic. Keep the lime accent. */

/* Floating post ToC (top-left, mirrors the homepage 1/5..5/5 nav). */
#post-toc-list {
  max-height: 70vh;
  overflow-y: auto;
}

.post-body {
  /* The article is long-form reading, so it's a step up from the site's
     small text-sm/7 cards. */
  font-size: 1rem;
  line-height: 1.65;
  color: #374151; /* gray-700 */
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  color: #030712; /* gray-950 */
  font-weight: 700;
  line-height: 1.35;
  margin: 1.5em 0 0.5em;
}

.post-body h1 {
  font-size: 1.25rem; /* text-xl */
}

.post-body h2 {
  font-size: 1.125rem; /* text-lg */
}

.post-body h3 {
  font-size: 1rem; /* text-base */
}

.post-body h4 {
  font-size: 0.875rem; /* text-sm */
}

.post-body p {
  margin: 0.5em 0;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin: 0.5em 0;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin: 0.25em 0;
}

.post-body a {
  color: #4d7c0f; /* lime-700: readable on white, stays in the lime family */
  text-decoration: underline;
  text-decoration-color: #65a30d; /* lime-600 underline */
  text-underline-offset: 3px;
}

.post-body a:hover {
  text-decoration-thickness: 2px;
}

.post-body strong {
  color: #030712; /* gray-950 */
  font-weight: 700;
}

.post-body blockquote {
  border-left: 3px solid #65a30d; /* lime-600 */
  margin: 0.75em 0;
  padding-left: 1em;
  color: #374151;
  font-style: italic;
}

.post-body hr {
  border: 0;
  border-top: 1px solid #e5e7eb; /* gray-200 */
  margin: 1.5em 0;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8em;
  background: #f3f4f6; /* gray-100 */
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: #030712;
}

.post-body pre {
  background: #f3f4f6; /* gray-100 */
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 8px;
  padding: 1em;
  margin: 0.75em 0;
  overflow-x: auto;
  font-size: 0.8em;
  line-height: 1.6;
}

.post-body pre code {
  background: transparent;
  padding: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75em auto;
}

.post-body table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: 100%;
  margin: 0.75em 0;
  font-size: 0.875em;
}

.post-body th,
.post-body td {
  border: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.4em 0.6em;
  text-align: left;
}

.post-body th {
  background: #f3f4f6; /* gray-100 */
  color: #030712;
  font-weight: 700;
}
