@import './index.css';

body {
    background-color: #0d0d0d;
    /* Fallback */
}

/* Add a dark overlay so text is readable if the image is too bright */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Image lives on a fixed layer instead of background-attachment: fixed,
       which Chrome sometimes fails to repaint, leaving black bands */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/blogBG.avif') center / cover no-repeat;
    z-index: 1;
}

/* Post Page Header */
.post-meta {
    margin-bottom: 40px;
}

/* Content Card Utilities */
.card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    color: inherit;
}

/* Article/Markdown Utilities */
.article-content {
    font-family: 'Charter', 'Georgia', serif;
    font-size: 1.2rem;
    color: #e5e5e5;
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.article-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    margin-left: -20px;
    padding-left: 17px;
    font-style: italic;
    color: #a3a3a3;
}

.article-content pre {
    /* Image lives on a fixed layer instead of background-attachment: fixed,
       which Chrome sometimes fails to repaint, leaving black bands */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/blogBG.avif') center / cover no-repeat;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content code {
    /* Image lives on a fixed layer instead of background-attachment: fixed,
       which Chrome sometimes fails to repaint, leaving black bands */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/blogBG.avif') center / cover no-repeat;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #ffd700;
}

/* Wider reading column for single posts */
#main.post-main {
    max-width: 1000px;
}
