/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
}

.site-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-title:hover {
    color: #666;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: #1a1a1a;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

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

p {
    margin: 0 0 1.5em;
}

blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 1.5em;
    border-left: 3px solid #e5e5e5;
    color: #666;
    font-style: italic;
}

/* Post List (Homepage) */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    margin-bottom: 48px;
}

.post-item h2 {
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.post-item h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-item h2 a:hover {
    color: #2563eb;
    text-decoration: none;
}

.post-date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.post-excerpt {
    color: #444;
    margin: 0;
}

.post-excerpt p {
    margin: 0;
}

/* Single Post */
.post-header {
    margin-bottom: 48px;
}

.post-title {
    font-size: 2.2rem;
    margin: 0 0 16px;
    line-height: 1.2;
}

.post-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #999;
}

.post-content {
    margin-bottom: 80px;
}

/* Code */
code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid #eee;
}

pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Lists */
ul, ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em;
}

li {
    margin-bottom: 0.5em;
}

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

.site-footer p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    .site-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 60px;
    }

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

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
}
