@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Slab:wght@400;700&family=Courier+Prime:wght@400;700&display=swap');

/* Site-wide styles */
:root {
    --main-color: #333;
    --light-color: #666;
    --accent-color: #0066cc;
    --background: #fff;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 2.4;
}

body {
    font-family: 'Courier Prime', 'Courier New', SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-weight: 200;
    color: var(--main-color);
    background-color: var(--background);
}

.wrapper {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--main-color);
    text-decoration: none;
}

.site-title:hover {
    color: var(--accent-color);
}

/* Navigation */
.site-nav {
    float: right;
}

.site-nav a {
    color: var(--light-color);
    text-decoration: underline;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--accent-color);
}

/* Main content */
.page-content {
    flex: 1;
}

h1,
h2,
h3 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Posts */
.post-list {
    list-style: disc;
    margin-left: 1.5rem;
}

.post-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-meta {
    color: var(--light-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.post-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 400;
}

.post-link:hover {
    text-decoration: underline;
}

.post-list h3 {
    margin: 0;
    font-size: 1.2rem;
    display: inline;
}

/* Home page content */
.home {
    line-height: 2.16;
}

.home p,
.home strong {
    font-family: 'Courier Prime', 'Courier New', SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    margin-bottom: 1.2rem;
    color: var(--main-color);
    text-align: justify;
}

.post-header {
    margin-bottom: 2rem;
}

.post-content {
    line-height: 2.16;
    font-weight: 400;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
}

.post-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--light-color);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-left a,
.footer-right a {
    color: var(--accent-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

.footer-left a:hover,
.footer-right a:hover {
    text-decoration: underline;
}

/* Essays page */
.essays-page {
    padding-top: 1rem;
}

.essays-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.essays-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.essays-list li:last-child {
    border-bottom: none;
}

.essay-link {
    display: block;
    color: #444;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.essay-link:hover {
    text-decoration: underline;
}

.essay-date {
    display: block;
    color: #999;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
    .site-nav {
        float: none;
        margin-top: 1rem;
    }

    .site-nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .post-list h3 {
        font-size: 1.2rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .essays-list li {
    }

    .essay-date {
        margin-top: 0.5rem;
    }
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-right {
        text-align: left;
    }
}


