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

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Typography for post content */
.prose p {
    margin-bottom: 1em;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #1a1a1a;
}

.prose h1 a, .prose h2 a, .prose h3 a {
    color: inherit;
}

.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }

.prose p + h1, .prose p + h2, .prose p + h3, .prose p + h4, .prose p + h5 {
    margin-top: 1.5em;
}

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

/* Inline code */
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.125rem 0.375rem;
    font-size: 0.875em;
    color: #1a1a1a;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
}

/* Fenced code blocks */
.prose pre {
    display: block;
    padding: 1rem;
    margin: 1.5em 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prose pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border: 0;
    white-space: pre;
    overflow: auto;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
    border-radius: 0.5rem;
}

/* Blockquote */
.prose blockquote {
    padding: 0.75rem 1rem;
    margin: 1.5em 0;
    border-left: 4px solid #e5e7eb;
    background-color: #f9fafb;
}

.prose blockquote p {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

.prose blockquote small {
    display: block;
    line-height: 1.6;
    color: #6b7280;
}

.prose blockquote small::before {
    content: '\2014 \00A0';
}

/* Links in post content */
.prose a {
    color: #1d9531;
    text-decoration: underline;
}

.prose a:hover {
    color: #11551c;
}

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

/* Prevent top margin collapse for first child in prose */
.prose {
    padding-top: 1em;
}

/* Prevent margin collapse for first heading in prose */
.prose > h1:first-child,
.prose > h2:first-child {
    margin-top: 0;
}
