/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff; /* Clean white background */
    color: #333;
    max-width: 1000px; /* Increased max-width */
    margin: 0 auto;
    padding: 100px 20px 60px; /* Increased top padding */
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    text-decoration: none;
    color: #111;
    font-size: 1.2rem; /* Slightly larger */
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 30px; /* More gap */
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 1rem; /* Slightly larger */
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #000;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Header */
.hero-header {
    width: 100%;
    height: 400px; /* Taller hero */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 80px; /* More space below hero */
    background-color: #f0f0f0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #111;
    line-height: 1.2;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Post Lists (Index/Archive) */
#posts-list {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Increased gap */
    margin-bottom: 80px;
}

.post-item {
    display: flex;
    flex-direction: column;
    max-width: 800px; /* Keep individual items readable width */
}

.post-item h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 2.2rem; /* Larger list titles */
}

.post-item h2 a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}

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

.post-summary {
    color: #444;
    font-size: 1.15rem; /* Larger summary */
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.links a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    font-size: 1rem;
}

.links a:hover {
    text-decoration: underline;
}

/* Single Post Layout */
.post-single, .page-single {
    margin-bottom: 80px;
    max-width: 800px; /* Reading width optimization */
    margin-left: auto; /* Center content */
    margin-right: auto;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

.post-header h1, .page-header h1 {
    margin-bottom: 0.8rem;
    font-size: 3.5rem; /* Massive single post title */
    line-height: 1.1;
}

.post-meta {
    font-size: 1rem;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post-meta time, .post-meta span {
    margin-right: 20px;
}

/* Featured Image */
.featured-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
}

/* Content Typography */
.post-content {
    font-size: 1.25rem; /* 20px body text */
    line-height: 1.8;
    color: #222;
}

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

.post-content ul, .post-content ol {
    margin-bottom: 1.8rem;
    padding-left: 1.8rem;
}

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

.post-content blockquote {
    border-left: 5px solid #eee;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    font-style: italic;
    color: #555;
    font-size: 1.35rem;
}

.post-content a {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: #004499;
    text-decoration-thickness: 2px;
}

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

/* Footer */
footer {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

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

footer p {
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hamburger {
        display: block;
    }

    body {
        padding: 70px 20px 20px;
    }
    
    .hero-header {
        height: 220px;
        margin-bottom: 40px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .post-header h1 {
        font-size: 2.2rem;
    }
}