:root {
    --dark0: #1a1d27;
    --dark0t: #1a1d27aa;
    --dark1: #010827;
    --dark1t: #010827aa;
    --dark2: #22294d;
    --accent: #7188ff;
    --light1: #ffffff;
}

/* Fonts */
@font-face {
    font-family: Cantarell;
    src: url(../fonts/Cantarell-VF.otf);
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Cantarell, sans-serif;
    color: var(--light1);
    background: var(--dark0);
}

h1, h2, h3, h4, h5, h6, b, strong {
    font-variation-settings: "wght" 800;
    font-weight: normal;
}

nav {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background: var(--dark1t);
    box-shadow: 0 0 4px 4px #0005;
}

nav,
nav .links {
    display: flex;
    align-items: center;
}

#menu-btn {
    text-decoration: none;
    color: inherit;
}

#menu-btn svg {
    margin-bottom: -2px;
    width: 32px;
    height: 32px;
    fill: currentColor;
}

#menu:target ~ nav .links {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    height: 100%;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    background: var(--dark1);
    box-shadow: 4px 0 8px #000a;
}

#menu:target ~ nav .links .item {
    padding: 8px;
    width: 180px;
    border-bottom: 1px solid var(--dark2);
}

#menu:target ~ nav .links .item:not(.title) {
    font-variation-settings: unset;
}

#menu:target ~ nav .links .title {
    margin-right: 0;
    border-bottom: 0;
    background: var(--dark2);
}

#menu:target ~ nav #menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark0t);
    z-index: 9;
}

nav .item {
    display: inline-block;
    padding: 2px 8px;
}

nav .item:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

nav a.item {
    color: inherit;
    text-decoration: none;
    font-variation-settings: "wght" 800;
}

nav .title {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    margin-right: 16px;
}

nav .title img {
    width: 36px;
    margin-right: 4px;
}


nav #menu-btn {
    display: none;
}

main {
    width: 100%;
    height: 100%;
}

.noisy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: url(../img/noise.webp);
}

@media (max-width: 480px) {
    nav .links {
        display: none;
    }

    nav #menu-btn {
        display: inline-block;
    }
}
