@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    background-color: #232327;
    color: #111;
    font-family: 'Poppins', sans-serif;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    margin: 0;
}

body,
html {
    height: 100%;
}

header {
    border-bottom: 0.15em solid #000;
    position: relative;
    padding-left: 1em;
}

h1 {
    font-size: 1.6em;
    line-height: 1rem;
}

h1,
h2,
h3 {
    letter-spacing: 0.16rem;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
}

h1,
h3 {
    font-weight: 600;
}

h2 {
    font-size: 1.2em;
    font-weight: 400;
    max-width: 70%;
}

h3 {
    font-size: 1.3em;
}

main {
    display: grid;
    font-size: 0.9rem;
    padding-top: 0.75em;
}

main > * {
    padding: 1em;
}

.contact a,
.contact__address {
    padding-left: 48px;
}

.contact li {
    background-repeat: no-repeat;
    line-height: 32px;
    margin-bottom: 1em;
}

.contact__address {
    background-image: url('location.png');
    background-image: image-set(
        url('location.avif'),
        url('location.webp'),
        url('location.png')
    );
}

.contact__email {
    background-image: url('email.png');
    background-image: image-set(
        url('email.avif'),
        url('email.webp'),
        url('email.png')
    );
}

.contact__phone {
    background-image: url('phone.png');
    background-image: image-set(
        url('phone.avif'),
        url('phone.webp'),
        url('phone.png')
    );
}

.container {
    background-color: #fff;
    padding: 2em 0;
}

.resume {
    background: url('pdf.png') 8px 0 no-repeat;
    background-image: image-set(
        url('pdf.avif'),
        url('pdf.webp'),
        url('pdf.png')
    );
    color: #000;
    font-size: 0.8em;
    font-weight: 600;
    padding-top: 48px;
    top: -1em;
    right: 2em;
    position: absolute;
    text-align: center;
    text-decoration: none;
    width: 60px;
}

.skills li {
    display: inline;
}

.skills dl {
    display: grid;
}

.skills li:not(:last-child)::after {
    content: ', ';
}

.synopsis  {
    background-color: #eee;
}

.synopsis > * {
    padding-bottom: 0.5em;
}

.synopsis dd {
    margin: 0;
}

.synopsis dt {
    font-weight: 600;
}

.synopsis ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-experience dt {
    display: grid;
    grid-template-areas: 'title title' 'employer date_range';
}

.work-experience li {
    margin-bottom: 0.3em;
}

.work-experience ul {
    list-style: square;
    padding: 0;
}

.work-experience__date-range {
    grid-area: date_range;
    text-align: right;
}

.work-experience__employer {
    grid-area: employer;
}

.work-experience__title {
    font-weight: 600;
    grid-area: title;
}

@media screen and (min-width: 768px) {
    body {
        grid-template-columns: auto;
    }

    header {
        text-align: center;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
        max-width: 100%;
    }

    main {
        grid-template-columns: 25em 1fr;
    }

    .container {
        padding: 3em 5.7em 3em 5.7em;
        width: 56em;
    }

    .resume {
         right: 1em;
     }

    .skills dl {
        grid-template-columns: 10em 1fr;
    }
}
