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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.8rem 0;
    margin-bottom: 2.4rem;
}

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

.site-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: none;
    color: #0066cc;
}

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

.nav-links a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #333;
    font-size: 12.8px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.2rem 16px 0.8rem;
}

/* Home Page */
.hero {
    margin-bottom: 2.4rem;
}

.hero h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #000;
}

.intro {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.intro p {
    margin-bottom: 0.96rem;
}

/* Recent Posts on Home */
.recent-posts h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 26.4px;
    font-weight: 600;
    margin-bottom: 1.6rem;
    color: #000;
}

.post-preview {
    margin-bottom: 2rem;
}

.post-preview h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.post-preview h3 a {
    color: #0066cc;
}

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

.post-preview p {
    color: #333;
}

/* About Page */
h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
    color: #000;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1.2rem;
    color: #000;
}

h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
}

.about-intro {
    margin-bottom: 1.6rem;
}

.about-intro p {
    margin-bottom: 0.96rem;
}

/* Projects Section on About Page */
.projects-section {
    max-width: 800px;
    margin-top: 2.4rem;
}

.project-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-image {
    flex-shrink: 0;
    width: 160px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.project-details {
    flex: 1;
}

.project-details h3 {
    font-size: 0.96rem;
    font-weight: 600;
    margin-bottom: 0.56rem;
}

.project-details h3 a {
    color: #0066cc;
}

.project-details p {
    color: #333;
    line-height: 1.7;
}

.project-details .authors {
    font-size: 0.9rem;
    color: #666;
}

/* Social links */
footer {
    margin-top: 0.2rem;
    padding: 0.2rem 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

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

.social-links a {
    color: #0066cc;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* timeline before PhD */
.footer-note {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 0;
}

.footer-note p {
    font-size: 16px;
    line-height: 1.6;
}

.contact-section {
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid #e0e0e0;
}

/* Blog Page */
.blog-post {
    margin-bottom: 2.4rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    margin-top: 0;
}

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

.blog-post .post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.blog-post p {
    color: #333;
}

/* Footer */
footer {
    margin-top: 3.2rem;
    padding: 1.6rem 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 13.6px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.04rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .project-item {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .project-image {
        width: 100%;
    }
}
