:root {
    /* Base colors */
    --red: #E70316;
    --green: #00A900;
    --yellow: #FFFF12;
    --blue: #0054BE;
    /* Motif Media colors */
    --mm-green: #669B81;
    --mm-beige: #FFF8E2;
    --mm-black: #000000;
    --mm-white: #FFFFFF;
    --mm-grey: #CCCCCC;
    --mm-dark-grey: #A9A9A9;
}

body {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    font-family: 'JetBrains Mono', monospace;
    padding: 1rem;
    color: var(--mm-black);
}

h1 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.center {
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    text-align: justify;
}

a {
    color: var(--mm-green);
    text-decoration: inherit;
}

a:hover {
    color: var(--mm-green);
    text-decoration: underline var(--mm-green);
}

ul, li {
    color: inherit;
}

header {
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--mm-grey);
}

header.left {
    text-align: left;
}

a.nav {
    font-family: 'JetBrains Mono', monospace;
    font-size: inherit;
    color: var(--mm-black);
    background: none;
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: .1rem .3rem;
    border: 1px solid var(--mm-black);
    border-radius: 0;
    text-decoration: none;
}

a.nav:hover {
    color: var(--mm-beige);
    background: var(--mm-green);
}

header.right {
    text-align: right;
}

main {
    font-family: 'IBM Plex Sans', 'Inter', sans-serif;
}

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--mm-dark-grey);
    text-align: center;
    border-top: 1px solid var(--mm-grey);
}

a.grey {
    color: var(--mm-grey);
}

a.grey:hover {
    color: var(--mm-darkgrey);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: inherit;
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: .1rem .3rem;
    border: 1px solid var(--mm-black);
    border-radius: 0;
}

code.grey {
    color: var(--mm-black);
    background: var(--mm-grey);
}

code.green {
    color: var(--mm-white);
    background: var(--green);
}

code.yellow {
    color: var(--mm-black);
    background: var(--yellow);
}

code.red {
    color: var(--mm-white);
    background: var(--red);
}

.not-found {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

table {
    font-size: 0.8rem;
    border: 1px solid var(--mm-grey);
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 0.2rem;
    border: 1px solid var(--mm-grey);
    /* padding-left: 1rem; */
    padding-right: 1rem;
    text-align: left;
}

.mono {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

.instrument-serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

h1.instrument-serif {
    font-size: 2rem;
}

@media screen and (max-width: 500px) {
    .header-right {
        display: none;
    }
}
