/* General Page Styling */
body {
    background-color: #f5f2e9; 
    color: #3a2e2a; 
    font-family: 'Century Schoolbook', 'Courier New', Courier, monospace; 
    margin: 40px auto;
    max-width: 700px; 
    padding: 20px;
    line-height: 1.6;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2); 
    border-radius: 5px;
}

/* Journal Article - Targets <article class='single-entry type-dailies'> */
article.single-entry.type-dailies {
    background-color: #fffaf0; 
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-bottom: 2rem;
}

/* Header Styling - Targets <header class='entry-header'> from PHP */
article.type-dailies .entry-header h1.entry-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px dashed #8b7765; 
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Date Styling - Targets <time class='entry-date'> */
article.type-dailies .entry-date {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* Paragraph Styling within the entry-content div */
.entry-content p {
    text-indent: 30px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Remove indent for the very first paragraph in the journal */
.entry-content p:first-of-type {
    text-indent: 0;
}

/* Initial Letter styles for that vintage "Drop Cap" look */
.normal::first-letter {
    initial-letter: normal;
}

.onefive::first-letter {
    initial-letter: 1.5;
}

.three::first-letter {
    initial-letter: 3;
}

/* Targets the first letter of a paragraph with the .three class */
.type-dailies .entry-content p.three::first-letter {
    font-size: 3.5rem;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: #8b7765; /* Match the typewriter ribbon color */
    font-family: 'Georgia', serif; /* A high-contrast serif looks great for drop caps */
}

/* Ensure the second paragraph and beyond still have the journal indent */
.type-dailies .entry-content p + p {
    text-indent: 30px;
    margin-top: 0;
}

/* Main Site Footer styling */
footer[role="contentinfo"] {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 40px;
    border-top: 1px dashed #8b7765;
    padding-top: 20px;
}

footer[role="contentinfo"] a {
    color: #8b7765;
    text-decoration: none;
}

/* Styling for the mini-header used on single pages */
/* Container for the mini header */
.header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Puts logo on left, links on right */
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 800px; /* Matches your whitepapers and notes width */
}

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

/* Navigation links */
.mini-nav-links {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-link {
    text-decoration: none;
    color: #657786; /* Neutral grey from your notes.css */
    transition: color 0.2s ease;
}

.mini-link:hover {
    color: #1da1f2; /* Twitter blue highlight */
}

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


/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
    }

    article.single-entry.type-dailies {
        background-color: #2c2c2c;
        border: 1px solid #444;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }

    article.type-dailies .entry-header h1.entry-title {
        border-bottom: 2px dashed #a68d7c;
        color: #f5f2e9;
    }

    article.type-dailies .entry-date {
        color: #bbb;
    }

    footer[role="contentinfo"] {
        color: #aaa;
        border-top: 1px dashed #a68d7c;
    }
    .type-dailies .entry-content p.three::first-letter {
        color: #a68d7c;
    }
    .header-mini {
        border-bottom-color: #38444d;
    }
    .mini-link {
        color: #8899a6;
    }
}