
.article-body {
    max-width: 80ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

.article-body p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body h1 { font-size: 1.5rem; }
.article-body h2 { font-size: 1.25rem; }
.article-body h3 { font-size: 1.1rem; }

.article-body hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
    height: 0;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in oklch, var(--accent) 40%, transparent);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-body strong { font-weight: 600; }
.article-body code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.9em; }
.article-body pre {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.article-body img.zoom-enabled {
    transition: transform 0.2s ease;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body img.zoom-enabled:hover {
    transform: scale(1.02);
}

.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.image-zoom-overlay.active {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.image-zoom-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-zoom-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-zoom-overlay.active .image-zoom-content {
    transform: scale(1);
}

.image-zoom-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-zoom-close:hover {
    background: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-zoom-close {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .image-zoom-container {
        max-width: 100vw;
        max-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
    }
}

pre[class*="language-"],
code[class*="language-"] {
    white-space: pre !important;
    overflow-x: auto;
    overflow-y: hidden;
    word-break: normal;
    word-wrap: normal;
}

pre[class*="language-"] {
    max-width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1.25rem 0;
    background: oklch(12% 0.015 240) !important;
    color: oklch(82% 0.05 158);
    border: none;
    box-shadow: none;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.dark pre[class*="language-"] {
    background: oklch(8% 0.01 240) !important;
}

/* Ensure inline code doesn't break */
:not(pre) > code[class*="language-"] {
    white-space: nowrap !important;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    font-size: 0.85em;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}