/* ---------- Theme ---------- */

:root {
    --background: #f7f6f0;
    --surface: #edf1e9;

    --text: #29332d;
    --muted: #657069;

    --forest: #31513f;
    --forest-light: #54705e;

    --ocean: #356d82;
    --ocean-dark: #285668;

    --border: #d9dfd5;
    --redwood: #8a5d45;
}


/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;
}

main {
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 30px 40px;
}


/* ---------- Typography ---------- */

h1 {
    color: var(--forest);
    font-size: 2.8rem;
    line-height: 1.05;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

h2 {
    color: var(--forest);
    font-size: 1.35rem;
    margin: 0 0 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

p {
    margin: 0 0 16px;
}

.subtitle {
    color: var(--ocean-dark);
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.intro-description {
    color: var(--text);
    max-width: 570px;
}


/* ---------- Links ---------- */

a {
    color: var(--ocean);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--forest);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 22px;
}

.links a {
    font-weight: 550;
}


/* ---------- Intro ---------- */

.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    margin-bottom: 80px;
}

.intro-text {
    flex: 1;
}

.intro-photo {
    flex-shrink: 0;
}

.intro-photo img {
    display: block;
    width: 230px;
    height: 300px;
    object-fit: cover;
    object-position: center 58%;
    border-radius: 16px;
    border: 4px solid #e5ede5;
    box-shadow: 0 14px 35px rgba(32, 70, 52, 0.15);
}


/* ---------- Sections ---------- */

section {
    margin-bottom: 58px;
}


/* ---------- Publications ---------- */

.publication {
    margin-bottom: 28px;
}

.publication p {
    margin-bottom: 5px;
}

.authors {
    color: #48554f;
}

.venue {
    color: var(--redwood);
    font-style: italic;
}

.paper-links {
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
}

.more {
    margin-top: 30px;
}


/* ---------- Education / Experience ---------- */

.item {
    margin-bottom: 26px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.item-header strong {
    color: var(--forest);
}

.item-header span {
    color: var(--muted);
    white-space: nowrap;
}

.item p {
    color: var(--muted);
    margin-top: 4px;
}


/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 70px;
    color: var(--muted);
    font-size: 0.85rem;
}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    main {
        padding: 45px 22px 30px;
    }

    .intro {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 35px;
    }

    .intro-photo img {
        width: 190px;
        height: 245px;
    }

    h1 {
        font-size: 2.3rem;
    }

    .item-header {
        display: block;
    }

    .item-header span {
        display: block;
        margin-top: 2px;
    }
}

.pub-year {
    color: var(--forest);
    font-size: 1rem;
    margin-top: 32px;
    margin-bottom: 18px;
    font-weight: 600;
}
