/* ==========================================================================
   Daniel Werner - Personal Academic Website
   Minimalist single-column layout with top navigation
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #fafaf8;
    font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 350;
    line-height: 1.75;
    color: #2c2c2c;
}

a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Navigation ---------- */
.top-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.site-name {
    font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #2c2c2c;
}

.site-name a {
    color: #2c2c2c;
}

.site-name a:hover {
    color: #555;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2em;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #777;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover {
    color: #2c2c2c;
    border-bottom: 1.5px solid #2c2c2c;
}

.current-menu-item a {
    color: #2c2c2c;
    border-bottom: 1.5px solid #2c2c2c;
}

/* ---------- Divider ---------- */
.nav-divider {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.nav-divider hr {
    border: none;
    border-top: 1px solid #ddd;
}

/* ---------- Main Content ---------- */
.site-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ---------- About Page ---------- */
.about-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.front-photo {
    width: 200px;
    min-width: 200px;
    border-radius: 4px;
}

.bio p {
    margin-bottom: 1em;
}

.bio p:last-child {
    margin-bottom: 0;
}

.contact-links {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.contact-links a {
    color: #6b7f64;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.contact-links a:hover {
    color: #2c2c2c;
}

.link-icon {
    font-size: 13px;
    width: 18px;
    text-align: center;
    color: #999;
}

/* ---------- Section Headings ---------- */
h2.section-heading {
    font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin-top: 2.5em;
    margin-bottom: 1em;
    letter-spacing: 0.01em;
}

h2.section-heading:first-of-type {
    margin-top: 0;
}

/* ---------- Research Page ---------- */
.paper-list {
    list-style: none;
    padding: 0;
}

.paper-list li {
    margin-bottom: 2em;
    padding-left: 0;
}

.paper-title {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
}

.paper-title a {
    color: #6b7f64;
    border-bottom: 1px solid transparent;
}

.paper-title a:hover {
    color: #2c2c2c;
    border-bottom: 1px solid #2c2c2c;
}

.paper-authors {
    color: #888;
    font-size: 13.5px;
    margin-top: 0.15em;
}

.paper-detail {
    color: #888;
    font-size: 13.5px;
    font-style: italic;
    margin-top: 0.3em;
    line-height: 1.65;
}

/* ---------- CV Page ---------- */
.cv-download {
    margin-bottom: 2.5em;
}

.cv-download a {
    color: #6b7f64;
}

.cv-download a:hover {
    color: #2c2c2c;
}

.cv-section {
    margin-bottom: 2.5em;
}

.cv-section h3 {
    font-family: "Libre Baskerville", "Georgia", serif;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cv-entry {
    margin-bottom: 1em;
    line-height: 1.65;
}

.cv-entry .cv-primary {
    font-weight: 450;
}

.cv-entry .cv-secondary {
    color: #888;
    font-size: 13.5px;
}

.cv-skills-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.3em 1.5em;
    font-size: 14px;
}

.cv-skills-grid dt {
    font-weight: 450;
    color: #2c2c2c;
}

.cv-skills-grid dd {
    color: #888;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 640px) {
    .top-nav {
        flex-direction: column;
        gap: 1em;
        padding-top: 32px;
    }

    .nav-menu {
        gap: 1.5em;
    }

    .about-layout {
        flex-direction: column;
        gap: 24px;
    }

    .front-photo {
        width: 100%;
        max-width: 240px;
        min-width: unset;
    }

    .site-content {
        padding: 32px 20px 60px;
    }
}
