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

body {
    font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation */
nav {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-home {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2a44;
    text-decoration: none;
}

.nav-home .page-label {
    color: #999;
    font-weight: 400;
}

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

.nav-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.bio-text {
    text-align: left;
    width: 100%;
}

.bio-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2a44;
    font-weight: 400;
}

.bio-text p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

.bio-image {
    text-align: center;
}

.bio-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Homepage Layout */
main.homepage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Homepage Intro */
.intro {
    text-align: left;
}

.intro p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Featured Art */
.featured-art {
    display: flex;
    justify-content: flex-end;
}

.featured-art img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Art Page */
.art-page {
    max-width: 1400px;
}

.art-section {
    margin-bottom: 4rem;
}

.art-section h2 {
    font-size: 2rem;
    color: #1f2a44;
    margin-bottom: 2rem;
    font-weight: 600;
}

.art-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.art-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.music-section h2 {
    font-size: 2rem;
    color: #1f2a44;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* About Page */
.about-page {
    max-width: 1000px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h1 {
    font-size: 2rem;
    color: #1f2a44;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: flex-end;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Research Page */
.research-intro {
    max-width: 700px;
    margin-bottom: 2rem;
}

.research-intro p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
    max-width: 900px;
}

.publications-list {
    max-width: 900px;
    counter-reset: paper-counter;
}

.paper-entry {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.paper-entry::before {
    counter-increment: paper-counter;
    content: counter(paper-counter) ".";
    position: absolute;
    left: 0;
    color: #1f2a44;
    font-weight: 600;
}

.paper-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2a44;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

.paper-title:hover {
    color: #666;
}

.paper-authors {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.highlight-author {
    color: #1f2a44;
    font-weight: 600;
}

.paper-venue {
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

/* Essays Page */
.essays-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 700px;
}

.essays-list a {
    font-size: 1.3rem;
    color: #1f2a44;
    text-decoration: none;
    transition: color 0.2s;
}

.essays-list a:hover {
    color: #666;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-home {
        font-size: 1.1rem;
    }

    .bio-container {
        gap: 1.5rem;
    }

    .bio-image img {
        max-width: 250px;
    }

    .bio-text h1 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .bio-text h1 {
        font-size: 1.75rem;
    }

    .bio-text p {
        font-size: 1rem;
    }
}
