*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fafafa;
    margin: 0;
    padding: 2rem 1rem;
}

header, main, footer {
    max-width: 680px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

nav a:hover {
    text-decoration: underline;
}

main {
    min-height: 50vh;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

p, li {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: #555;
}

img {
    max-width: 100%;
    height: auto;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 1.5rem;
}

.post-list .post-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.15rem;
}

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 480px) {
    body {
        padding: 1.25rem 1rem;
    }

    header {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        margin-left: 0;
        margin-right: 1.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
