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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.75;
    color: #333;
    background: #fff;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #111;
}

.logo {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.layout {
    display: flex;
    gap: 60px;
}

main {
    flex: 1;
    min-width: 0;
}

aside {
    width: 200px;
    flex-shrink: 0;
}

aside h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

aside nav {
    display: flex;
    flex-direction: column;
}

aside nav .post-item {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.15s;
}

aside nav .post-item:hover {
    color: #000;
}

aside nav .post-item.active {
    font-weight: 600;
}

aside nav .post-item.active .post-title::before {
    content: "→ ";
}

.post-title {
    display: block;
    font-size: 0.9rem;
}

.post-meta {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

main h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 30px;
}

main h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 35px 0 12px;
    color: #111;
}

main h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 25px 0 10px;
}

main p {
    margin-bottom: 16px;
    color: #444;
}

main ul, main ol {
    margin: 0 0 16px 20px;
    color: #444;
}

main li {
    margin-bottom: 6px;
}

main strong {
    font-weight: 600;
    color: #111;
}

main code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: "SF Mono", Menlo, Consolas, monospace;
}

main pre {
    background: #1d1d1d;
    color: #f8f8f2;
    padding: 16px 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

main pre code {
    background: none;
    padding: 0;
    color: inherit;
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

main th, main td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

main th {
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

footer a {
    color: #999;
    font-size: 0.75rem;
    text-decoration: none;
}

footer a:hover {
    color: #666;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column-reverse;
        gap: 30px;
    }

    aside {
        width: 100%;
    }

    aside nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 15px;
    }

    aside nav .post-item {
        border-bottom: none;
        padding: 5px 0;
    }
}
