/* Typography for `.prose` rich-text containers.
 *
 * Tailwind's Preflight reset (in main.css) strips native element styling
 * (headings, lists, bold) and the `@tailwindcss/typography` plugin that is
 * meant to restore it inside `.prose` was never compiled into main.css.
 * These rules restore that formatting. Scoped under `.prose` so they only
 * ever affect containers that already opt in via that class.
 */

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-family: 'F37Bolton', 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1.25;
    color: hsl(var(--foreground));
}

.prose h1 { font-size: 2rem; margin: 2.5rem 0 1rem 0; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem 0; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem 0; }
.prose h4,
.prose h5,
.prose h6 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem 0; }

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child,
.prose h5:first-child,
.prose h6:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 1rem 0;
}

.prose ul,
.prose ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul ul,
.prose ol ul { list-style-type: circle; }
.prose ul ol,
.prose ol ol { list-style-type: decimal; }

.prose li {
    margin-bottom: 0.5rem;
}

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

.prose strong,
.prose b {
    font-weight: 700;
}

.prose a {
    color: hsl(var(--accent));
    text-decoration: underline;
}

.prose a:hover {
    color: hsl(var(--accent) / .8);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.prose blockquote {
    border-left: 3px solid hsl(var(--accent));
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    color: hsl(var(--foreground));
    font-style: italic;
}

.prose > *:last-child {
    margin-bottom: 0;
}

/* Size variants — the base rules above already apply; these only tune
   the body/heading scale for smaller or larger contexts. */
.prose-sm {
    font-size: 0.9375rem;
}
.prose-sm h1 { font-size: 1.5rem; }
.prose-sm h2 { font-size: 1.25rem; }
.prose-sm h3 { font-size: 1.125rem; }

.prose-lg {
    font-size: 1.0625rem;
}
.prose-lg h1 { font-size: 2.25rem; }
.prose-lg h2 { font-size: 1.875rem; }
.prose-lg h3 { font-size: 1.375rem; }
