<script>
	let { children } = $props();
</script>

<div class="waters"></div>
{@render children()}

<style>
    :global {
        @import url('https://fonts.upset.dev/css2?family=Reddit+Mono:wght@200..900&family=Reddit+Sans+Condensed:wght@200..900&family=Reddit+Sans:ital,wght@0,200..900;1,200..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

        :root {
            --color-text: #e0e0e0;
            --color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%);
            --color-text-dark: #1e1e1e;
            --color-highlight: #72b175;

            --color-background: #1b1b1b;
            --color-background-highlight: color-mix(in srgb, var(--color-highlight) 10%, transparent);
            --color-background-highlight-hover: color-mix(in srgb, var(--color-highlight) 60%, transparent);
            
            --color-waters: #2b2b2b;
        }

        html {
            scroll-behavior: smooth;
            position: relative;
            min-height: 100%;
        }

        body {
            margin: 0 auto 228px;
            max-width: 1200px;
            
            font-family: 'Reddit Sans', 'Lato', sans-serif;
            font-size: 1.1rem;
            color: var(--color-text); /* text colour */
            
            background-color: var(--color-background);
        }

        .waters {
            position: fixed;
            z-index: -99;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background-color: var(--color-waters);
            mask-image: url('bremen-waters-white.svg');
            mask-position: center;
            background-position: center;
            background-attachment: fixed;
        }

        p, span, li, pre, a {
            color: var(--color-text);
            line-height: 1.6rem;
        }

        h1 {
            font-size: 3rem;
            line-height: 3.5rem;
        }
        h2 {
            font-size: 2rem;
            line-height: 2.2rem;
        }
        h3 {
            font-size: 1.4rem;
            line-height: 1.5rem;
        }
        h4, h5, h6 {
            font-size: 1.2rem;
            line-height: 1.3rem;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 900;
            color: var(--color-highlight);
            margin-top: 12px;
            margin-bottom: 8px;
            width: fit-content;
        }
    }
</style>