/* blog.base.css — Base Typography & Accessibility */

body {
    background-color: var(--blog-bg);
    color: var(--blog-text);
    font-family: var(--blog-font-family);
    line-height: var(--blog-line-height);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--blog-text);
    font-family: var(--blog-font-heading);
    font-weight: 700;
    line-height: var(--blog-line-height-tight);
    letter-spacing: -0.015em;
    margin: 0;
}

a {
    color: var(--blog-accent);
    text-decoration: none;
    transition: color var(--blog-transition-fast);
}

a:hover {
    color: var(--blog-accent-secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blog-accent);
    outline-offset: 2px;
}

.gh-toc::-webkit-scrollbar,
.gh-timeline-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.gh-toc::-webkit-scrollbar-thumb,
.gh-timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--blog-border);
    border-radius: var(--blog-radius-full);
}

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-fade-in {
    animation: blogFadeIn var(--blog-transition-slow) ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .blog-fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .gh-post-card:hover,
    .gh-btn:hover,
    .gh-stat-card:hover {
        transform: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}
