body {
    gap: 20px;
    display: flex;
}

body>header {
    top: 15px;
    left: 30px;
    z-index: 10;
    position: fixed;

    a {
        width: 60px;
        height: 60px;
        display: flex;
        padding: 15px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        outline: 5px solid #ffffff5c;
    }

    img {
        width: 100%;
    }
}

nav {
    height: 100vh;
    display: flex;
    flex-shrink: 0;
    max-width: 300px;
    overflow-y: auto;
    line-height: 1em;
    flex-direction: column;
    padding: 100px 0 50px 20px;

    a {
        padding: 7px 10px;

        &:is(:hover, :active, .active) {
            font-weight: 600;
            letter-spacing: -0.015em;
        }
    }
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow-y: scroll;
    padding-bottom: 60vh;
    flex-direction: column;
    scroll-behavior: smooth;
    padding-left: max(10px, calc((100% - 600px - 800px) / 2));
    padding-right: max(10px, calc((100% - 800px) / 2));

    header {
        top: 0;
        padding: 20px;
        margin-top: 80px;
        position: sticky;
        background-color: #fff;

        h1 {
            font-size: 20px;
            font-weight: bold;
        }

        p {
            font-size: 12px;
            font-style: italic;
        }
    }

    section {
        gap: 15px;
        display: flex;
        hyphens: auto;
        font-size: 14px;
        padding: 50px 20px;
        text-align: justify;
        flex-direction: column;
        scroll-margin-top: 60px;
        overflow-wrap: break-word;
        border-bottom: 1px solid #000;

        &:last-of-type {
            border-bottom: none;
        }

        h1 {
            font-size: 16px;
            text-align: left;
            font-weight: 600;
        }

        :is(p, ul) {
            margin-bottom: 15px;
        }

        ul {
            gap: 10px;
            display: flex;
            padding-left: 25px;
            flex-direction: column;

            >* {
                padding-left: 15px;
            }
        }
    }
}


@media (max-width: 1000px) {
    nav {
        display: none;
    }

    main header {
        padding: 25px 20px 20px 100px;
        margin-top: 0;
    }
}