@font-face {
    font-family: custom;
    src: url(../fonts/blach.woff);
}
:root {
    --dark: #000;
    --darktl: #00000083;
    --light: #fff;
    --med2: #87878785;
    --med: #878787;
    --border: 0.5px solid var(--med2);
}
/* Structure */
body {
    padding: 0px;
    margin: 0px;
    color: var(--light);
    background-color: var(--dark);
    background-image: url(imgs/bggrim.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    line-height: 1.5em;
    image-rendering: pixelated;
    overflow: hidden;
}
#container {
    max-width: 700px;
    height: 100vh;
    display: grid;
    grid-template-columns: 23% 77%;
    background-color: var(--dark);
}
header {
    writing-mode: vertical-rl;
    border-right: var(--border);
}
#nav {
    border-right: var(--border);
}
main {
    margin: 20px;
    padding: 30px;
    padding-bottom: 100px;
    background-image: url(imgs/corner1.png), url(imgs/corner2.png), url(imgs/corner3.png), url(imgs/corner4.png);
    background-size: 75px, 75px, 75px, 75px, 230px;
    background-position: top left, bottom right, bottom left, top right;
    background-repeat: no-repeat;
    border: 2.5px solid var(--light);
    overflow: auto;
}
section {
    margin-bottom: 10px;
}

/* Headings */
h1, h2,h3 {
    font-family: custom;
    font-weight: normal;
    letter-spacing: 0.3em;
    font-size: 2em;
}
h1 {
    margin-top: 20px;
    font-size: 3em;
}
h2 {
    text-align: center;
}
h3 {
    font-size: 1em;
}

/* Markdown */
a {
    color: var(--light);
}
a:hover {
    transition: 0.2s;
    color: var(--med);
}
b {
    font-family: custom;
    font-weight: normal;
    letter-spacing: 0.3em;
}
small, sub, sup {
    color: var(--med);
}
summary {
    cursor: pointer;
    border-top: var(--border);
}
summary::marker {
    color: var(--med);
    font-size: 1.2em;
}
blockquote {
    border: var(--border);
    border-left: 7.5px double var(--med2);
    margin: 0px; 
    margin-bottom: 10px;
    padding-left: 20px;
}

table {
    border-collapse: collapse;
    border: var(--border);
    margin-bottom: 10px;
    width: 100%;
    th {
        font-weight: normal;
        font-family: custom;
        letter-spacing: 0.3em;
    }
}
td,th {
    text-align: left;
}

/*responsive*/
@media (max-width: 690px) {
    body {
        margin: 20px;
        overflow: auto;
    }
    #container {
        display: block;
        grid-template-columns: none;
        height: 100%;
    }
    header {
        writing-mode: horizontal-tb;
        border: none;
        text-align: center;
    }
    #nav {
        border: none;
        ol {
            padding-left: 0px;
        }
        li {
            display: inline-block;
        }
    }
    main {
        margin: 5px;
    }
    h1 {
        font-size: 2em;
    }
}