/* Reset and base styles */
* {
    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-color: #fff;
}

/* Layout */
header, main, footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

main {
    min-height: calc(100vh - 200px);
    margin-bottom: 60px;
}

footer {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

/* Navigation */
nav a {
    margin-right: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #0066cc;
}

/* Typography */
h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 1.8em;
    margin: 30px 0 20px;
    font-weight: 600;
}

h3 {
    font-size: 1.3em;
    margin: 25px 0 15px;
    font-weight: 600;
}

.tagline {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Post list */
.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 15px;
}

.post-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-list a:hover {
    color: #0066cc;
}

.post-title {
    font-weight: 500;
}

.post-date {
    color: #666;
    font-size: 0.9em;
}

/* Article styles */
article {
    margin-bottom: 40px;
}

article h1 {
    margin-bottom: 5px;
}

article .date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 30px;
    display: block;
}

article p {
    margin-bottom: 20px;
}

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

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

/* Code blocks */
pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.45;
}

code {
    background: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'SF Mono', Consolas, Monaco, Menlo, monospace;
    font-size: 0.9em;
}

pre code {
    background: none;
    padding: 0;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #0066cc;
}
