@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    src: url('/fonts/charter_regular.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: normal;
    font-stretch: normal;
    src: url('/fonts/charter_italic.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: bold;
    font-stretch: normal;
    src: url('/fonts/charter_bold.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: bold;
    font-stretch: normal;
    src: url('/fonts/charter_bold_italic.woff2') format('woff2');
}

body {
    font-size: 1.2em;
    line-height: 1.45;
    background-color: #eee;
}

a:link, a:visited {
    color: darkcyan;
}

a:hover {
    text-decoration: none;
}

blockquote {
    border-left-style: solid;
    padding-left: 3em;
    margin-left: 0;
    font-style: italic;
}

#main {
    max-width: 80ch;
    margin: auto;
}

img {
    max-width: 100%;
    max-height: 512px;
    margin: auto;
    display: block;
}

#navigation {
    color: white;
    background-color: black;

    border: 1px solid black;

    width: 100%;
    display: flex;
}

#navigation > a {
    color: white;

    margin: 1px;

    display: inline-block;
    flex: 1;

    text-align: center;
    text-decoration: none !important;
}

#navigation > a:hover {
    color: white;
    background-color: grey;
}

#navigation > .nav-active {
    color: black;
    background-color: white;
}

.warn {
    color: yellow;
}

/** PROJECTS PAGE **/

#projects_index {
    margin-top: 1em;

    display: grid;
    grid-gap: 1em;

    grid-template-columns: repeat(2, 1fr);
}

.project-item {
    background-color: #ddd;
    padding: 1em;
}

.project-item > h2 {
    margin-top: 0;
}

.project-item > img {
    width: 450px;
    height: 215px;
}
