@import url('https://fonts.cdnfonts.com/css/montserrat');

*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 450;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-size: 16px;
    color: #cecdc6;
    background-color: #202020;
    width: min(100vw, 100dvw);
    scroll-behavior: smooth;
    padding: 3.5em;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: min(65ch, 100% - 4rem);
    margin-inline: auto;
}

h1 {
    display: flex;
    margin: 6px 0;
    width: 100%;
}

h1::after {
    flex: 1;
    content: '';
    width: 100%;
    height: 0.95em;
    margin-left: 10px;
    border-bottom: 2px solid #cecdc6;
}

sub {
    font-size: 1em;
    font-style: italic;
}

hr {
    margin: 20px 0 2em 0;
    width: 100%;
    border: unset;
    border-bottom: 2px solid #cecdc6;
}

.dashed {
    border-bottom: 1px dashed #91918d;
}

a {
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-decoration: underline;
    color: #FF7864;
}

a:hover {
    text-decoration: none;
}

footer {
    width: 100%;
    text-align: center;
    margin: 1.5em 0 0 0;
}

footer a {
    font-weight: 800;
    padding: 0 25px;
    overflow: hidden;
    text-decoration: none;
    transition: color 200ms;
}

footer a[href]:hover, .nav a:hover {
    color: #cecdc6;
}

h2 {
    width: max-content;
    margin: 0;
    padding-right: 3px;
    font-weight: 300;
    border-bottom: 1px solid #cecdc6;
}

p {
    white-space: pre-wrap;
    margin: 0;
}

blockquote {
    white-space: normal;
    border-left: 10px solid rgba(206, 205, 197, 65%);
    margin: 1em 10px;
    padding: 0.6em 10px;
    quotes: "\201C""\201D""\2018""\2019";
}

blockquote:before {
    color: #cecdc6;
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}

code {
    display: block;
    line-break: anywhere;
    overflow-wrap: anywhere;
    max-width: 100%;
    min-width: 100px;
    padding: 8px;
    font-family: monospace;
    background: rgb(255 255 255 / 10%);
    border-radius: 4px;
}

samp {
    display: inline-block;
    vertical-align: top;
    padding: 0 2px;
    font-family: monospace;
    background: rgb(255 255 255 / 10%);
    border-radius: 2px;
}

h3 {
    width: max-content;
    margin: 0 auto;
    padding: 0 3px 1px 0;
    font-weight: 400;
    font-style: italic;
    border-bottom: 1px dashed #91918d;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 20px 0 2em 0;
    border-bottom: 2px solid #cecdc6;
    border-top: 2px solid #cecdc6;
}

.nav a {
    text-align: center;
    font-size: 1.1em;
    text-decoration: none;
    padding: 4px 0;
    transition: color 200ms;
}

li {
    margin-bottom: 0.5em;
}

li::marker {
    display: inline-block;
    content: '\204D\00a0';
    color: #cecdc6;
}

/*Scrollbar*/

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cecdc6;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #acaba3;
}

::-webkit-scrollbar-corner {
    display: none;
}

/*Mobile Support*/

@media only screen and (max-width: 768px) {
    body {
        padding: 1.5em;
    }

    .nav a {
        flex-basis: 50%;
        text-align: left;
    }

    p, samp, code {
        font-size: 12px;
    }
}

@media (pointer:none), (pointer:coarse) {
    body {
        padding: 1.5em;
    }

    p, samp, code {
        font-size: 12px;
    }

    footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    footer a {
        font-size: 12px;
        margin: 0 10px;
    }
}

@media only screen and (max-width: 420px) {
    .nav a {
        flex-basis: 100%;
        text-align: center;
    }
}