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

:root {
    --navy: #011F5B;
    --red: #990000;
    --cream: #FAFAF7;
    --text: #2D2D2D;
    --text-light: #555;
    --border: #E0DDD5;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    background: var(--navy);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-name {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Header */
header {
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.title {
    font-size: 1.15rem;
    color: var(--text-light);
    font-style: italic;
}

.affiliation {
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Page sections (sub-pages) */
.page-section {
    padding-top: 48px;
    padding-bottom: 24px;
    border-top: none;
}

/* Bio */
.bio-section {
    padding-top: 40px;
    padding-bottom: 8px;
}

.bio-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.headshot {
    width: 200px;
    border-radius: 4px;
    flex-shrink: 0;
}

.bio-section p {
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.contact-line {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.95rem !important;
}

/* Links */
a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

section.bio-section {
    border-top: none;
}

h2 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Research Interests */
.interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.interests h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-style: italic;
    font-weight: normal;
}

.interests ul {
    list-style: none;
    padding: 0;
}

.interests li {
    padding: 4px 0;
    font-size: 0.98rem;
}

/* Publications */
.publication {
    margin-bottom: 24px;
}

.publication:last-child {
    margin-bottom: 0;
}

.publication h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2px;
}

.pub-venue {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Teaching */
.course h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2px;
}

.course p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 16px;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Mobile */
@media (max-width: 600px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 16px 24px;
        gap: 12px;
    }

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

    header h1 {
        font-size: 1.8rem;
    }

    .bio-layout {
        flex-direction: column;
        align-items: center;
    }

    .headshot {
        width: 180px;
    }

    .interests {
        grid-template-columns: 1fr;
    }
}
