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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.post {
    margin-bottom: 3rem;
}

.post-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.post-date {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.post-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: #222;
}

.post-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content a {
    color: #0066cc;
    text-decoration: none;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.post-content code {
    font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
}

.post-content pre code .kw { color: #569cd6; }
.post-content pre code .dt { color: #9cdcfe; }
.post-content pre code .fl { color: #d69d85; }
.post-content pre code .cn { color: #4ec9b0; }
.post-content pre code .op { color: #d4d4d4; }
.post-content pre code .bu { color: #569cd6; }
.post-content pre code .cf { color: #c586c0; }
.post-content pre code .pp { color: #ce9178; }
.post-content pre code .dv { color: #b5cea8; }
.post-content pre code .co { color: #6a9955; }
.post-content pre code .st { color: #ce9178; }
.post-content pre code .fu { color: #dcdcaa; }
.post-content pre code .va { color: #9cdcfe; }
.post-content pre code .an { color: #9cdcfe; }
.post-content pre code .al { color: #d7ba7d; }
.post-content pre code .at { color: #9cdcfe; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.post-content th {
    background: #f5f5f5;
}

.blog-index h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-preview {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-content .post-preview:first-of-type {
    margin-top: 2rem;
}

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

.post-preview-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.15rem;
}

.post-preview-header h3 {
    font-size: 1.05rem;
    margin: 0;
}

.post-preview-header h3 a {
    color: #222;
    text-decoration: none;
}

.post-preview-header h3 a:hover {
    color: #0066cc;
}

.post-preview-header .post-date {
    flex-shrink: 0;
}

.post-description {
    color: #666;
    font-size: 0.9rem;
}

.page-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
}

.page-footer a {
    color: #666;
}

.page-footer a:hover {
    color: #0066cc;
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
.post-title {
        font-size: 1.4rem;
    }
}
