@font-face {
    font-family: 'Varta';
    src: url('../type/Varta.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VartaSemibold';
    src: url('../type/Varta-SemiBold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CommissionerVariable';
    src: url('../type/Commissioner-Variable.woff2') format('woff2 supports variations'),
        url('../type/Commissioner-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --border-color: #939393;
}

body {
    background-color: #fff;
    box-sizing: border-box;
    color: #333;
    font: normal 1rem/1.5rem 'Varta',helvetica,arial,sans-serif;
    margin: 0;
    min-width: 15rem; /* fix */
    position: relative;
}

header {
    border-bottom: 0.4rem solid #000;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

header h1 {
    font-family: 'CommissionerVariable', helvetica,arial,sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.15rem;
    line-height: 2rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    transform: translateY(1rem);
}

header h1 .full {
    color: #666;
}

header h1 .family {
    letter-spacing: 0;
}

header h1 .small-c {
    text-transform: lowercase;
}

header address {
    flex: 1 1 auto;
    font-style: normal;
    padding-top: 0.25rem;
    text-align: right;
}

address a {
    color: #000;
    display: block;
    font-size: 0.875rem;
    text-decoration: none;
}

#inner-wrap {
    margin: 1% 5%;
}

section > ul, section > ul > li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h2 {
    margin-bottom: 0.5rem;
}

h3 {
    margin-bottom: 0.5rem;
}

#summary p {
    margin-top: 0;
}

.skillset h4,
.experience h4,
.vevent h4 {
    margin-bottom: 0.5rem;
}

.skillset:first-of-type h4,
.experience:first-of-type h4,
.vevent:first-of-type h4 {
    margin-top: 0.5rem;
}

.skillset li {
    display: inline-block;
}

.skillset li::after,
.experience .summary::after,
.experience .org::after {
    content: ', ';
}

.skillset li:last-of-type::after {
    content: '';
}

.experience .summary::after,
.experience .org::after {
    padding-right: 0.25rem;
}

.experience li {
    padding-bottom: 0.5rem;
}

.experience li:last-of-type {
    padding-bottom: 0;
}

.vevent p {
    margin-top: 0;
}

/* mid-level design */
@media print, screen and (min-width: 26rem) {
    header h1 {
        font-size: 3rem;
        line-height: 3rem;
        transform: none;
    }

    header .family {
        letter-spacing: 0.1rem;
    }
}

@media print, 
    screen and (min-width: 53.2rem) {
    @page {
        size: auto;
        margin: 0.5in;
    }

    header h1 {
        font-size: 3.5rem;
        line-height: 1.5rem;
        margin: 1.5rem 0;
        font-weight: 500;
    }

    header address {
        padding-top: 1.35rem;
    }

    section {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
    }

    section:not(#summary) {
        display: flex;
        margin-bottom: 1.5rem;
    }

    section h3 {
        flex: 1 1 auto;
        font-size: 1rem;
        margin-top: 0;
        max-width: 10rem;
        min-width: 10rem;
        text-transform: uppercase;
    }

    section ul {
        flex: 8 1 auto;
    }

    /* #summary, 
    #skills {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
    } */

    #summary {
        margin-bottom: 1.5rem;
    }

    #summary p {
        margin-bottom: 0;
    }

    .skills h4,
    .experience h4,
    .vevent h4
    .skills:first-of-type h4,
    .skillset:first-of-type h4,
    .experience:first-of-type h4,
    .vevent:first-of-type h4  {
        margin-top: 0;
    }

    .skillset {
        border-bottom: 1px solid var(--border-color);
        display: flex;
        padding: 0.5rem 0 0 0;
    }

    .skillset:first-of-type {
        padding-top: 0;
    }

    .skillset:last-of-type {
        border-bottom-width: 0;
        padding-bottom: 0;
    }

    .skillset:last-of-type h4 {
        margin-bottom: 0;
    }

    .skillset h4 {
        flex: 1 1 17rem;
        max-width: 17rem;
        min-width: 17rem;
    }

    .skillset ul {
        flex: 4 1 auto;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .experience {
        border-bottom: 1px solid var(--border-color);
        display: flex;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .experience:last-of-type {
        border-width: 0;
    }

    .experience [hidden] {
        display: none;
    }

    .experience h4 {
        flex: 1 1 auto;
        max-width: 16rem;
        min-width: 16rem;
    }

    .experience h4 span {
        display: block;
    }

    .experience ul {
        flex: 6 1 auto;
        margin-left: 0;
        padding-left: 1rem;
    }

    .experience .stack {
        font-style: italic;
    }

    section.letter-content:not(#summary) {
        border-bottom-width: 0;
        display: block;
        margin-top: 26rem;
    }
}