@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

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

html { background-color: #f5f5f0; }

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

#page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* Header */
#header {
    padding: 25px 40px 15px;
    border-bottom: 1px solid #eee;
}

#header h1 {
    font-size: 1.6em;
    color: #2c3e50;
    font-weight: 700;
}

#header h1 a {
    color: #2c3e50;
    text-decoration: none;
}

/* Navigation */
nav {
    background: #2c3e50;
    padding: 0 40px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-right: 5px;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    font-size: 0.85em;
    font-weight: 700;
    transition: background 0.2s;
}

nav a:hover, nav a.active {
    background: #1a252f;
}

/* Content */
#content {
    padding: 30px 40px 50px;
}

h2 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

a:hover {
    border-bottom-color: #2c3e50;
}

ul, ol {
    margin: 10px 0 20px 25px;
}

li {
    margin-bottom: 10px;
}

/* Profile section */
.profile-photo {
    float: right;
    margin: 0 0 20px 25px;
}

.profile-photo img {
    width: 150px;
    border: 1px solid #ddd;
}

/* Publication list */
.pub-list {
    list-style: decimal;
    margin-left: 25px;
}

.pub-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Lab image */
.lab-image {
    margin: 20px 0;
    text-align: center;
}

.lab-image img {
    max-width: 100%;
    border: 1px solid #ddd;
}

/* Footer */
#footer {
    padding: 15px 40px;
    border-top: 1px solid #eee;
    text-align: right;
    font-size: 0.75em;
    color: #999;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
