:root {
    --text: #222;
    --muted: #666;
    --line: #ddd;
    --link: #333;
    --max-width: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible { color: #000; }

.page-width {
    width: min(calc(100% - 44px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-name {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

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

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { text-decoration: underline; }

.intro {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
    padding: 70px 0 60px;
}

.profile-photo {
    width: 230px;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    border: 1px solid var(--line);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: normal;
    line-height: 1.1;
}

.intro-copy p {
    max-width: 610px;
    margin: 0 0 14px;
}

.content-section {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    scroll-margin-top: 80px;
}

details { padding: 0; }

summary {
    cursor: pointer;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " -"; }

.section-content { padding: 22px 0 4px; }

.entry h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: normal;
}

.status, .detail {
    color: var(--muted);
}

.muted { color: var(--muted); margin: 0; }

@media (max-width: 650px) {
    .header-inner {
        padding: 15px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-nav {
        gap: 17px;
        flex-wrap: wrap;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0 44px;
    }

    .profile-photo { width: 185px; }
}

.entry-list {
    display: grid;
    gap: 18px;
}

.entry {
    margin: 0;
}

.entry p {
    margin: 0;
}

.entry-title {
    font-weight: 600;
}

.section-content ul {
    margin: 8px 0 20px;
    padding-left: 22px;
}

.section-content li {
    margin: 5px 0;
}

.email-link {
    color: #1f5f8b;
    font-weight: 500;
}

.email-link:hover,
.email-link:focus-visible {
    color: #123d59;
}

.email-at {
    color: #666;
}

.cv-link {
    color: #1f5f8b;
    font-weight: 500;
}

.cv-link:hover,
.cv-link:focus-visible {
    color: #123d59;
}

#research .entry-title {
    font-weight: normal;
}
