* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #faf8f2;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 50px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.intro {
    max-width: 600px;
}

h1 {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 28px;
}


nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
    line-height: normal;
}


.photo {
    width: 200px;
    height: 260px;
    background: #eee;
    flex-shrink: 0;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


section {
    max-width: 760px;
    padding: 48px 0;
    border-top: 1px solid #ddd;
}

h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
}

footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px 60px 0;
    color: #888;
    font-size: 11px;
    text-align: left;
}


/* Mobile */

@media (max-width: 650px) {

    header {
        padding: 50px 20px 45px;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .photo {
    width: 300px;
    height: 300px;
    background: #eee;
    flex-shrink: 0;
}

    h1 {
        font-size: 34px;
    }

    main {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding: 38px 0;
    }
}

a {
    color: #5a9b66;
    font-weight: bold;
    text-underline-offset: 3px;
}
a:hover {
     color: #DFA16B
}

.special-link {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.publication {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.publication img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.publication-info {
    flex: 1;
}

.authors {
    display: block;
    margin-top: 4px;
}

.cv-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

footer {
    max-width: none;
    margin: 0;
    padding: 30px 24px 40px;
    color: #888;
    font-size: 11px;
    text-align: left;
}