body {
    margin: 0px;
    padding: 0px;
}

.container {
    background-color: #fbf7f6;
    color: #35343a;
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    grid-template-columns: 1fr 128px 128px 256px 256px 128px 128px 1fr;
    grid-template-rows: 24px 54px 128px 128px 164px 1fr 1fr 24px;
    min-height: 100vh;
}

.long-container {
    background-color: #fbf7f6;
    color: #35343a;
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    grid-template-columns: 1fr 128px 128px 256px 256px 128px 128px 1fr;
    grid-template-rows: 24px 54px 128px 1fr 24px;
    min-height: 100vh;
}

h1 {
    margin: 0px;
    font-size: 48px;
    line-height: 54px;
    grid-column: 3 / 5;
    grid-row: 2 / 3;
    text-align: right;
}

h2 {
    margin: 0px;
    font-size: 36px;
    line-height: 42px;
}

a {
    color: #35343a;
}

.bio a {
    text-decoration: none;
    font-weight: bold;
}

.bio a:hover {
    display: inline-block;
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

ul {
    list-style-type: none;
}

.projects {
    grid-column: 3 / 6;
    grid-row: 3 / 5;
}

.back {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.accent {
    background-color: #35343a;
    height: 4px;
    width: 100px;
}

.bio {
    grid-column: 3 / 5;
    grid-row: 4 / 7;
    text-align: right;
}

.bio .accent {
    margin-left: 292px;
}

.bio p {
    margin: 0px 0px 8px 0px;
}

.education {
    grid-column: 5 / 7;
    grid-row: 6 / 7;
}

.education span {
    display: block;
}

.education .degree {
    font-weight: bold;
}

.education .school {
    font-size: 12px;
    font-style: italic;
    line-height: 14px;
}

.employment {
    grid-column: 5 / 7;
    grid-row: 4 / 6;
}

.hoverable:hover {
    background-color: #35343a;
    color: #fbf7f6;
}

.hoverable:hover .accent {
    background-color: #fbf7f6;
}

.hoverable:hover a {
    color: #fbf7f6;
}

.employment span {
    display: block;
}

.employment .title {
    font-weight: bold;
}

.employment .timespan {
    font-size: 12px;
    font-style: italic;
    line-height: 14px;
}

.links {
    grid-column: 2 / 3;
    grid-row: 3 / 5;
}

.links .content {
    position: relative;
    top: 168px;
    transform: rotateZ(-90deg);
    white-space: nowrap;
}

.links a {
    color: #35343a;
    display: inline-block;
    margin: 0px 8px 0px 0px;
    text-decoration: none;
}

.job-description {
    background-color: #35343a;
    color: #fbf7f6;
    padding: 8px;
    position: absolute;
    visibility: hidden;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.job:hover .job-description {
    visibility: visible;
}

img {
    max-width: 80%;
    margin: 12px 10%;
    border-radius: 4%;
}

@media screen and (max-width: 1023px) {
    .container {
        grid-template-columns: 1fr 100px 100px 180px 180px 100px 100px 1fr;
        grid-template-rows: 24px 54px 128px 128px 200px 80px 1fr 24px;
    }

    .long-container {
        background-color: #fbf7f6;
        color: #35343a;
        display: grid;
        font-family: Arial, Helvetica, sans-serif;
        grid-column-gap: 8px;
        grid-row-gap: 8px;
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: 24px 48px 3fr 24px;
        min-height: 100vh;
    }

    .long-container h1 {
        font-size: 42px;
        line-height: 48px;
        grid-column: 2 / 4;
        text-align: right;
    }

    .projects {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .employment {
        grid-row: 4 / 6;
    }

    .long-container h2 {
        text-align: left;
    }

    .back {
        text-align: right;
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .bio {
        grid-row: 4 / 7;
    }

    .bio .accent {
        margin-left: 188px;
    }

    .education {
        grid-row: 7 / 8;
    }

    .links .content {
        position: relative;
        top: 182px;
        transform: rotateZ(-90deg);
        white-space: nowrap;
    }
}

@media screen and (max-width: 767px) {
    .container {
        grid-column-gap: 4px;
        grid-row-gap: 4px;
        grid-template-columns: 1fr 60px 60px 100px 100px 1fr;
        grid-template-rows: 24px 48px 128px 90px 200px 48px 1fr 80px 1fr 1fr 24px;
    }

    .container h1 {
        font-size: 42px;
        line-height: 48px;
        grid-column: 3 / 6;
        text-align: right;
    }

    h2 {
        font-size: 32px;
        line-height: 36px;
        text-align: right;
    }

    .bio {
        grid-column: 3 / 6;
        grid-row: 4 / 8;
        text-align: justify;
    }

    .bio .accent {
        margin-left: 168px;
    }

    .employment {
        grid-column: 2 / 6;
        grid-row: 8 / 10;
    }

    .employment .accent {
        margin-left: 232px;
    }

    .education {
        grid-column: 2 / 6;
        grid-row: 10 / 10;
    }

    .education .accent {
        margin-left: 232px;
    }

    .job-description {
        background-color: #35343a;
        color: #fbf7f6;
        position: absolute;
        visibility: hidden;
        top: 82%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .links .content {
        position: relative;
        top: 163px;
        transform: rotateZ(-90deg);
        white-space: nowrap;
    }
}