@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");

:root {
    --theme-color: firebrick;
}

body {
    font-family: 'Nunito', 'Sans-Serif';
    color: black;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

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

h3, h4 {
    color: var(--theme-color);
}

a {
    color: var(--theme-color);
    text-decoration: none;
  }
  
a:hover, a:active {
    font-weight: bold;
}

a:visited {
    color: var(--theme-color);
    background-color: white;
}

.item-photo {
    grid-area: photo;
}

.item-photo img {
    display: block;
    width: 100%;
    border-radius: 2px;
}

.item > p {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: smaller;
}

.item-experience > p {
    margin-top: 0em;
    margin-bottom: 1em;
    font-size: smaller;
}

.item-experience > .title {
    color: var(--theme-color);
    display: flex;
    justify-content: space-between;
}
.item-experience > .experience-dates {
    margin-top: 0em;
    margin-bottom: .25em;
    font-size: x-small;
}

.item-skills > ul {
    padding-inline-start: 1em;
}

.item-skills > ul > li {
    margin-top: 0em;
    margin-bottom: .5em;
    font-size: smaller;
}

.item-header {
    grid-area: header;
    background-color: indianred;
    color: white;
    padding: .5em;
    border-radius: 2px;
}

.item-header > h4 {
    color: #fff;
}

.item-header > p {
    margin-block: 0 0;
}

.item-experiences {
    grid-area: experiences;
}

.item-skills {
    grid-area: skills;
}

.item-footer {
    grid-area: footer;
}

.container {
    margin: 1em 1em 1em 1em;

    display: grid;
    grid-template-columns: minmax(196px, 1fr) minmax(556px, 3fr);
    grid-template-rows: auto;
    grid-column-gap: 1em;
    grid-row-gap: .5em;   
    grid-template-areas: 
        "photo  header"
        "skills experiences"
        "footer footer";
}