/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #007acc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a9e;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e1e4e8;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

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

.nav-links a {
    color: #666;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007acc;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Page styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e4e8;
}

.page-title {
    color: #333;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.page-content {
    font-size: 1.1rem;
}

/* Post styles */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e4e8;
}

.post-title {
    color: #333;
    margin-bottom: 0.5rem;
}

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

.post-meta > * {
    margin-right: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e4e8;
}

.post-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background-color: #f1f3f4;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag:hover {
    background-color: #e1e4e8;
    color: #333;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code blocks */
pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

code {
    background-color: #f6f8fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #007acc;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

th {
    background-color: #f6f8fa;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: #f6f8fa;
    border-top: 1px solid #e1e4e8;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #666;
    font-weight: 500;
}

.social-links a:hover {
    color: #007acc;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Post and Page Previews */
.post-preview,
.page-preview {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e4e8;
}

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

.post-preview h2,
.page-preview h2 {
    margin-bottom: 0.5rem;
}

.post-preview h2 a,
.page-preview h2 a {
    color: #333;
    text-decoration: none;
}

.post-preview h2 a:hover,
.page-preview h2 a:hover {
    color: #007acc;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-meta > * {
    margin-right: 1rem;
}

.post-excerpt,
.page-description {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .nav-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, blockquote, table {
        page-break-inside: avoid;
    }
} 