:root {
    --heading:    hsl(20 80 87);
    --text:       hsl(20 30 73);
    --background: hsl(20 32 09);
    --secondary:  hsl(20 50 30);
}

@font-face {
    size-adjust: 130%;
    font-family: 'Acidic';
    src: url('./acidic.woff2') format('woff2');
}

:target {
    background-color: var(--secondary);
    text-shadow: none;
}

::selection {
    color: var(--background);
    background-color: var(--text);
    text-shadow: none;
}

html::before {
    content: '';
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%
        ),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.03),
            rgba(0, 0, 255, 0.06)
        );
    background-size: 100% 2px, 3px 100%;
}

html {
    color: var(--text);
    box-shadow: inset 0 0 9rem hsl(0 0 3);
    background-color: var(--background);
    line-height: 150%;
    letter-spacing: 0.1rem;
    word-spacing: 0.4rem;
    font-size: calc(1rem + 0.5vw);
    font-family: 'Times New Roman', Times, serif;
}

body {
    padding: 0 0.6rem;
    max-width: 30rem;
    margin: 4.5rem auto 4rem auto;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    padding-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 170%;
    font-family: 'Acidic', sans-serif;
    font-synthesis: none;
    color: var(--heading);
    text-shadow: 2px 2px purple, 2px 0 aqua;
    border: none;
    text-wrap: balance;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    rotate: -5deg;
}

h2 {
    scroll-margin-top: 2.5rem;
}

h2:nth-of-type(odd) {
    rotate: 1deg;
}

h2:nth-of-type(even) {
    rotate: -1deg;
}

hr {
    height: 0;
    margin: 3rem 0;
    border: none;
    border-top: medium dotted var(--secondary);
    overflow: visible;
    color: var(--secondary);
    text-align: center;
}

hr:after {
    content: '⚘';
    display: inline-block;
    position: relative;
    top: -0.5em;
    font-size: 1.8em;
    padding: 0 0.1em;
    background: var(--background);
    animation: rainbowFlicker 2s linear 0s infinite;
    text-shadow: 0 0 2rem var(--text);
}

.utopie {
    animation: rainbowFlicker 2s linear 0s infinite;
}

.bedrock {
    color: white;
}

.utopie, .bedrock {
    text-shadow: 0 0 0.5rem black, 0 0 1rem black;
    font-weight: bold;
}

@keyframes rainbowFlicker {
    0%   { color: hsl(350 100 75); }
    20%  { color: hsl(070 100 50); }
    40%  { color: hsl(150 100 70); }
    80%  { color: hsl(290 100 80); }
    100% { color: hsl(350 100 75); }
}

#heartshard-ferroslime {
    opacity: 90%;
    font-family: 'Acidic', 'Noto Sans Mono', mono;
    text-shadow: 0.7rem 0.4rem purple, -0.2rem 0 aqua;
}

.interference {
    text-align: center;
    padding: 1rem;
    line-height: 2.5rem;
    color: red;
    text-shadow: 0 0 1rem red;
    -webkit-mask-image: -webkit-gradient(
        linear,
        left top, left bottom, 
        from(black),
        to(hsl(0 0 0 / 0))
    );
}

.gloom {
    color: black;
    text-shadow: 0 0 20px white, 0 0 5px white, 0 0 5px white;
}

#archive {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0.3rem 0.8rem;
    margin-top: 0;
    border-bottom: 1px solid hsl(0 0 12);
    font-size: 65%;
}

.interference-notice {
    padding: 1rem;
    text-align: center;
    font-size: 80%;
    border: 0.7rem double hsl(0 0 12);
}

.interference-notice a {
    color: aquamarine;
}

#archive, .interference-notice {
    font-family: mono;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: 150%;
    background-color: black;
    color: aquamarine;
    box-shadow: 0 0 1rem black;
}

#archive::selection,
#archive strong::selection,
.interference-notice p::selection,
.interference-notice a::selection {
    background-color: aquamarine;
}
