



@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Black.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Bold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-BlackItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-BoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-HeavyItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-HeavyItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Heavy.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Italic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Light.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-LightItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Regular.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-SemiBold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-SemiBoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-Thin.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-ThinItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-UltraLight.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('https://yyorb.com/fonts/Aileron/Aileron-UltraLightItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/Aileron/Aileron-UltraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}


@font-face {
    font-family: 'TeXGyreHeros';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-BoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHeros';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Bold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHerosCondensed';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Bold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHerosCondensed';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-BoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHerosCondensed';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Italic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHerosCondensed';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Regular.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHerosCondensed-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHeros';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Italic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TeXGyreHeros';
    src: url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Regular.woff2') format('woff2'),
        url('https://yyorb.com/fonts/TexGyreHeros/TeXGyreHeros-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Latin Modern Math';
    src: local('Latin Modern Math'), local('LatinModernMath-Regular'),
        url('https://yyorb.com/fonts/LatinModernMath/LatinModernMath-Regular.woff2') format('woff2'),
        url('https://yyorb.com/fonts/LatinModernMath/LatinModernMath-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Regular'), local('EBGaramond-VariableFont_wght'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Italic'), local('EBGaramond-Italic-VariableFont_wght'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 800;
    font-style: italic;
    font-display: swap;
}

/*
@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Bold Italic'), local('EBGaramond-BoldItalic'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-BoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Bold'), local('EBGaramond-Bold'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Bold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond ExtraBold'), local('EBGaramond-ExtraBold'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-ExtraBold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond ExtraBold Italic'), local('EBGaramond-ExtraBoldItalic'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-ExtraBoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Italic'), local('EBGaramond-Italic'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Italic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Medium'), local('EBGaramond-Medium'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Medium.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Medium Italic'), local('EBGaramond-MediumItalic'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-MediumItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond Regular'), local('EBGaramond-Regular'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Regular.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond SemiBold'), local('EBGaramond-SemiBold'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-SemiBold.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: local('EB Garamond SemiBold Italic'), local('EBGaramond-SemiBoldItalic'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-SemiBoldItalic.woff2') format('woff2'),
        url('https://yyorb.com/fonts/EBGaramond/EBGaramond-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
    */
html {
    font-size: 100%;
}

body.light-mode {
    --text: hsl(326, 15%, 21%);
    --background: hsl(41, 41%, 88%);
    --primary: hsl(215, 28%, 39%);
    --secondary: hsl(96, 27%, 69%);
    --accent: hsl(159, 50%, 24%);

    --text-lightest: hsl(326, 15%, 50%);
    --text-lighter: hsl(327, 15%, 35%);
    --text-darker: hsl(326, 14%, 10%);
    --text-darkest: hsl(330, 15%, 5%);
    --text-maximised: black;

    --bg-lightest: hsl(42, 38%, 95%);
    /* practically the same as the normal bg colour in this scheme, 
                                            so changed to a version of the text colour */
    --bg-lighter: hsl(326, 16%, 80%);
    --bg-darker: hsl(41, 41%, 80%);
    --bg-darkest: hsl(41, 41%, 70%);
    --bg-maximised: white;

    --primary-lightest: hsl(215, 28%, 60%);
    --primary-lighter: hsl(215, 28%, 50%);
    --primary-darker: hsl(215, 28%, 30%);
    --primary-darkest: hsl(217, 27%, 15%);
    --primary-maximised: mediumblue;

    --secondary-lightest: hsl(94, 28%, 95%);
    --secondary-lighter: hsl(96, 27%, 80%);
    --secondary-darker: hsl(96, 27%, 55%);
    --secondary-darkest: hsl(96, 27%, 35%);
    --secondary-maximised: lime;

    --accent-lightest: hsl(158, 50%, 50%);
    --accent-lighter: hsl(158, 50%, 35%);
    --accent-darker: hsl(158, 50%, 15%);
    /* basically black... */
    --accent-darkest: hsl(157, 52%, 5%);
    --accent-maximised: turquoise;

    .moon {
        display: none;
    }

    .sun {
        display: inline;
    }
}

body.dark-mode {
    --text: hsl(60, 10%, 92%);
    --background: hsl(213, 21%, 8%);
    --primary: hsl(216, 41%, 65%);
    --secondary: hsl(159, 50%, 24%);
    --accent: hsl(96, 27%, 69%);

    /* nomenclature inverted to keep consistent with light theme
        'lighter' colours here will (generally) have decreased contrast with the background */

    /* the 'darkest' two here are practically the same as the actual colours...
        so im going to 'simplify' the process */
    --text-darkest: white;
    --text-darker: hsl(60, 12%, 95%);
    --text-lighter: hsl(60, 10%, 75%);
    --text-lightest: hsl(60, 10%, 55%);
    --text-maximised: white;

    /* similar problem to the text colours */
    --bg-darkest: hsl(213, 21%, 40%);
    --bg-darker: hsl(213, 22%, 20%);
    --bg-lighter: hsl(216, 20%, 5%);
    --bg-lightest: black;
    --bg-maximised: black;

    --primary-darkest: hsl(217, 41%, 90%);
    --primary-darker: hsl(216, 41%, 80%);
    --primary-lighter: hsl(216, 41%, 45%);
    --primary-lightest: hsl(216, 41%, 20%);
    --primary-maximised: deepskyblue;

    --secondary-darkest: hsl(159, 50%, 70%);
    --secondary-darker: hsl(159, 50%, 45%);
    --secondary-lighter: hsl(159, 50%, 15%);
    --secondary-lightest: hsl(158, 49%, 10%);
    --secondary-maximised: turquoise;

    --accent-darkest: hsl(97, 25%, 90%);
    --accent-darker: hsl(96, 27%, 80%);
    --accent-lighter: hsl(96, 27%, 45%);
    --accent-lightest: hsl(97, 27%, 25%);
    --accent-maximised: lime;

    .moon {
        display: inline;
    }

    .sun {
        display: none;
    }
}

body {
    padding: 0;
    margin: 0;
    font-size: 14pt;
    line-height: 1.5;
    display: grid;
    grid-template-columns: 1fr 42rem 1fr;
    font-family: "EB Garamond", "Garamond", serif;
    color: var(--text, hsl(326, 15%, 21%));
    background-color: var(--background, hsl(60, 10%, 92%));
}

body.fade,
nav.fade {
    transition: color 0.25s ease-in;
    transition: background 0.25s ease-in;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "EB Garamond", "Garamond", serif;
    font-weight: 700;

    a {
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

h1 {
    font-size: 1.802rem;
}

h2 {
    font-size: 1.602rem;
}

h3 {
    font-size: 1.424rem;
}

h4 {
    font-size: 1.266rem;
}

h5 {
    font-size: 1.125rem;
}

small {
    font-size: 0.889rem;
}

a {
    text-decoration: underline;
    color: var(--accent, hsl(159, 41%, 36%));
    transition: color 0.5s ease;
}

a:hover {
    color: var(--text, hsl(215, 28%, 39%));
}

a:active {
    color: var(--accent, hsl(96, 27%, 69%));
}

hr {
    border: none;
    text-align: center;
    color: var(--text-lightest);
    opacity: 75%;
}

hr::before {
    content: "* * *";
    font-size: 1.602rem;
    font-weight: 600;
}

hr.starry::before {
    /* shamelessly stolen from a copypasta i saw somewhere */
    content: "ﾟ。ﾟ+ﾟ`, o。。.ﾟ*。ﾟ  。.ﾟ  。☆＋。。ﾟ. °。. ﾟ。ﾟ+ﾟ`, o。。.ﾟ*。ﾟ  。.ﾟ  。☆＋。。ﾟ. °。. ﾟ。ﾟ+ﾟ`, o。。.ﾟ*。ﾟ  。.ﾟ  。☆＋。。ﾟ. °。.";
    white-space: pre;
    word-spacing: 0.5rem;
    font-size: 1rem;
    font-weight: normal;
    overflow: hidden;
    max-width: 95%;
    line-height: 1;
}

hr.asteroid::before {
    content: "    /\a  /\a*";
    white-space: pre;
    font-size: 1rem;
    font-weight: normal;
    font-family: monospace;
    padding-right: 1rem;
}

hr.dashed {
    border-bottom: var(--text-lightest) 1px dashed;
}

hr.dotted {
    border-bottom: var(--text-lightest) 1px dotted;
}

hr.dashed::before,
hr.dotted::before {
    content: none;
}

hr.footnotes-sep {
    width: 100%;
    height: 1px;
    overflow: visible;
    border: none;
    border-top: 1px var(--text, hsl(326, 15%, 21%)) dashed;
    margin-top: 2.5rem;
}

hr.footnotes-sep::before {
    content: none;
}

nav {
    margin: 0 0 auto auto;
    padding-right: 2rem;
    padding-bottom: 2rem;
    position: sticky;
    top: 0;
    text-align: right;
    z-index: 2;
    background-color: var(--background);
    border-radius: 0 4px 4px 0;

    ul {
        list-style: none;
        padding: 0;
        margin-top: 0;
        margin-left: auto;
    }

    li {
        padding-top: 0.1rem;
    }

    a {
        text-decoration: none;
        color: var(--primary, hsl(215, 28%, 39%));
    }

    img {
        vertical-align: center;
        display: inline;
        margin-right: 0.5rem;
        position: relative;
        top: 0.2rem;
    }

    a:hover {
        color: var(--accent, hsl(159, 41%, 36%));
        text-decoration: none;
    }

    .hamburger {
        display: none;
        font-size: 3rem;
    }

    .sun {
        height: 20px;
    }

    .moon {
        height: 16px;
    }
}

button.dark-toggle,
button.hamburger {
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    margin: 0;
    padding: 0;
}

footer {
    grid-area: 2 / 2;
    margin: auto;
    text-align: center;
    width: 100%;
    font-size: 13pt;
    padding-bottom: 2rem;

    ul {
        list-style: none;
        padding: 0;
    }

    a {
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

div.dinkus {
    display: grid;
    grid-template-columns: 1fr calc(16px + 2rem) 1fr;
    padding: 0;
    width: 100%;
    max-width: 93vw;
    margin: 0 auto;

    span {
        width: 100%;
        margin: auto;
        height: 1px;
        border-bottom: 1px var(--text, grey) dashed;
    }

    img {
        margin: auto;
    }
}

main {
    max-width: 100vw;
    width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow: visible;
}

main img {
    max-width: 100%;
}

main img.wide {
    max-width: 90vw;
    width: max-content;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    display: block;
}

main img.small {
    max-height: 30ch;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

main pre {
    max-width: 90vw;
    width: max-content;
    min-width: 90%;

    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

img.pixel {
    image-rendering: pixelated;
}

img.orb {
    width: 16px;
    height: 16px;
}

img.b88x31 {
    width: 88px;
    height: 31px;
}

table {
    margin: 1rem auto;
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 13.5pt;
    border-collapse: collapse;
}

td,
th {
    padding: 0.25em 0.5em 0.5em 0.5em;
    line-height: 1;
}

thead {
    border-bottom: var(--text, hsl(326, 15%, 21%)) 1px solid;
}

blockquote {
    border-left: 0.2rem var(--primary, hsl(215, 28%, 39%)) solid;
    box-sizing: border-box;
    margin-left: 0;
    padding-left: 2rem;
    font-size: 13.5pt;
    line-height: 1.4;
}

math {
    font-family: "Latin Modern Math", math, serif;
    font-size: 1.333rem;

    .tml-right {
        text-align: right;
    }

    .tml-left {
        text-align: left;
    }

}

math[display="block"] mfrac>* {
    font-size: 100%;
    math-style: compact;
    math-shift: compact;
}

math[display="block"] mtr {
    height: 2.2em;
}

math msqrt>* {
    font-size: 100%;
    margin-top: 0.15em;
}

sup a {
    text-decoration: none;
}

sup a:hover {
    text-decoration: underline;
}

code {
    font-size: 11pt;
}

div.warning {
    border: var(--text-lightest) 4px ridge;
    background-color: var(--bg-darker);
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

details {
    border-bottom: var(--text-lightest) dotted 1px;

    summary {
        cursor: pointer;
    }
}

@media (max-width: 62rem) {

    body {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0;
    }

    nav {
        text-align: left;
        padding: 0;
        height: 3.5rem;
        position: sticky;
        transition: top 0.25s;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-color: var(--background, hsl(41, 41%, 88%));
        border-bottom: 1px var(--accent, #1e1d20) solid;
        width: 100%;
        z-index: 2;

        ul {
            display: block;
            grid-column: 1 / -1;
            width: 100%;
            background-color: var(--background, hsl(41, 41%, 88%));
            margin-left: 0;
            border-bottom: 1px var(--accent, #1e1d20) solid;
            border-top: 1px var(--accent, #1e1d20) solid;
            border-right: 1px var(--accent, #1e1d20) dotted;
            padding: 0.5rem 2rem 1rem;
            transition: right 0.2s;
            box-sizing: border-box;
            order: 3;
            position: relative;
            top: 0;
        }

        ul:not(expanded) {
            right: 100vw;
        }

        ul.expanded {
            right: 0;
        }

        li {
            margin-bottom: 0.5rem;
        }

        button.hamburger {
            display: inline;
            float: left;
            margin: 0.25rem auto 0.25rem 0.5rem;
            width: 3rem;
            height: 3rem;

            svg {
                height: 2rem;
                padding: 0.5rem;
            }
        }

        button.dark-toggle {
            display: inline;
            float: right;
            margin: 0.25rem 0.5rem 0.25rem auto;
            order: 2;
            width: 3rem;
            height: 3rem;

            .sun {
                height: 2rem;
                padding: 0.5rem;
            }

            .moon {
                height: 1.6rem;
                padding: 0.7rem;
            }
        }
    }

    nav:not(expanded) {
        top: -3.6rem;
    }

    nav.expanded {
        top: 0;
    }

    footer {
        grid-area: 3 / 1;
        width: 100%;
    }

}
/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
    color: #f8f8f2;
    background: none;
    text-shadow: 0 1px rgba(0, 0, 0, 0.3);
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 11pt;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    border-radius: 0.3em;
}

:not(pre)>code[class*="language-"],
pre[class*="language-"] {
    background: #272822;
}

/* Inline code */
:not(pre)>code[class*="language-"] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: slategray;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f92672;
}

.token.boolean,
.token.number {
    color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #e6db74;
}

.token.keyword {
    color: #66d9ef;
}

.token.regex,
.token.important {
    color: #fd971f;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}
