:root {
    --background-color: #fffdfa; 
    --text-color: #495057;        /* Lighter gray */
    --heading-color: #2c3e50;     /* Darker for headers */
    --link-color: #3b82f6;        /* Blue for active links */
    --border-color: #e0e0e0;
    --secondary-text: #64748b;    /* Lighter gray for secondary text */
    --hover-blue: #2563eb;        /* Darker blue for hover */
}

body {
    font-family: Palatino Linotype;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 60px;
    font-size: 16px;
    position: relative;
    min-height: 100vh;
    background-color: var(--background-color);
}


p {
    margin-bottom: 1.2em;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1.2em;
}

li {
    margin-bottom: 0.3em;
}

h1, h2, h3, h4 { 
    color: var(--heading-color);
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 10px;
}

h1 {
    font-size: 20px;   /* 1.31x base - for main page title */
    font-weight: 600;  /* Slightly stronger for main title */
    margin-top: 20px;
}

h2 {
    font-size: 18px;   /* 1.15x base - for main sections */
    font-weight: bold;
    margin-top: 30px;  /* More space before major sections */
    margin-bottom: 10px;
}

.profile-info h2 {
    margin-top: 0;
    margin-bottom: 0;
}

h3 {
    font-size: 17px;   /* 1.08x base - for subsections */
    margin-top: 25px;
    font-weight: bold;
}

h4 {
    font-size: 16px;   /* Same as base - for minor headers */
    margin-top: 20px;
    font-weight: 600;  /* Make it bold to distinguish */
}

a { 
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: rgba(44, 62, 80, 0.3);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    position: relative;
}

a:hover { 
    color: var(--link-color);
    text-decoration-color: var(--link-color);
}

.header {
    margin-top: 0;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    margin-left: 0;
    padding-left: 0;
    margin-top: 0;
}

.site-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--link-color);
}

.nav-link.active {
    color: var(--link-color);
}


.section-title {
    color: var(--heading-color);  /* Change from #2c3e50 to use variable */
    margin-bottom: 11px;
    border-bottom: 1px solid var(--border-color);  /* Also made border more subtle */
}

.research-item { 
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 17px;
}

.research-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.research-title {
    font-size: 17px;
    margin-bottom: 0px;
}

.post-date {
    color: var(--secondary-text);
    margin-top: 5px;
}

.hover-message {
    display: inline;
    position: relative;
    border-bottom: 1px dashed var(--secondary-text);
    cursor: help;
}

.hover-message .message-content {
    display: none;
    position: absolute;
    background-color: var(--background-color);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: max-content;
    max-width: 300px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 100;
    font-size: 0.9em;
    color: var(--text-color);
}

.hover-message .message-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.hover-message:hover .message-content {
    display: block;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
    gap: 20px;
}

.publication-content {
    flex: 1;
}

.publication-venue {
    color: var(--secondary-text);
    font-style: italic;
    font-size: 0.9em;
    white-space: nowrap;
    flex-shrink: 0;
}

.takeaway-box {
    background-color: rgba(247, 246, 244, 0.8);
    backdrop-filter: blur(8px);
    border-left: 3px solid #8da3b8;
    padding: 16px 20px;
    margin: 25px 0;
    border-radius: 0;
    color: #4a5568;
}

/* Paper reading styles */
.paper-entry {
    margin-bottom: 45px;
    padding-left: 20px;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    transition: border-color 0.3s ease;
}

.paper-entry:hover {
    border-left-color: rgba(59, 130, 246, 0.6);
}

.paper-title {
    font-weight: bold;
    display: inline;
}

.paper-year {
    color: var(--secondary-text);
    margin-left: 8px;
}

.paper-image {
    float: right;
    width: 80px;
    height: 106px;
    margin: 0 0 15px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.paper-image:hover {
    transform: scale(1.05);
}

.paper-content {
    overflow: hidden;
}

@media (max-width: 600px) {
    .paper-image {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-top: 40px;
    }

    .header {
        margin-bottom: 40px;
        padding-bottom: 25px;
        gap: 15px;
    }

    .site-name {
        font-size: 18px;
    }

    .header-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
    }

    .header-links {
        gap: 15px;
        font-size: 13px;
    }

    footer {
        margin-top: 50px;
    }
}

/* Footer styles */
footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.85em;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: underline;
    text-decoration-color: rgba(44, 62, 80, 0.3);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--link-color);
    text-decoration-color: var(--link-color);
}

/* Showcase section styles */
.showcase-section {
    margin-top: 10px;
}

.showcase-grid {
    display: block;
    margin-top: 0;
}

.showcase-card {
    border-left: none;
    padding-left: 0;
    margin-bottom: 50px;
}

.showcase-card h3 {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--text-color);
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

.showcase-item {
    margin-bottom: 12px;
    line-height: 1.5;
}

.showcase-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}

.showcase-item a:hover {
    color: var(--link-color);
}

.showcase-meta {
    display: block;
    font-size: 13px;
    color: var(--secondary-text);
    margin-left: 0;
    line-height: 1.5;
    margin-top: 6px;
}

/* Mobile responsive showcase */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .showcase-card {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-left: 0;
        padding-top: 20px;
    }
    
    .showcase-card:first-child {
        border-top: none;
        padding-top: 0;
    }
}