:root {
    --primary-color: #113F67;
    --text-color: #33332e;
    --article-header-fontsize: 1.2rem;
    --article-header-sub-fontsize: 1.1rem;
}

html {
    color: var(--text-color);
    display: flex;
    justify-content: center;
}

body {
    font-family: sans-serif;
    padding: 1.5rem 1.5rem 0 1.5rem;
    max-width: 21cm;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration-line: underline;
}

/* HEADER */

header.banner {
    padding: 1rem 0;
}

header.banner section.presentation {
    padding-bottom: 1rem;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}

header.banner section.profile {
    padding-bottom: 1rem;
    text-align: center;
}

header.banner section.profile .photo {
    width: fit-content;
    margin: 0 auto 0 auto;
    padding: 0.2rem;
    border: 1px solid var(--text-color);
    border-radius: 50%;
}

header.banner section.profile img {
    aspect-ratio: 1/1;
    width: 120px;
}

header.banner section.profile .name {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

header.banner section.profile .position {
    font-size: 1.1rem;
    text-transform: uppercase;
}

header.banner section.about {
    text-align: justify;
}

header.banner section.contact {
    display: flex;
    flex-flow: row wrap;
    padding-bottom: 1rem;
    justify-content: space-around;
}

header.banner section.contact>p {
    padding: 0.5rem 0.5rem 0 0.5rem;
}

header.banner section.contact .icon {
    display: inline-block;
    vertical-align: middle;
    padding-right: 0.5rem;
}

header.banner section.contact .icon>svg {
    width: 16px;
    height: 16px;
}

header.banner section.contact .suffix-email {
    display: none;
}

header.banner section.skills {
    border-block: 1px solid var(--text-color);
    padding: 1rem 0;
    display: flex;
    flex-flow: row wrap;
}

header.banner section.skills section:not(:last-child) {
    padding-bottom: 1rem;
}

header.banner section.skills section>header {
    padding-bottom: 0.5rem;
}

header.banner section.skills h2 {
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
}

header.banner section.skills>section {
    flex-grow: 1;
}

header.banner section.hardskills {
    width: 50%;
    padding-right: 1rem;
}

header.banner section.hardskills ul {
    list-style: none;
    padding: 0 0 0 0.5rem;
    display: flex;
    flex-flow: row wrap;
    column-gap: 0.6rem;
}

header.banner section.hardskills li {
    font-variant: small-caps;
}

header.banner section.languages article {
    padding-left: 0.5rem;
}

header.banner section.languages article header {
    font-variant: small-caps;
}

header.banner section.languages article:not(:last-child) {
    padding-bottom: 0.5rem;
}

header.banner section.languages article>* {
    display: inline;
}

/* MAIN */

main>section {
    padding-bottom: 1rem;
}

main>section>header>h2 {
    font-size: 2rem;
    font-weight: normal;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-color);
}

main>section>article {
    padding-left: 0.5rem;
}

main section article footer {
    font-size: 0.85rem;
    padding-top: 0.25rem;
    padding-left: 0.5rem;
}

main section article footer * {
    display: inline;
}

main section article footer ul {
    list-style: none;
    padding: 0;
}

main section article footer>p {
    font-variant: small-caps;
}

main section article footer ul>li {
    padding: 0 0.1rem;
}

main section:not(.educations, .interests) article header {
    padding: 0.5rem 0;
}

main section article header p:first-child {
    color: var(--primary-color);
}

main section article header .period {
    font-weight: bold;
    font-size: var(--article-header-fontsize);
}

main section article header .subtitle {
    font-weight: bold;
    font-size: var(--article-header-sub-fontsize);
}

main section.works article.experience section.work-project:not(:last-child) {
    padding-bottom: 1rem;
}

main section.works article.experience section.work-project>ul {
    padding-top: 0.25rem;
    padding-left: 1.5rem;
}

main section.educations article>header {
    padding-top: 0.5rem;
}

main section.projects article>p {
    padding-left: 1rem;
}

main section.projects article header p:first-child {
    font-weight: bold;
    font-size: var(--article-header-fontsize);
}

main section.projects article header p:nth-child(2) {
    font-size: var(--article-header-sub-fontsize);
}

main section.interests article {
    padding-top: 0.5rem;
}

main section.interests>article>* {
    display: inline;
}

main section.interests article header {
    font-variant: small-caps;
}

/* RESPONSIVE */

@media (min-width: 21cm) {
    body {
        margin-top: 0.5rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    header.banner section.about {
        padding: 0 1rem;
        flex: 1 50%;
    }

    header.banner section.contact>p {
        flex-basis: 30%;
    }

    header.banner section.skills section:not(:last-child) {
        padding-bottom: unset;
    }
}

@media print {
    body {
        margin-top: unset;
        box-shadow: unset;
        padding: 0 1.5rem;
    }

    header.banner section.about {
        padding: 0 1rem;
        flex: 1 50%;
    }

    header.banner section.contact>p {
        flex-basis: 30%;
    }

    header.banner section.skills section:not(:last-child) {
        padding-bottom: unset;
    }
}

@page {
    margin: 2rem 0;
}
