* {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #F8F8F8;
    padding: 20px;
}
#wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}
h1 {
    color: #600000;
    text-align: center;
    font-size: 40px;
    margin-bottom: 5px;
}
#quote {
    font-size: small;
    text-align: center;
    margin-bottom: 20px;
}
a:link {
    color: navy;
    text-decoration: none;
}
a:visited {
    color: navy;
}
a:hover {
    text-decoration: underline;
}

/* Navigation */
ul {
    list-style-type: none;
}
#nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    margin-bottom: 20px;
    padding: 0;
}
#nav li a {
    font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: blue;
    font-size: 18px;
    font-weight: bold;
}

/* Home page bio layout */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0 20px 0;
}
#biolist {
    flex: 1;
    min-width: 280px;
}
#biolist ul li {
    margin: 10px 0 0 0;
    font-size: large;
}
#biopic {
    flex-shrink: 0;
    padding: 20px 0;
}
#biopic img {
    width: 150px;
    height: auto;
}

/* Papers page */
#papers > li {
    margin: 0 0 30px 0;
    font-weight: bold;
    font-size: 25px;
    color: darkgreen;
}
.paper {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    font-size: medium;
    color: black;
    background-color: #E0E0E0;
    border-radius: 10px;
    max-width: 600px;
}
.paper:hover {
    background-color: #D0D0D0;
}
.paper h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}
.paper h4 {
    font-weight: normal;
    margin-bottom: 5px;
}

/* Misc page */
#misc {
    width: 100%;
}
#misc section {
    margin-bottom: 30px;
}
#misc h2 {
    font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    color: #600000;
    margin-bottom: 10px;
}
#misc ul li {
    margin: 10px 0 0 0;
    font-size: large;
}
#odpic {
    padding: 20px 0;
}
#odpic img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Projects page */
#projects > li {
    margin: 0 0 30px 0;
    font-weight: bold;
    font-size: 25px;
    color: darkgreen;
}
.project {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    font-size: medium;
    color: black;
    background-color: #E0E0E0;
    border-radius: 10px;
    max-width: 600px;
}
.project:hover {
    background-color: #D0D0D0;
}
.project h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}
.project h4 {
    font-weight: normal;
    margin-bottom: 5px;
}
.project img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Out-of-office archive (generated by tools/build_ooo.py) */
#ooo {
    width: 100%;
}
#ooo h2 {
    font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    color: #600000;
    margin-bottom: 10px;
}
.ooo-intro {
    font-size: large;
    margin-bottom: 10px;
}
#ooo-list {
    list-style-type: none;
    margin-top: 20px;
}
.ooo {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    background-color: #E0E0E0;
    border-left: 4px solid #600000;
    border-radius: 0 10px 10px 0;
    max-width: 700px;
}
.ooo blockquote {
    white-space: pre-line;
    font-size: medium;
    line-height: 1.5;
}
.ooo-meta, .ooo-note {
    margin-top: 8px;
    font-size: small;
    color: #444;
}
.ooo-note {
    font-style: italic;
}

/* Footer */
#footer {
    margin-top: 20px;
}
#footer hr {
    border: none;
    border-top: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    #wrapper {
        width: 100%;
    }
    h1 {
        font-size: 28px;
    }
    #nav {
        flex-direction: column;
        gap: 8px;
    }
    .content {
        flex-direction: column;
    }
    #biopic {
        order: -1;
        text-align: center;
    }
    #odpic {
        order: -1;
        text-align: center;
    }
    #odpic img {
        max-width: 300px;
    }
    .paper, .project {
        max-width: 100%;
    }
}
