/* COLORS */
:root {
    --background-color: #eeeeee;
    --title-color: #000000;
    --subtitle-color: #5B89B3;
    --text-color: #000000;
    --blue-light: #5B89B3;
    --blue-dark: #23598a;
    --orange-light: #efa00b;
    --orange-dark: #936000;
    --green-light: #23ce6b;
    --green-dark: #009541;
    --red-light: #de3c4b;
    --red-dark: #9a0816;
    --white-dark: #eeeeee;
    --black-light: #333333;
}

/* GENERAL */
a:focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

/* MAIN */

body {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--background-color);
    font-family: "body", sans-serif;
}


#identity {grid-area: identity;}
#summary {grid-area: summary;}
#experience {grid-area: experience;}
#skills {grid-area: skills;}
#education {grid-area: education;}
#download {grid-area: download;}

main {
    padding: 24px;
    margin: 24px auto 48px auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    grid-template-areas:
            "identity identity"
            "summary summary"
            "experience skills"
            "experience education"
            "experience download";
}

@media (max-width: 1150px) {
    main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "summary"
            "experience"
            "skills"
            "education"
            "download";
    }
}

/* HELPERS */

.title {
    font-size: 1.5em;
    font-family: "title", sans-serif;
    color: var(--title-color);
    margin: 10px 0;
}

/* SECTIONS */

.identity .name {
    font-size: clamp(40px, 7.5vw, 56px);
    letter-spacing: .3px;
    font-weight: 800;
    margin: 0;
}

.identity .role {
    font-weight: 600;
    color: var(--subtitle-color);
    font-size: clamp(28px, 5.75vw, 42px);
    margin: 0;
}

.identity .contact {
    font-weight: 600;
    font-size: clamp(14px, 3.75vw, 21px);
    margin: 0;
}

.identity .contact-list {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 10px;
}

.summary .content {
    text-wrap: pretty;
}

.experience .location {
    font-size: 0.9em;
    color: var(--black-light);
    font-style: italic;
}

.experience .experience-description {
    margin: 5px 0 10px 0;
    list-style: none;
}

.skills .skills-list {
    font-size: .8em;
    display: flex;
    row-gap: 1.5px;
    column-gap: 1px;
    
    margin: 6px 0;
    color: var(--white-dark);
    padding-left: 0;
    flex-wrap: wrap;
    list-style: none;
}

.skills .skills-list li {
    padding: 7px;
}

.skills .skills-list li:hover {
    cursor: pointer;
}

.skills .languages li { background-color: var(--blue-light); }
.skills .languages li:hover { background-color: var(--blue-dark); }
.skills .architecture li { background-color: var(--orange-light); }
.skills .architecture li:hover { background-color: var(--orange-dark); }
.skills .persistence li { background-color: var(--green-light); }
.skills .persistence li:hover { background-color: var(--green-dark); }
.skills .other li { background-color: var(--red-light); }
.skills .other li:hover { background-color: var(--red-dark); }

.education ul {
    list-style: none;
}

.download .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    border-radius: 12px;
    color: #fff;
    transition: background-color 0.42s ease-out, outline-color 0.22s ease-out;
    background-color: var(--blue-light);
    text-decoration: none;
}

.download .button:hover {
    background-color: var(--blue-dark);
}

.download .button:focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 4px;
}

/* FONTS */

@font-face {
    font-family: "title";
    src: url("/assets/fonts/monsterrat.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "body";
    src: url("/assets/fonts/inter.ttf") format("truetype");
    font-display: swap;
}