/* ══════════════════════════════════════════════
   Prose — article content typography
   Prose — article content typography
   ══════════════════════════════════════════════ */

.prose {
    color: var(--t-prose-body, #d1d5db);
    line-height: 1.75;
    font-size: 1.125rem;
    max-width: 65ch;
}

.prose.max-w-none {
    max-width: none;
}

.prose>*+* {
    margin-top: 1.25em;
}

/* ── Headings ── */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--t-prose-headings, #ef4444);
    font-weight: 700;
    line-height: 1.2;
}

.prose h1 {
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid rgba(127, 29, 29, 0.5);
    padding-bottom: 0.5rem;
}

.prose h4 {
    font-size: 1em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* ── Paragraph ── */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose p:first-child {
    margin-top: 0;
}

/* ── Links ── */
.prose a {
    color: var(--t-accent, #f87171);
    text-decoration: underline;
    text-decoration-color: rgba(239, 68, 68, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose a:hover {
    color: #fca5a5;
}

/* ── Bold ── */
.prose strong {
    color: var(--t-text-strong, #ffffff);
    font-weight: 700;
}

/* ── Lists ── */
.prose ul,
.prose ol {
    padding-left: 1.6em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose li::marker {
    color: var(--t-accent, #ef4444);
}

/* ── Blockquote ── */
.prose blockquote {
    border-left: 3px solid var(--t-accent, #dc2626);
    background: rgba(127, 29, 29, 0.1);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--t-text, #fecaca);
    margin: 1.6em 0;
}

.prose blockquote p:first-child {
    margin-top: 0;
}

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

/* ── Code ── */
.prose code {
    color: var(--t-accent, #f87171);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: rgba(127, 29, 29, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

.prose pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(127, 29, 29, 0.3);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.8em;
}

/* ── Horizontal Rule ── */
.prose hr {
    border: none;
    border-top: 1px solid rgba(127, 29, 29, 0.5);
    margin: 2em 0;
}

/* ── Tables ── */
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875em;
}

.prose th {
    font-weight: 700;
    color: var(--t-prose-headings, #ef4444);
    border-bottom: 2px solid rgba(127, 29, 29, 0.5);
    padding: 0.75em 1em;
    text-align: left;
}

.prose td {
    border-bottom: 1px solid rgba(127, 29, 29, 0.3);
    padding: 0.75em 1em;
}

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

/* ── Lead ── */
.prose .lead {
    color: var(--t-text-muted, #9ca3af);
    font-size: 1.25em;
    line-height: 1.6;
}