/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F2F2F2;
    --text: #100F0F;
    --text-muted: #6F6E69;
    --link: #205EA6;
    --link-hover: #5E409D;
    --border: #d0d0d0;
    --line-height: 1.4;

    /* Font Sizes */
    --font-small: 0.9rem;
    --font-medium: 1rem;
    --font-large: 1.25rem;
    --font-xlarge: 1.5rem;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

/* Main Content - Centered Column */
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 3rem;
}

/* Navigation */
.top-nav {
    font-size: var(--font-small);
    text-align: right;
    margin-bottom: 3rem;
}

.top-nav a {
    text-decoration: none;
    color: var(--link);
    transition: color 0.2s ease;
}

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

.top-nav a.active {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

/* About Page */
.about-page {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: var(--font-xlarge);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
    max-width: 100%;
}

.about-left {
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.about-text {
    width: 70%;
    flex: 1;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: var(--font-medium);
    line-height: var(--line-height);
    text-align: justify;

}

.about-text a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.about-image {
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.about-bio {
    margin-bottom: 1.5rem;
}

.about-bio a {
    text-decoration: none;
    color: var(--link);
    font-size: var(--font-small);
    transition: color 0.2s ease;
}

.about-bio a:hover {
    color: var(--link-hover);
}

.about-bio p {
    color: var(--text-muted);
    font-size: var(--font-small);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
}



/* Content Pages */
.content-page h1 {
    font-size: var(--font-xlarge);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-list>h2 {
    font-size: var(--font-xlarge);
    font-weight: 500;
    margin-bottom: -1.5rem;
    margin-top: 1rem;
    color: var(--text);
}

.content-list>h2:first-child {
    margin-top: 0;
}






/* Highlight Note */
.highlight-note {
    color: var(--text-muted);
    font-size: var(--font-medium);
    margin-bottom: 3rem;
    margin-top: -0.5rem;
    line-height: var(--line-height);
}

.highlight-note a {
    color: var(--link);
    text-decoration: none;
}

.highlight-note a:hover {
    color: var(--link-hover);
}

/* Publication/Paper Items with Image */
.publication-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    flex-direction: row-reverse;
}

.publication-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.publication-image {
    flex-shrink: 0;
    width: 250px;
}

.publication-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 5px solid white;
}

.date {
    flex-shrink: 0;
    width: 120px;
    text-align: right;
    color: var(--text-muted);
    font-size: var(--font-small);
}

.date-break {
    display: block;
}

.publication-content {
    flex: 1;
}

.publication-content h2 {
    font-size: var(--font-medium);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.publication-content h2 a {
    color: var(--text);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.publication-content h2 a:hover {
    color: var(--link-hover);
}

.publication-content .meta {
    color: var(--text-muted);
    font-size: var(--font-small);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.publication-links {
    margin-top: 0.0rem;
}

.publication-links a {
    color: var(--link);
    text-decoration: none;
    font-size: var(--font-small);
    transition: color 0.2s ease;
}

.publication-links a {
    color: var(--link);
}

.publication-links a:hover {
    color: var(--link-hover);
}

/* Legacy Paper Box Styles */


/* CV Specific Styles */
.cv-list {
    gap: 0.5rem;
}

.cv-list .publication-item {
    padding-bottom: 0;
    border-bottom: none;
}

.cv-list>h2,
.cv-list>h3 {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.cv-list>h2:first-child,
.cv-list>h3:first-child {
    margin-top: 0;
}

.cv-separator {
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.cv-separator+h2,
.cv-separator+h3 {
    margin-top: 0;
}

.cv-list .publication-content h2 {
    margin-bottom: 0.2rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 2rem 1.5rem;
    }

    .top-nav {
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-left {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        justify-content: center;
    }

    .about-text {
        width: 100%;
    }

    .about-image {
        margin-bottom: 1.5rem;
    }

    .about-image img {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-title {
        font-size: var(--font-xlarge);
        margin-bottom: 0.75rem;
    }

    .content-page h1 {
        font-size: var(--font-xlarge);
        margin-bottom: 0.75rem;
    }

    .content-list {
        gap: 2rem;
    }



    .publication-item {
        flex-direction: column;
        gap: 0;
        padding-bottom: 2rem;
        align-items: start;
    }

    .publication-item .publication-content {
        order: 1;
    }

    .publication-item .publication-content .meta {
        margin-bottom: 0;
    }

    .publication-item .date {
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
    }

    .publication-image {
        width: 100%;
        order: 3;
    }

    .date {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
        margin-top: 0;
        color: var(--text-muted);
        font-size: var(--font-small);
    }

    .date-break {
        display: inline;
    }

    .date-break::after {
        content: " - ";
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 1rem;
    }

    .top-nav {
        font-size: var(--font-small);
        margin-bottom: 1.5rem;
    }

    .about-title {
        font-size: var(--font-large);
        margin-bottom: 0.75rem;
    }

    .about-text p {
        font-size: var(--font-small);
    }

    .about-image img {
        width: 120px;
        height: 120px;
    }



    .content-page h1 {
        font-size: var(--font-large);
        margin-bottom: 0.75rem;
    }





    .publication-image {
        width: 100%;
        max-width: 250px;
    }

    .publication-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Footer */
footer {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1% 2rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: var(--font-small);

}

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

footer .footer-copyright {
    margin: 0;
}

footer .footer-links a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
    footer {
        margin-top: 2rem;
        padding: 1.5rem 1.5rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

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

    footer .footer-links a {
        margin-right: 0.5rem;
    }
}