:root {
    --color-text: white;
    --color-accent-dark: #453658;
    --color-accent: #9c7bc6;
    --color-bg: #19151f;
}

html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'GeneralSans-Variable', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: url("../images/paper.webp");
    background-size: cover;
    background-position: top center;

    display: flex;
    flex-direction: column;
}

header, div#scroller {
    z-index: 1;
}

main::after {
    content: " ";
    position: fixed;
    display: block;
    height: 100%;
    width: calc(100% - 1rem);
    top: 0;
    pointer-events: none;
    
    background-color: var(--color-bg);
    background-image: url("../images/paper.webp");
    background-size: cover;
    background-position: top center;

    mask-image: linear-gradient(black 0.25rem, transparent 10rem, transparent calc(100% - 10rem), black calc(100% - 0.25rem));
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    margin: 0
}

navigation ul {
    list-style: none;

    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: row;
}

navigation ul li:first-child {
    margin-right: auto;
}
navigation ul li:last-child {
    margin-left: auto;
}

navigation ul li a {
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    padding: 2rem 4rem;
}

div#scroller {
    color: var(--color-text);
    padding: 2rem 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    pointer-events: none;
    bottom: -1rem;
    transition: bottom 0.25s ease-in-out;
}

div#scroller div.scroll, div#scroller div.scroll-top {
    text-transform: uppercase;
    transition: opacity 0.25s ease-in-out;
}

div#scroller div.scroll {
    opacity: 1;
}
div#scroller div.scroll-top {
    opacity: 0;
}
div#scroller div.triangle {
    pointer-events: none;
    transition: transform 0.25s ease-in-out;
}

div#scroller div.scroll-top a {
    color: var(--color-text);
    text-decoration: none;
    padding: 1rem 2rem;
    padding-top: 2rem;
}

div#scroller div.scroll, div#scroller div.scroll-top, div#scroller div.triangle {
    font-size: 0.75rem;
}

main {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;

    container-type: scroll-state;

    div#scroller {
        @container scroll-state(scrollable: top) {
            pointer-events: initial;
            bottom: 0rem;
        }
    }

    div#scroller div.scroll-top {
        @container scroll-state(scrollable: top) {
            opacity: 1;
        }
    }

    div#scroller div.scroll {
        @container scroll-state(scrollable: top) {
            opacity: 0;
            pointer-events: none;
        }
    }

    div#scroller div.triangle {
        @container scroll-state(scrollable: top) {
            transform: rotate(-180deg);
        }
    }

    scrollbar-gutter: stable;
    scrollbar-color: var(--color-accent) transparent;
    scrollbar-width: thin;
}

section {
    width: 60%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    scroll-snap-align: start;
}

section p {
    hyphens: auto; 
	text-align: justify
}

section#top {
    gap: 1.5rem;
}

section#top div#logo {
    aspect-ratio: 60 / 11;
    width: 100%;

    background-image: url("../images/logo.webp");
    background-size: contain;
    background-repeat: no-repeat;
}

section#top #banner-group {
    position: relative;
    display: flex;
    width: 100%;
}

section#top div#banner-group div#banner{
    aspect-ratio: 6 / 2;
    width: 100%;

    background-image: url("../images/banner.webp");
    background-size: contain;
    background-repeat: no-repeat;
}

section#top .banner-overlay {
    position: absolute;

    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

section#top .banner-overlay-profession {
    top: 0.75rem;
    left: -2rem;
}

section#top .banner-overlay-hobby {
    text-align: right;
    bottom: 0.75rem;
    right: -2rem;
}

section ul {
    margin: 0;
    padding: 0;
    list-style: none
}

section a {
    color: var(--color-text);
}

@media (max-width: 600px) {
    section {
        width: 90%;
    }

    section#top .banner-overlay {
        font-size: 0.75rem;
    }

    section#top .banner-overlay-profession {
        top: 0.25rem;
        left: 0.25rem;
    }

    section#top .banner-overlay-hobby {
        bottom: 0.25rem;
        right: 0.25rem;
    }

    main::after {
        display: none;
    }
}