:root {
    --background: #fff;
    --text: #171717;
    --muted: #5c5c5c;
    --link: #173ca6;
    --accent: #a94700;
    --border: #d8d8d8;
    --soft-background: #f7f7f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 50px 20px 24px;
    background: var(--background);
    color: var(--text);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.65;
}

.container {
    width: min(100%, 800px);
    margin: 0 auto;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid #e6a15e;
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 8px 12px;
    background: var(--text);
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Header */
.header { margin-bottom: 32px; }

.profile-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-img-cell { flex: 0 0 200px; }

.profile-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(2rem, 6vw, 2.4rem);
    font-weight: normal;
    line-height: 1.2;
}

.email {
    margin: 0 0 12px;
    font-family: "Courier New", monospace;
    font-size: 1.125rem;
}

.email a,
.position a,
.links a { text-decoration: none; }

.email a:hover,
.position a:hover,
.links a:hover { text-decoration: underline; }

.position { margin: 0 0 10px; }

.position p { margin: 0; }

/* Sections */
.section {
    margin-bottom: 40px;
    scroll-margin-top: 16px;
}

.section h2 {
    margin: 0 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.35;
}

.section p { margin: 0 0 15px; }

.research-themes,
.student-list {
    margin: 0;
    padding-left: 1.35rem;
}

.research-themes li,
.student-list li {
    margin-bottom: 9px;
    padding-left: 3px;
}

.section .research-callout {
    margin: 24px 0 0;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: var(--soft-background);
    color: var(--muted);
}

.section .research-callout a { font-weight: normal; }

.note {
    color: var(--muted);
    font-size: 0.94em;
}

.form-link {
    display: inline-block;
    font-weight: bold;
}

/* News */
.news { margin-top: 15px; }

.news-item { margin-bottom: 12px; }

.news-item strong { font-weight: normal; }

[hidden] { display: none !important; }

.news-toggle {
    margin-top: 15px;
    text-align: center;
}

.news-toggle button {
    padding: 8px 16px;
    border: 1px solid var(--link);
    border-radius: 4px;
    background: transparent;
    color: var(--link);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
}

.news-toggle button:hover {
    background: var(--link);
    color: #fff;
}

/* Publications */
.publication {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.pub-title {
    margin-bottom: 5px;
    font-weight: bold;
}

.pub-authors,
.pub-venue,
.pub-links {
    margin-bottom: 5px;
    font-size: 0.94rem;
}

.pub-venue { font-weight: bold; }

.pub-links a { text-decoration: none; }

.pub-links a:hover { text-decoration: underline; }

.award {
    color: #a31415;
    font-weight: bold;
}

@media (max-width: 600px) {
    body { padding: 24px 16px 18px; }

    .profile-layout {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .profile-info { text-align: center; }

    .profile-img-cell { flex-basis: auto; }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .section { margin-bottom: 32px; }

}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
