* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #171b22;
    color: #c9d1d9;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.container {
    width: min(850px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 55px;
}


/* Profile */

header {
    margin-bottom: 42px;
}

.profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.profile-image {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
    display: block;
}

.profile-info {
    padding-top: 2px;
}

.profile-info h1 {
    margin: 0 0 3px;
    color: #f0f3f6;
    font-size: 35px;
    font-weight: 650;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.profile-info p {
    margin: 2px 0;
    color: #9da7b3;
}

.profile-info .title {
    color: #b7c4d2;
    font-size: 18px;
    margin-bottom: 7px;
}

.profile-info a {
    color: #8fb3d1;
    text-decoration: none;
}

.profile-info a:hover {
    color: #b5d2e8;
    text-decoration: underline;
}


/* Social links */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 13px;
}

.social-links a {
    color: #8fb3d1;
    font-size: 15px;
    text-decoration: none;
}

.social-links a:hover {
    color: #b5d2e8;
    text-decoration: underline;
}


/* Sections */

section {
    margin-bottom: 43px;
}

h2 {
    margin: 0 0 17px;
    padding-bottom: 8px;
    border-bottom: 1px solid #303844;

    color: #e3e8ed;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.2px;
}

h3 {
    margin: 0 0 3px;
    color: #d7dee6;
    font-size: 17px;
    font-weight: 600;
}

p {
    margin: 0 0 13px;
}

.muted {
    color: #858f9b;
    font-size: 15px;
}


/* Items */

.item {
    margin-bottom: 23px;
}

.item:last-child {
    margin-bottom: 0;
}

.item p {
    margin-bottom: 2px;
}


/* Publications */

.publication {
    margin-bottom: 27px;
}

.publication:last-child {
    margin-bottom: 0;
}

.publication h3 {
    color: #d5dee7;
    line-height: 1.5;
}

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

.link {
    display: inline-block;
    margin-top: 2px;
    color: #8fb3d1;
    font-size: 15px;
    text-decoration: none;
}

.link:hover {
    color: #b5d2e8;
    text-decoration: underline;
}


/* Projects */

.project {
    margin-bottom: 25px;
}

.project:last-child {
    margin-bottom: 0;
}

.project p {
    max-width: 720px;
    color: #a5afb9;
}


/* Links */

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.links a {
    color: #8fb3d1;
    text-decoration: none;
}

.links a:hover {
    color: #b5d2e8;
    text-decoration: underline;
}


/* Footer */

footer {
    margin-top: 65px;
    padding-top: 18px;
    border-top: 1px solid #303844;
    color: #737d88;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 34px);
        padding-top: 38px;
    }

    .profile {
        gap: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 28px;
    }

    .profile-info .title {
        font-size: 16px;
    }

    .social-links {
        gap: 12px;
    }

    section {
        margin-bottom: 36px;
    }

    h2 {
        font-size: 20px;
    }
}