/* --- Reset and Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Core Typography and Layout --- */
body {
    font-family: 'Times New Roman', Georgia, serif; /* Serif font for body text */
    font-size: 17px; /* Base font size */
    line-height: 1.8; /* Generous line height for readability */
    color: #222; /* Dark, but not pure black text */
    background-color: #f9f7f0; /* Warm off-white background */
    padding: 0;
    margin: 0;
}

/* --- Page Structure --- */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    margin-bottom: 40px;
}

.header-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-family: 'Inter', sans-serif; /* Sans-serif for title */
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.site-title a {
    text-decoration: none;
    color: inherit;
}
.site-title a:hover {
    text-decoration: underline;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    gap: 20px;
}
.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    border-radius: 3px;
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: #000;
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 60px;
}

/* --- Post Styling --- */
.post {
    max-width: 700px;
    margin: 0 auto;
}

/* --- Post Header --- */
.post-header {
    margin-bottom: 35px;
}
.post-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    text-align: center;
}
.post-meta {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    font-weight: 400;
}

/* --- Post Content --- */
.post-content {
    font-size: 1.05rem;
}

/* --- Drop Cap --- */
.drop-cap {
    position: relative;
    margin-top: 0;
    margin-bottom: 1.5em;
    line-height: 1.2;
    font-family: 'Times New Roman', Georgia, serif;
    font-weight: normal;
    text-align: left;
}

.drop-cap-letter {
    float: left;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
    margin-right: 0.1em;
    margin-bottom: 0.1em;
    color: #000;
    text-transform: uppercase;
}

/* --- Headings --- */
.post-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
    line-height: 1.3;
}
.post-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

/* --- Paragraphs and Text --- */
.post-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* --- Links --- */
.post-content a {
    color: #1a0dab;
    text-decoration: none;
    border-bottom: 1px dotted #1a0dab;
}
.post-content a:hover {
    border-bottom-style: solid;
    color: #090066;
}

/* --- Lists --- */
.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 30px;
}
.post-content li {
    margin-bottom: 0.6rem;
}

/* --- Code Blocks --- */
.post-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 5px;
    margin: 25px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    tab-size: 4;
}

.post-content pre code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

/* --- Inline Code --- */
.post-content code:not(.hljs code) {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    color: #333;
}

/* --- Blockquote --- */
.post-quote {
    margin: 25px 0;
    padding: 15px 25px;
    border-left: 3px solid #ddd;
    background-color: #fafafa;
    color: #444;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid #eee;
    padding: 25px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .main-nav {
        gap: 15px;
    }
    .post-title {
        font-size: 1.9rem;
    }
    .post-content h2 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
    .post-content h3 {
        font-size: 1.2rem;
    }
    .drop-cap-letter {
        font-size: 2.5rem;
    }
    .main-content, .header-content, .footer-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.7rem;
    }
    .post-content h2 {
        font-size: 1.3rem;
    }
    .drop-cap-letter {
        font-size: 2rem;
    }
    .site-header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    .main-content {
        margin-bottom: 40px;
    }
    .site-footer {
        padding: 20px 0;
    }
    .post-content {
        font-size: 16px;
    }
}

/* --- Accessibility & Browser Compatibility --- */
/* Ensure good contrast */
.post-content,
.post-content p,
.post-content h2,
.post-content h3 {
    color: #222;
}

/* Handle images if needed */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

/* Add a touch of modernity for older browsers */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

