/* Academic style — University of Bonn colour scheme */
/* Primary: #004B93 | Dark: #002d5a | Mid: #6E99BF | Light: #dce8f5 */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1a1a1a;
    background-color: #fafaf8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ── Header ── */

header {
    border-bottom: 2.5px solid #004B93;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 0.2rem 0;
    color: #004B93;
}

header .position {
    font-size: 0.95rem;
    color: #444;
    font-style: italic;
    margin: 0 0 1rem 0;
}

nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s, color 0.15s;
}

nav a:hover,
nav a.active {
    color: #004B93;
    border-bottom-color: #004B93;
}

/* ── Profile block ── */

.profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 220px;
    height: 280px;
    background-color: #e8e8e4;
    border: 1px solid #c8c8c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.profile-text {
    flex: 1;
}

.profile-text p {
    margin-top: 0;
    text-align: justify;
    hyphens: auto;
}

/* ── Headings ── */

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2.2rem 0 0.6rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #6E99BF;
    letter-spacing: 0.01em;
    color: #004B93;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem 0;
    color: #002d5a;
}

p {
    margin: 0 0 0.9rem 0;
    text-align: justify;
    hyphens: auto;
}

a {
    color: #004B93;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #6E99BF;
}

a:hover {
    color: #002d5a;
    text-decoration-color: #004B93;
}

/* ── CV table ── */

.cv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}

.cv-table tr {
    vertical-align: top;
}

.cv-table td {
    padding: 0.35rem 0;
    vertical-align: top;
}

.cv-table td:first-child {
    white-space: nowrap;
    color: #555;
    font-size: 0.875rem;
    width: 115px;
    padding-right: 1.25rem;
    padding-top: 0.45rem;
}

.cv-table td em {
    font-size: 0.88rem;
    color: #444;
}

/* ── Contact info ── */

.contact-block {
    font-size: 0.9rem;
    line-height: 1.9;
}

/* ── Publication list ── */

.pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-list li {
    margin-bottom: 0.9rem;
    padding-left: 1.1rem;
    border-left: 3px solid #6E99BF;
    font-size: 0.92rem;
    transition: border-color 0.15s;
}

.pub-list li:hover {
    border-left-color: #004B93;
}

.pub-list li .pub-title {
    font-style: italic;
    font-weight: 600;
}

.pub-list li .pub-journal {
    color: #555;
    font-size: 0.85rem;
}

/* ── Keywords ── */

.keywords {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.keywords span {
    display: inline-block;
    margin-right: 0.3rem;
}

.keywords span::after {
    content: ' ·';
    color: #6E99BF;
}

.keywords span:last-child::after {
    content: '';
}

/* ── Software / code ── */

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    background: #eef3f9;
    padding: 0.05em 0.3em;
    border-radius: 2px;
    color: #003166;
}

.software-list {
    list-style: none;
    padding: 0;
}

.software-list li {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    padding-left: 1.1rem;
    border-left: 3px solid #6E99BF;
}

.software-list li:hover {
    border-left-color: #004B93;
}

/* ── Outreach / teaching entries ── */

.entry-list {
    list-style: none;
    padding: 0;
}

.entry-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.1rem;
    border-left: 3px solid #6E99BF;
    font-size: 0.92rem;
    transition: border-color 0.15s;
}

.entry-list li:hover {
    border-left-color: #004B93;
}

.entry-list li .entry-year {
    color: #004B93;
    font-size: 0.85rem;
    margin-right: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.entry-list li .entry-venue {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

/* ── Research interest boxes ── */

.interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.interest-item {
    border: 1px solid #6E99BF;
    border-top: 3px solid #004B93;
    padding: 0.75rem 1rem;
    background: #f5f7fb;
}

.interest-item h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #004B93;
}

.interest-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #333;
    text-align: left;
    hyphens: none;
}

/* ── Figure captions ── */

figure {
    margin: 0 0 2rem 0;
}

figcaption {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.4rem;
    font-style: italic;
    text-align: center;
}

/* ── Course week plan ── */

.week-plan {
    margin: 0.5rem 0 1.5rem 0;
    padding: 0;
}

.week-plan dt {
    font-weight: 600;
    color: #004B93;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dotted #6E99BF;
}

.week-plan dt:first-child {
    margin-top: 0;
}

.week-plan dd {
    margin: 0.2rem 0 0 0;
    padding-left: 1rem;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
}

/* ── Language switcher ── */

nav a.lang-switch {
    margin-left: auto;
    margin-right: 0;
    border: 1px solid #6E99BF;
    padding: 1px 8px 2px 8px;
    border-radius: 2px;
    font-size: 0.8rem;
    color: #004B93;
    border-bottom: 1px solid #6E99BF;
}

nav a.lang-switch:hover {
    background-color: #dce8f5;
    border-color: #004B93;
    border-bottom-color: #004B93;
    color: #002d5a;
}

/* ── Footer ── */

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #6E99BF;
    font-size: 0.82rem;
    color: #999;
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 620px) {
    .profile {
        flex-direction: column;
    }
    .profile-photo {
        width: 140px;
        height: 178px;
    }
    .interest-grid {
        grid-template-columns: 1fr;
    }
    p, .profile-text p {
        text-align: left;
        hyphens: none;
    }
}
