body {
    /*background-color: #191919;*/
    background-color: #000000;
    color: #c9c9c9;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    font-size: 1rem;
}

.body-wrap {
    /* max-width, not width: below 1000px this has to shrink with the viewport */
    max-width: 1000px;
    margin: auto;
}

.border-bottom {
    border-bottom: 1px solid #555;
}

.outer-container {
    display: flex;
    justify-content: center;
}

.container {
    display: flex;
    width: 100%;
}

.about {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}

.profile-image {
    max-width: 150px;
    margin-right: 20px;
}

.main {
    width: 70%;
    padding-right: 20px;
}

.sidebar {
    width: 30%;
    padding-left: 20px;
    border-left: 1px solid #555;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding-bottom: 20px;
}

.header h1 {
    margin-top: 0;
    margin-bottom: 5px;
}

.section {
    margin-top: 20px;
    margin-bottom: 20px
}

.sub-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}

.sub-header * {
    margin: 0;
}

.section-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

a {
    /*color: sandybrown;*/
    color: #84aacb;
}

a:visited {
    /*color: saddlebrown;*/
    color: #587b98
}

p, li {
    color: #c9c9c9;
    /* Keeps a long token (email, URL) from forcing a horizontal scrollbar.
       Deliberately not on headings, which would then break mid-word. */
    overflow-wrap: break-word;
}

.only-if-print {
    display: none;
}

@media print {
    .no-print {
        display: none;
    }

    body {
        color: #000;
        background-color: #fff;
        font-size: 0.9rem;
    }

    p, li {
        color: #000;
    }

    /* Keeps "Responsibilities" on one line in the narrow printed sidebar */
    .section-title {
        font-size: 1.15rem;
    }

    .only-if-print {
        display: initial;
    }
}

/* Stack below the two-column layout's comfortable minimum. The old breakpoint was
   400px, which most phones (390-430px) and every tablet missed entirely.
   Scoped to `screen`: A4's printable width lands around 720px, so an unscoped
   query would stack the printed CV into one column too.
   900px rather than 768px: below that the 30% sidebar is too narrow for its
   longest heading ("Responsibilities") to stay on one line. */
@media screen and (max-width: 900px) {
    .main {
        width: 100%;
        padding-right: 0;
    }

    .sidebar {
        width: 100%;
        padding-left: 0;
        border-left: 0;
        /* The divider moves from the left edge to the top once stacked */
        border-top: 1px solid #555;
        margin-top: 20px;
        padding-top: 10px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header > div {
        width: 100%;
    }

    .about {
        flex-direction: column;
        align-items: initial;
    }

    .profile-image {
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .container {
        flex-direction: column;
    }
}