/*
 * prose.css — Markdown content typography styles
 *
 * What it does:
 *   Styles the rendered HTML produced by marked.js from markdown files.
 *   Covers headings, paragraphs, links, lists, blockquotes, code blocks,
 *   tables, images, horizontal rules, and inline formatting.
 *
 * Used by: post.html (blog post viewer)
 *
 * Dependencies: None (pure CSS, works with any markdown-to-HTML renderer)
 */

.prose h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E9ECEF;
}

.dark .prose h2 {
    border-bottom-color: rgb(73, 80, 87);
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose a {
    color: #5050e8;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dark .prose a {
    color: rgb(150, 150, 255);
}

.prose a:hover {
    opacity: 0.8;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.25rem;
    line-height: 1.75;
}

.prose li > ul,
.prose li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.prose blockquote {
    border-left: 4px solid #5050e8;
    padding: 0.5rem 1rem;
    margin: 1.25rem 0;
    background-color: rgba(80, 80, 232, 0.05);
    border-radius: 0 0.375rem 0.375rem 0;
}

.dark .prose blockquote {
    border-left-color: rgb(150, 150, 255);
    background-color: rgba(150, 150, 255, 0.08);
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose code {
    background-color: #f1f3f5;
    color: #c7254e;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
}

.dark .prose code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e8b4b8;
}

.prose pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.25rem 0;
}

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

.dark .prose hr {
    border-top-color: rgb(73, 80, 87);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

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

.dark .prose th,
.dark .prose td {
    border-color: rgb(73, 80, 87);
}

.prose th {
    background-color: #f8f9fa;
    font-weight: 700;
}

.dark .prose th {
    background-color: rgba(255, 255, 255, 0.05);
}

.prose strong {
    font-weight: 700;
}

.prose em {
    font-style: italic;
}
