/* --- Global Settings & Variables --- */
:root {
    --color-background: #fdfdfd;
    --color-text: #1a1a1a;
    --color-link: #0000ee;
    --color-border: #e0e0e0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Basic Reset & Body Styles --- */
body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

/* --- Wrappers & Layout --- */
.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.content {
    margin: 0 auto;
}

/* --- Headers --- */
/* Header for main page and archive */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
}
.site-title h1 { margin: 0; font-size: 1.5rem; }
.site-title a { text-decoration: none; color: inherit; }

.post-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}
.post-header h1 { font-size: 1.8rem; margin: 0; }
.post-header nav a { text-decoration: none; }

/* --- Homepage Specific Styles --- */
.intro-section {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}
.intro-links a { margin: 0 0.5rem; }

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.nav-box {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
}
.nav-box:hover { background-color: #f7f7f7; }
.nav-box strong { font-size: 1.2rem; }
.nav-box span { color: #555; }

/* --- Archive Page --- */
.archive-list {
    list-style: none;
    padding: 0;
}
.archive-list li {
    display: flex;
    margin-bottom: 0.75rem;
}
.archive-list time {
    flex-shrink: 0;
    width: 120px;
    color: #555;
}

.prose {
	max-width: 70ch; 
	margin-left: auto;
	margin-right: auto;
}
.prose h2, .prose h3 { line-height: 1.2; }
.prose .post-meta { color: #555; font-size: 0.9rem; }
a { color: var(--color-link); }

.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: #555;
    font-size: 0.9rem;
    text-align: center;
}
