/* --- General Styles --- */
body {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    background-color: #f8f5f0; /* Creamy book-paper color */
    color: #2c2c2c;
    line-height: 1.75;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Header Mini (Breadcrumbs) --- */
.header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #dcd7cf;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 750px;
}

.mini-nav-links {
    font-size: 0.9rem;
    font-weight: 600;
}

.mini-link {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: 0.05rem;
    transition: color 0.2s ease;
}

.mini-link:hover {
    color: #8b0000; /* Deep scholarly red */
}

.mini-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Logo styling */
.logo.small-logo {
    width: 35px;
    height: auto;
    display: block;
}

/* --- Article Container --- */
article.type-reading {
    width: 100%;
    max-width: 750px;
    background-color: transparent;
}

/* Header Logic (PHP Output) */
article.type-reading .entry-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

article.type-reading .entry-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

article.type-reading .entry-date {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* --- Typography & Content --- */
.entry-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #444;
    font-variant: small-caps;
    margin-top: 2rem;
    padding-bottom: 0.2rem;
}

.entry-content p {
    text-indent: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Standard book formatting: no indent for first paragraphs */
.entry-content p:first-of-type, 
.entry-content h2 + p, 
.entry-content h3 + p {
    text-indent: 0;
}

blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid #444;
    background-color: #efede8;
    font-style: italic;
    color: #444;
}

/* --- Global Site Footer --- */
footer[role="contentinfo"] {
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    color: #657786;
    font-size: 0.9rem;
    border-top: 1px double #dcd7cf; /* Classic book-end line */
    width: 100%;
    max-width: 750px;
}

footer[role="contentinfo"] a {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
}

footer[role="contentinfo"] a:hover {
    text-decoration: underline;
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #d1d1d1;
    }

    .header-mini, footer[role="contentinfo"] {
        border-color: #333;
    }

    .mini-link {
        color: #bbb;
    }

    .mini-link:hover {
        color: #ff4d4d;
    }

    article.type-reading .entry-title {
        color: #eee;
    }

    .entry-content h2 {
        border-bottom-color: #888;
        color: #fff;
    }

    blockquote {
        background-color: #252525;
        border-left-color: #888;
        color: #bbb;
    }

    footer[role="contentinfo"] {
        color: #8899a6;
    }

    footer[role="contentinfo"] a {
        color: #ff4d4d;
    }
}