:root {
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Base Prose Styling */
.prose {
    color: #94a3b8; /* slate-400 */
    max-width: 70ch;
    font-size: 1.1rem;
    line-height: 1.75;
}

.prose h2 {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

.prose h3 {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

.prose ul, .prose ol {
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.prose li {
    margin-bottom: 0.75rem;
    position: relative;
}

.prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0ea5e9;
}

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

.prose strong {
    color: #f1f5f9;
    font-weight: 600;
}

/* Code & Pre */
.prose code:not(pre code) {
    background: rgba(14, 165, 233, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-family: var(--font-mono);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.prose pre {
    background: #020617;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Post Metadata Visibility Fix */
.post-date-meta {
    color: rgba(248, 250, 252, 0.7) !important; /* Brighter slate for visibility */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Premium Callout Styling for Terminal Feature Post */
.callout.warning {
    background: #e0f2fe; /* Updated to Light Blue (Sky-100) */
    border-color: #bae6fd;
    border-left: 4px solid #0ea5e9;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.callout.warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.callout.warning strong {
    color: #0f172a !important; /* Updated to Black (Slate-900) */
    font-weight: 700;
    letter-spacing: 0.025em;
}

.callout.warning p {
    color: #1e293b !important; /* Standard Dark Text */
    opacity: 1;
    font-weight: 500;
}

/* Sub-text within callout - Dark Grey for visibility but not pure black */
.callout-subtext {
    color: #475569 !important; /* Grey-related black (Slate-600) */
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Icon Color Adjustment to match new blue theme */
.callout.warning .icon-container svg,
.callout.warning .flex-shrink-0 svg {
    color: #0284c7 !important;
}

/* Share Icon Visibility */
.share-button-icon {
    color: #f8fafc; /* White/Slate-50 for dark mode */
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.share-button-icon:hover {
    opacity: 1;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .prose {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .prose h2 {
        margin-top: 2.5rem;
        font-size: 1.75rem;
    }

    .prose pre {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0.5rem;
        padding: 1rem;
    }

    header .flex-wrap {
        gap: 0.75rem;
    }
}

/* Light Mode Overrides */
.light .prose {
    color: #334155;
}

.light .prose h2, .light .prose h3 {
    color: #0f172a;
}

.light .prose strong {
    color: #0f172a;
}

.light .prose code:not(pre code) {
    background: #f1f5f9;
    color: #0369a1;
    border-color: #e2e8f0;
}

.light .prose pre {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.light .post-date-meta {
    color: #64748b !important;
}

.light .callout.warning {
    background: #f0f9ff; /* Even lighter blue for light mode */
    border-color: #7dd3fc;
}

.light .share-button-icon {
    color: #0f172a;
}