body {
    font-family: Avenir, Helvetica, Sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, ul, li, p {
    margin: 0;
    padding: 0;
}

ul, li {
    list-style-type: none;
}

ul.bordered > li {
    margin-left: 0px;
    margin-top: 0.2em;
}

ul.bordered > li::before {
    content: "◈ ";
    color: #a6b9d6;
}

li {
    padding-left: 0.3em;
}

body > div {
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5em;
}

h1 {
    padding-left: 0.1em;
    margin-top: 0;
    line-height: 1.0em;
    position: relative;
}

h1 > span {
    font-size: 0.6em;
    color: #333333;
    font-weight: normal;
    display: block;
    line-height: 1em;
}

a {
    color: #5577aa;
}

h2 {
    padding-top: 0.2em;
    padding-left: 0.2em;
    line-height: 1em;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 0.1em;
    margin-top: 0.6em;
    background-color: #eeeeee;
}

h3 {
    line-height: 1.0em;
}

ul.contact {
    font-size: 0.5em;
    font-weight: normal;
    display: block;
    float: right;
    position: absolute;
    right: 0.3em;
    top: 0px;
    line-height: 1.0em;
}

.contact > li {
    position: relative;
    margin-bottom: 0.8em;
}

.contact > li > label {
    font-size: 0.9em;
    position: absolute;
    top: 0.9em;
    font-weight: bold;
    color: #cccccc;
}

hr {
    border: 3px solid #eeeeee;
    border-radius: 4px;
}

img.logo {
    height: 50px;
    width: 50px;
    box-sizing: border-box;
    background-clip: content-box;
    border: 4px solid transparent;
    border-radius: 8px;
}

company {
    display: block;
    font-size: 1em;
}

.company {
    width: 12%;
    text-align: center;
    line-height: 0.9em;
    font-weight: bold;
    color: #aaaaaa;
}

.company > div {
    display: table-cell;
    vertical-align: middle;
    height: 100px;
    width: 100px;
    background-color: #eeeeee;
    border-radius: 8px;
}

.job {
    width: 88%;
    position: relative;
}

table.work {
    border-collapse: collapse;
    width: 100%;
}

table.work td {
    padding-bottom: 0.4em;
    padding-top: 0.4em;
    vertical-align: middle;
}

table tr:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.experience {
    list-style-position: outside;
    margin-left: 0.6em;
}

.experience li {
    display: block;
    margin-top: 0.3em;
    text-indent: -0.7em;
}

.experience li::before {
    content: "◖";
    color: #bbbbbb;
    font-weight: bold;
}

tenure {
    position: absolute;
    right: 0px;
    top: 0.4em;
    display: block;
}

.pp {
    width: 32px;
    border-radius: 16px;
    left: 0px;
    position: relative;
    top: 3px;
}

h2.patents {
    margin-top: 5px;
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) {
    body {
        font-size: 2.2em;
    }

    body > div {
        margin-top: 0.4em;
        padding: 0em;
        width: 96%;
        margin-bottom: 3em;
    }

    h1 > span {
        width: 600px;
    }

    .company > div {
        height: 200px;
        width: 250px;
    }

    .company {
        width: 100%;
    }

    .job {
        width: 100%;
    }

    img.logo {
        height: 90px;
        width: 90px;
    }

    td {
        display: block;
    }

    .pp {
        width: 64px;
        border-radius: 32px;
    }

    h3 {
        display: block !important;
    }

    tenure {
        display: block;
        position: relative;
    }
}

@media print {
    img.pp, div.links {
        display: none;
    }
}
