@font-face {
    font-family: HollywoodSF;
    src: url(../varka-shrine/HOLLYWOOD-STARFIRE.ttf);
}

@font-face {
    font-family: AScribe;
    src: url(../varka-shrine/antiquarian-scribe.otf);
}

@font-face {
    font-family: StAQ;
    src: url(../varka-shrine/Saint-AndrewsQueen.ttf);
}

:root {
    cursor: url(../varka-shrine/cursor.png), auto;
    background-image: url(../varka-shrine/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    background-color: #6C7821ff;
    box-sizing: border-box !important;
}

a {
    z-index: 1;
    position: relative;
    display: inline-block;
    margin: 0 var(--spacing, 0px);
    cursor: url(../varka-shrine/link.png), auto;
    color: #000;
    transition: margin .3s ease;
    &:hover {
        text-decoration-style: dotted;
        text-decoration-color: #666;
        transition: .3s ease;
    }
}

h2 {
    margin: 1.3cqw 0 .66cqw 0;
    padding: 1.7cqw 5cqw 0 1.5cqw;
    width: fit-content;
    line-height: 3.7cqw;
    font-size: 5.23cqw;
    font-weight: normal;
    font-family: AScribe, Arial, Helvetica, sans-serif;
    background-image: url(../varka-shrine/header.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 .3cqw .15cqw #00000070);
}

p {
    margin-top: 1.17cqw;
    line-height: 2.87cqw;
    font-family: HollywoodSF, 'Times New Roman', Times, serif;
    &:last-of-type {
        margin-bottom: 0;
    }
}

.scribble {
    font-size: 3rem;
    font-family: StAQ, Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#page {
    aspect-ratio: 2803 / 3716;
    padding: 2.72cqw 1.05cqw 4.18cqw 8.35cqw;
    width: 81.36cqw;
    height: 107.84cqw;
    font-size: 2cqw;
    background-image: url(../varka-shrine/journal.png);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

nav {
    margin-bottom: 1.2cqw;
    padding: 0 2.4cqw;
    height: 5.27cqw;
    font-size: 4.80cqw;
    font-family: AScribe, Arial, Helvetica, sans-serif;
    background-image: url(../varka-shrine/tape.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    & a:not(:last-of-type) {
        padding-right: 2.36cqw;
    }
}

#main {
    overflow-y: scroll;
    display: block;
    padding: 1.05cqw 2.1cqw;
    max-height: 93.88cqw;
    font-size: 2.5cqw;
    border: 1.4cqw solid transparent;
    border-image: url(../varka-shrine/page-border.png) 4% 20 22 round;
    & a {
        font-family: HollywoodSF, 'Times New Roman', Times, serif;
    }
}

#gallery {
    margin: 1.3cqw 0 .66cqw 0;
}

.gallery-img {
    user-select: none;
    image-rendering: pixelated;
    width: 26cqw;
    border-radius: 5%;
}

@media (min-width: 768px) {
    h2 {
        margin: .7rem 0 .3rem 0;
        padding: 0.8rem 0 0 .5rem;
        width: auto;
        line-height: 2rem;
        font-size: 2.5rem;
        filter: drop-shadow(0 2px 1px #00000070);
    }

    p {
        margin-top: .5rem;
        line-height: 1.3rem;
        font-family: HollywoodSF, 'Times New Roman', Times, serif;
        &:last-of-type {
            margin-bottom: 0;
        }
    }

    #page {
        padding: 1.3rem .5rem 2rem 4rem;
        width: min(39rem, 1920px);
        height: auto;
        font-size: 1rem;
    }

    nav {
        margin-bottom: .25em;
        padding: 0 .5em;
        height: 1.1em;
        font-size: 2.3rem;
        & a:not(:last-of-type) {
            padding-right: 1.13rem;
        }
    }

    #main {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: .5rem 1rem;
        height: auto;
        max-height: 720px;
        font-size: 1.1rem;
        border: 10px solid transparent;
        border-image: url(../varka-shrine/page-border.png) 4% 20 22 round;
    }

    #gallery {
        margin: .7rem 0 .3rem 0;
    }

    .gallery-img {
        width: 100%;
    }
}