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

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

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

nav .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul a {
    color: #555;
    font-size: 0.95rem;
}

nav ul a:hover {
    color: #333;
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 3rem 0;
}

/* Hero */
#hero {
    padding: 5rem 0 3rem;
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#hero .highlight {
    color: #0066cc;
}

#hero p {
    font-size: 1.2rem;
    color: #666;
}

/* Sections */
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Contact */
#contact p {
    display: flex;
    gap: 1.5rem;
}

/* Footer */
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* Blog listing */
.blog-summary {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.blog-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-summary time {
    font-size: 0.85rem;
    color: #999;
}

.blog-summary p {
    margin-top: 0.5rem;
    color: #666;
}

/* Blog post */
.blog-post header {
    margin-bottom: 2rem;
}

.blog-post header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.blog-post header time {
    font-size: 0.9rem;
    color: #999;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

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

.blog-content pre {
    background: #2b303b;
    color: #c0c5ce;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.blog-content code {
    font-size: 0.9em;
}

.blog-content p code {
    background: #f0f0f0;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}
