@font-face {
    font-family: Hind;
    font-style: normal;
    font-weight: 400;
    src:
        local("Hind Regular"),
        local("Hind-Regular"),
        url(Hind-Regular.woff2) format("woff2");
}

@font-face {
    font-family: Hind;
    font-style: normal;
    font-weight: 700;
    src:
        local("Hind Bold"),
        local("Hind-Bold"),
        url(Hind-Bold.woff2) format("woff2");
}

@font-face {
    font-family: "Share Tech Mono";
    font-style: normal;
    font-weight: 400;
    src:
        local("Share Tech Mono"),
        local("ShareTechMono-Regular"),
        url(ShareTechMono-Regular.woff2) format("woff2");
}

body {
    padding: 20px 150px 50px 50px;
    margin: 0;
    font-family: Hind, sans-serif;
    font-size: 18px;
    color: #ccc;
    background: fixed #222 url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii45IiBudW1PY3RhdmVzPSIxMCIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PC9maWx0ZXI+PHBhdGggZmlsbD0iIzExMSIgZD0iTTAgMGg1MDB2NTAwSDB6Ii8+PHBhdGggZD0iTTAgMGg1MDB2NTAwSDB6IiBmaWx0ZXI9InVybCgjYSkiIG9wYWNpdHk9Ii4yIi8+PC9zdmc+Cg==);
}

a {
    color: #699;
    text-decoration: none;
    transition: color 2.5s ease;
}

a:hover {
    color: #d55;
    text-decoration: underline;
    transition: color 0.5s ease;
}

a:focus {
    outline: none;
}

h1 {
    margin: 0;
    font-size: 120%;
    font-weight: bold;
    color: #fff;
}

h2 {
    font-size: 110%;
    font-weight: bold;
    color: #fff;
}

body:not(.index) h2 {
    text-transform: uppercase;
}

h3 {
    font-size: 100%;
    font-weight: bold;
    color: #fff;
}

hr {
    height: 0;
    border-color: #ddd;
    border-style: solid;
    border-width: 1px 0 0;
}

code {
    font-family: "Share Tech Mono", monospace;
    font-size: 90%;
}

pre {
    padding: 4px;
    overflow-x: scroll;
    line-height: 110%;
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
}

.content {
    max-width: 1000px;
}

.hidden {
    display: none;
}

a svg.inline {
    height: 1em;
    margin: 0 0.5em;
}

a svg.inline path {
    fill: #ccc;
}

/* sidebar */

.sidebar {
    position: fixed;
    right: 50px;
    text-align: right;
}

body.index .sidebar .item.noix {
    display: none;
}

.sidebar .item.sep {
    height: 1em;
}

.sidebar .tiny {
    font-size: 75%;
}

body.redirect .sidebar {
    display: none;
}

/* index */

body.index .header {
    display: none;
}

body.index .content > p:nth-child(1) {
    margin-top: 0;
}

body.index .content {
    max-width: 500px;
}

body.index #def {
    font-size: 100%;
    font-weight: bold;
    color: #5d737e;
}

/* pages */

body:not(.index) .deprecated {
    position: sticky;
    top: 0;
    padding: 4px 8px;
    margin: 20px 0;
    font-size: 90%;
    color: #ccc;
    text-align: center;
    background: #432a2a;
    border: 1px solid #444;
    border-radius: 2px;
}

body:not(.index) img {
    max-width: 66%;
    height: auto;
}

body.resume img.white-bg {
    padding: 6px;
    background-color: #fff;
}

body.resume img.black-bg {
    padding: 6px;
    background-color: #000;
}

body.resume .content ul {
    margin-top: -1em;
}

/* blog */

body.blog .content {
    max-width: 800px;
}

body.blog .date {
    font-size: 90%;
}

body.blog h1.return a {
    color: #aeb9bf;
}

/* mobile */

@media (width <= 640px) {
    body {
        padding: 10px;
    }

    .sidebar {
        position: static;
        margin-bottom: 10px;
        text-align: center;
    }

    .sidebar .item {
        display: inline-block;
        padding: 0 10px;
    }

    .sidebar .item.nomb {
        display: none;
    }
}
