@font-face {
    font-family: Ubuntu;
    font-weight: normal;
    src: url(./fonts/ubuntu/UbuntuSans-Regular.woff2) format("woff2"), url(./fonts/ubuntu/UbuntuSans-Regular.woff) format("woff");
}

@font-face {
    font-family: Ubuntu;
    font-weight: bold;
    src: url(./fonts/ubuntu/UbuntuSans-Bold.woff2) format("woff2"), url(./fonts/ubuntu/UbuntuSans-Bold.woff) format("woff");
}

@font-face {
    font-family: Ubuntu;
    font-weight: normal;
    font-style: italic;
    src: url(./fonts/ubuntu/UbuntuSans-Italic.woff2) format("woff2"), url(./fonts/ubuntu/UbuntuSans-Italic.woff) format("woff");
}

@font-face {
    font-family: Ubuntu;
    font-weight: bold;
    font-style: italic;
    src: url(./fonts/ubuntu/UbuntuSans-BoldItalic.woff2) format("woff2"), url(./fonts/ubuntu/UbuntuSans-BoldItalic.woff) format("woff");
}

:root {
    font-family: Ubuntu;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

body {
    margin: 0;
}

@media screen {
    .page-a4 {
        box-sizing: border-box;

        main, .full-section {
            max-width: 800px;
            margin-left: 250px;
        }
    }

    :not(main) > section {
        margin-left: 250px;
    }
}

@media print {
    main, .full-section {
        font-size: 14px;
    }

    .page-a4 {
        width: 21cm;
        height: 29.7cm;
        box-sizing: border-box;
    }

    :not(main) > section {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .portfolio {
        padding-top: 2rem;
    }

    .portfolio-list {
        max-width: 800px;
    }
}

.full-section {
    padding: 1rem 2rem 0;
}

main {
    columns: 2;
    padding: 2rem;

    ul {
        margin: 1rem 0;
        padding: 0 0 0 1.25rem;
    }

    h2 {
        color: #444;
    }
}

section {
    break-inside: avoid;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    margin: 0;
    font-weight: normal;
}

a {
    color: #048;
    /* font-weight: bold; */
    text-decoration: none;

    &:hover {
        text-decoration: underline dotted;
    }
}

header {
    background-color: #123;
    color: #ccc;
    padding: 2rem;

    h1 {
        color: #fff;
    }

    .profile-picture {
        float: left;
        width: 13rem;
        aspect-ratio: 1;
        object-fit: cover;
        object-position: 0 18%;
        border-radius: 100%;
        margin-right: 2rem;
        margin-bottom: 0;
        border: .4rem solid white;
    }
}

.contact-info {
    padding: 1rem 0;
    line-height: 2;
    font-size: 14px;
    color: #024;
    display: flex;
    flex-direction: column;

    a {
        font-weight: normal;
        color: #024;

        &:hover {
            color: #048;
        }
    }

    & ~ * {
        clear: both;
    }

    .contact-item {
        white-space: nowrap;
    }
}

.social-links ,
.contact {
    display: flex;
    gap: 0 1rem;
    flex-wrap: wrap;
}

.career {
    time {
        color: #678;
    }

    > ul {
        list-style: none;
        border-left: 2px solid #ccc;
        padding-left: 1.5rem;
        margin-left: 0.5rem;

        > li {
            &::before {
                content: "";
                display: block;
                width: 0.75rem;
                position: relative;
                left: -1.5rem;
                top: 0.75rem;
                height: 0;
                border-top: 2px solid #ccc;
            }
        }
    }
}

.badges {
    > * {
        font-size: 14px;
        display: inline-block;
        background-color: #def;
        color: #036;
        padding: 0 0.5rem;
        margin: 0.125rem;
        border-radius: 1rem;
    }
}

.languages-list {
    list-style: none;
    padding-left: 0;

    > li {
        margin-bottom: 0.5rem;
    }
}

.portfolio {
    h2 {
        margin-bottom: 2rem;
    }
}

.portfolio-list {
    display: flex;
    max-width: 864px;
    gap: 1rem;
}

.portfolio-item {
    flex: 1;
    max-width: 23%;

    img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1.5rem;
    }

    span {
        display: block;
        /* text-align: center; */
        margin-top: 0.5rem;
    }
}