@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(../font/nunito.woff2) format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../font/JetBrainsMono-Regular.woff2') format('woff2');
}
* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #fff9e8;
    color: #111;
    font-family: 'PT Serif', serif;
    line-height: 1.6;
    text-wrap: pretty;

    /*
    Prevents inconsistent/inflated text sizes on Mobile Safari.
    Particularly noticeable for code snippets with overflow.
    */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    color: #a63a00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    font-family: 'Nunito', sans-serif;
}

h1 {
    font-weight: 600;
    color: #444;
    margin: 1.5em 0;
}

h2 {
    font-weight: 600;
    color: #bf3d16;
    margin: 1.3em 0;
}

h3 {
    font-weight: 600;
    color: #b45b5b;
    margin: 1.25em 0;
}

main,
.footer-content {
    max-width: 800px;
    margin: 0px auto;
}

main {
    padding: 20px 30px;
}

footer {
    height: 100px;
    border-top: 1px solid #ebe0c9;
}

.footer-content {
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
    padding-inline: 30px;
}

footer .date {
    opacity: 0.5;
}

.toc {
    padding: 1rem 0;
    border: 1px solid #e6c690;
    border-radius: 6px;
    background: #fff3d690;
    width: fit-content;
    padding-right: 1.25rem;
    line-height: 1.8;
}

.toc ul,
.toc ol {
    padding-left: 1.25rem;
}
.toc li {
    list-style-type: none;
}

li::marker {
    color: #301d0155;
}

p {
    margin: 0.5em 0;
}

/* Code Blocks */
figure {
    border: 1px solid #915704;
    padding: 10px;
    background: #fffcf2;
    border-radius: 5px;
    overflow: auto;
    margin: 0.5em 0;
}

figure::selection {
    background: #facd5a;
}

/* Inline Code */
code:not(pre code) {
    font-family: 'JetBrains Mono';
    font-size: 0.9rem;
    padding: 0.12em 0.3em;
    margin: 0;
    background-color: #fcd6cc;
    color: #802200;
    border-radius: 3px;
}

/* Diagrams and such */
.figure {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.MathJax {
    color: #000;
}

.MathJax svg {
    max-width: 100%;
}

blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 4px solid #dcc2ad;
}
