:root {
    --accent: #8a6f5a;
    --text: #333;
    --muted: #555;
    --rule: #e0e0e0;
    --light-rule: #eee;
    --link: #8a5f3d;
    --nav-bg: #f8f8f8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

.site-header {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.site-title {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 2.5em;
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-nav {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 10px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 5px 0;
    color: var(--muted);
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a[aria-current="page"] {
    color: #000;
    font-weight: 700;
}

.menu-toggle {
    display: none;
}

.main-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.text-column {
    flex: 2;
}

.photo-column {
    flex: 1;
}

.profile-photo {
    display: block;
    width: 100%;
    height: auto;
}

.job-market-note {
    color: #000;
}

h2 {
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--light-rule);
    padding-bottom: 10px;
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1.35;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    margin: 30px 0 15px;
    font-size: 1.2em;
    line-height: 1.4;
}

p {
    margin: 0 0 1.2em;
}

.cv-link {
    margin-bottom: 2em;
}

.cv-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 1em;
}

.cv-year {
    flex: 0 0 150px;
    color: var(--muted);
}

.cv-description {
    flex: 1;
}

.role-list,
.publication-list,
.course-list {
    margin: 0;
    padding-left: 20px;
}

.publication-entry {
    margin-bottom: 2em;
}

.publication-entry p {
    margin: 0;
}

.featured-section-title {
    border-bottom: 1px solid var(--light-rule);
    padding-bottom: 10px;
    color: var(--text);
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1.35;
}

.featured-paper {
    margin-bottom: 3em;
}

.featured-paper .featured-paper-title {
    display: block;
    color: var(--text);
    font-size: 1em;
    font-weight: 400;
    line-height: 1.8;
}

.featured-paper-authors {
    margin-top: 0.35em;
    color: var(--muted);
    font-style: italic;
}

.abstract-toggle {
    margin-top: 1.1em;
}

.abstract-toggle summary {
    display: inline-block;
    color: var(--text);
    cursor: pointer;
    font-size: 1em;
    line-height: 1.8;
}

.abstract-toggle summary:hover,
.abstract-toggle summary:focus {
    text-decoration: underline;
}

.abstract-toggle summary::marker {
    content: "";
}

.abstract-toggle summary::-webkit-details-marker {
    display: none;
}

.featured-paper .featured-paper-abstract {
    margin-top: 0.9em;
    color: #404247;
    font-size: 1.1em;
    line-height: 2;
}

.status-note,
.course-details {
    color: var(--muted);
    font-style: italic;
}

.course-list {
    list-style: none;
    padding-left: 0;
}

.course-list li {
    margin-bottom: 1em;
}

.course-title {
    margin-right: 0.5em;
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .site-title {
        font-size: 2em;
    }

    .site-nav {
        border: none;
        padding: 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        left: 0;
        transform: translateY(-50%);
        border: 0;
        background: none;
        color: #222;
        cursor: pointer;
        font-size: 30px;
        line-height: 1;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        z-index: 20;
        flex-direction: column;
        gap: 0;
        border: 1px solid var(--rule);
        background: var(--nav-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: left;
    }

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

    .nav-links li {
        padding: 10px 20px;
    }

    .main-container {
        flex-direction: column;
        gap: 30px;
    }

    .photo-column {
        width: 100%;
        max-width: 360px;
    }

    .cv-entry {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 1.5em;
    }

    .cv-year {
        flex-basis: auto;
        font-weight: 700;
    }

    .featured-paper .featured-paper-abstract {
        font-size: 1em;
        line-height: 1.8;
    }
}
