@font-face {
    font-family: "Terminess";
    src: url("../fonts/terminess/TerminessNerdFont-Regular.ttf")
        format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Terminess";
    src: url("../fonts/terminess/TerminessNerdFont-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* gruvbox dark palette reference
bg0: #1d2021
bg1: #282828
bg2: #32302f
fg0: #ebdbb2
fg1: #d5c4a1
yellow: #fabd2f
orange: #fe8019
blue: #83a598
aqua: #8ec07c
red: #fb4934
purple: #d3869b
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #1d2021;
    color: #ebdbb2;
    font-family: "Terminess", monospace;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background-color: #282828;
    border-right: 1px solid #3c3836;
    padding-top: 24px;
}

.sidenav a {
    display: block;
    padding: 10px 16px;
    color: #a89984;
    font-size: 1.25rem;
    text-decoration: none;
    transition:
        background 0s ease,
        color 0s ease;
}

.sidenav a:hover {
    background-color: #32302f;
    color: #fabd2f;
}

.main {
    margin-left: 180px;
    padding: 48px 24px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

h1,
h2,
h3 {
    color: #fabd2f;
    margin-bottom: 0.4em;
}

h1 {
    font-size: 2.25rem;
}

p {
    color: #d5c4a1;
    margin: 1em 0;
    font-size: 1.25rem;
}

a {
    color: #83a598;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 1.25rem;
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #a89984;
}

@media (max-width: 640px) {
    .sidenav {
        width: 140px;
    }

    .main {
        margin-left: 140px;
        padding: 32px 16px;
    }

    .container {
        max-width: 100%;
    }
}

pre {
    font-family: "Terminess", monospace !important;
    font-size: 0;
    color: #ebdbb2;
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 0;
    padding: 0.5rem 0;
}

pre a {
    font-family: inherit !important;
    font-size: 1.1rem;
    color: #83a598;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    word-break: break-word;
}

pre a:hover {
    color: #fabd2f;
}
