/* @link https://utopia.fyi/type/calculator?c=320,18,1.125,1240,16,1.2,5,0,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --scale-0: clamp(1rem, 1.1685rem + -0.2174vw, 1.125rem);
  --scale-1: clamp(1.2rem, 1.2885rem + -0.1141vw, 1.2656rem);
  --scale-2: clamp(1.4238rem, 1.4182rem + 0.0281vw, 1.44rem);
  --scale-3: clamp(1.6018rem, 1.5579rem + 0.2195vw, 1.728rem);
  --scale-4: clamp(1.802rem, 1.7076rem + 0.4723vw, 2.0736rem);
  --scale-5: clamp(2.0273rem, 1.8669rem + 0.8018vw, 2.4883rem);
}
body {
    font-size: var(--scale-0);
    background: #6e28d9;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: row;
    min-height: 50vh;
    justify-content: center;
}

aside {
    z-index: 3;
    border-radius: 5px;
    background-color: #FFFFFF10;
    backdrop-filter: blur(3px);
    border: 1px solid black;
    box-shadow: 3px 3px 2px #00000050;    
    margin-top: 5rem;
    margin-bottom: 2rem;    
    position: relative;
    left: 10ch;
    width: 20ch;
}

header {
    font-family: monospace;
    background: black;
    padding: 3px;
    margin-bottom: 3em;
    box-shadow: 0px 10px 0px #00000050,
                0px 15px 0px #00000030;
    position: relative;
    top: -5px;
}

header:active:not(:has(a:active)) {
    transform: translateY(5px);
    box-shadow: 0px 10px 0px #00000050;
}

nav {
    background: pink;
    padding: 3px;
    ul {
        margin: 0;
        padding: 0;
        align-items: center;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5em 1em;
        justify: flex-start;
        li {
            list-style-type: none;
            a {
                cursor: grab;
                border: 1px lavender solid;
                box-shadow: 1px 1px 0px white,
                            3px 3px 3px lavender;
                padding-left: 0.5em;
                padding-right: 0.5em;
                padding-top: 0.2em;
                padding-bottom: 0.2em;
                margin-bottom: 3px;
                background: #ffffffd0;
                display: block;
                color: black;
                text-shadow: 0 0 2px pink;
            }
            a.current {
                transform: translate(-1px,-1px);
                box-shadow: 2px 2px 0px white,
                            4px 4px 3px snow;
                background: white;
                border: 1px solid pink;
                color: black;
                text-shadow: none;
            }
            a:visited {
                color: #333;
            }
            a:hover {
                background: white;
                color: black;
                text-shadow: none;
            }
            a:active {
                transform: translate(1px,1px);
                box-shadow: none;
                background: #ffffff80;
                border: 1px inset pink;
                color: black;
                text-shadow: none;
            }
        }
    }
}

@media screen and (min-width: 600px) {
    body {
        article {
        }
    }
}

a {
    color: gold;
    text-decoration: none;
    text-shadow:
        1px 1px 2px black,
        0 0 2px gold;
}

@media (hover: hover) {
    a:hover {
        color: yellow;
        text-shadow:
            1px 1px 2px black,
            0 0 3px yellow;
    }
}

a:visited {
    color: orange;
}

article {
    max-width: 75ch;
    width: 90vw;
    background: #323242f0;
    box-shadow:
        0px 10px 22px #000000a0;
    margin-top: 1rem;
    section {
        padding: 1em;
    }
}

h1 {
    font-size: var(--scale-2);
    margin: 0px;
}
