/* --- CSS Variables (Solarized-ish Colors) --- */
:root {
    --solarized-red: #dc322f;
    --solarized-light: #fdf6e3;
    --text-dark: #073642;
    --text-medium: #657b83;
    --text-light: #93a1a1;
    --border-color: #eee8d5;
}

/* --- Basic Reset --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* --- Body Styling (The Red "Border") --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--solarized-red);
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    color: var(--text-dark);
}

/* --- Main Content Area --- */
main {
    background-color: var(--solarized-light);
    border-radius: 8px;
    padding: 24px 40px;
    min-height: calc(100vh - 40px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Typography & Content Styling --- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.6;
}

.article-content > * + * {
    margin-top: 1rem;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    display: block;
}

/* --- UPDATED ARTICLE STYLING --- */
article {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* --- REMOVES BORDER FROM LAST POST --- */
article:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 2rem;
}

/* --- Header & Footer --- */
header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
        min-height: calc(100vh - 20px); 
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}