/* Prose styles for blog post content
   Matches the landing page Skeleton CSS aesthetic:
   - centered 600px container
   - blue accent links (#2457F5 / #4899F7 dark)
   - light background (#eeeeee)
   - clean, readable typography
*/

.prose {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #2457F5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

.prose h2 { font-size: 1.4em; }
.prose h3 { font-size: 1.2em; }

.prose a {
  color: #2457F5;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.prose a:hover {
  color: #083BDA;
  text-decoration-style: solid;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 4px;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose li::marker {
  color: #2457F5;
}

.prose blockquote {
  border-left: 3px solid #2457F5;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

.prose code {
  background: #f1f1f1;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.prose pre {
  background: #f5f5f5;
  padding: 1.2em;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.25em;
  border: none;
  line-height: 1.5;
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 0.9em;
  border-radius: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
}

.prose th,
.prose td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

.prose th {
  background: #f5f5f5;
  font-weight: 600;
}

/* System dark preference — keep light theme, brighten blue accents */
@media (prefers-color-scheme: dark) {
  .prose {
    color: #222;
  }

  .prose h1, .prose h2, .prose h3,
  .prose h4, .prose h5, .prose h6 {
    color: #4899F7;
  }

  .prose a {
    color: #4899F7;
  }

  .prose a:hover {
    color: #7AB8FF;
  }

  .prose blockquote {
    color: #555;
    border-left-color: #4899F7;
  }

  .prose li::marker {
    color: #4899F7;
  }

  .prose code {
    background: #e4e4e4;
  }

  .prose pre {
    background: #e8e8e8;
    border: 1px solid #d0d0d0;
  }

  .prose pre code {
    background: none;
    border: none;
  }

  .prose th {
    background: #e4e4e4;
  }

  .prose th,
  .prose td {
    border-color: #ccc;
  }

  .prose hr {
    border-top-color: #ccc;
  }

  .prose img {
    border: 1px solid #ddd;
  }
}
