div {
    box-sizing: border-box;
}

body {
    font-size: 18px;
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
}

main {
    display: flex;
    align-items: flex-start;
    width: calc(100% - 4em);
    max-width: 1200px;
    margin: 0 auto;
}

.profile {
    position: sticky;
    top: 0px;
    margin-right: 2em;
    padding: 2em 0;
}

img.profile__image {
    width: 10em;
    border-radius: 1em;
    margin-bottom: 1em;
}

p.profile__leadin {
    font-style: italic;
}

.profile h1 {
    font-weight: 700;
    font-size: 1.5em;
    margin: 0.25rem 0;
}

.profile h2 {
    font-style: italic;
}

.profile__divider {
    margin: 1em 0;
    height: 2px;
    background: #fafafa;
}

ul.profile__links > li > a {
    padding: 0.25em 0;
    display: block;
    color: inherit;
}

.resume__content {
    padding: 2em 0;
    line-height: 1.2em;
}

.resume h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.resume h3:not(:first-child) {
    margin-top: 2rem;
}

.resume__skills {
    display: flex;
    justify-content: space-between;
    max-width: 40rem;
}

.resume h4 {
    font-weight: 600;
    font-size: 1.1em;
    margin: 0.5rem 0;
}

.resume__skill-set > ul {
    list-style: disc;
    padding-left: 1em;
}

.resume__skill-set > ul > li:not(:last-child) {
    margin-bottom: 0.5em;
}

.resume__skill-set strong {
    font-weight: 600;
    font-style: italic;
}

.resume__role:not(:last-child) {
    margin-bottom: 2em;
}

.resume__role__content ul {
    list-style: disc;
    padding-left: 1em;
}

.resume__role__content ul > li:not(:last-child) {
    margin-bottom: 0.5em;
}

.resume__role__content ul > li > ul {
    margin-top: 0.5rem;
}

@media screen and (max-width: 880px) {
    main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile {
        margin-right: 0;
        display: flex;
        position: relative;
        align-items: center;
    }
    
    img.profile__image {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .resume__content {
        padding-top: 0;
    }
}

@media screen and (max-width: 640px) {
    body {
        font-size: 14px;
    }   

    .resume__skills {
        display: block;
    }
    
    .resume__skill-set:first-child {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 400px) {
    
}