* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #17211d;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
    isolation: isolate;
    background: #17211d;
    color: #fff;
    font-family: system-ui, sans-serif;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

body::before {
    z-index: -2;
    inset: -8%;
    background: url("../images/scandinavian-forest.jpg") center 52% / cover no-repeat;
    animation: forest-drift 8s ease-in-out infinite alternate;
    will-change: transform;
}

body::after {
    z-index: -1;
    background:
        linear-gradient(180deg, rgb(9 20 17 / 28%), rgb(9 20 17 / 42%)),
        radial-gradient(ellipse at center, transparent 15%, rgb(5 13 11 / 24%) 100%);
}

main {
    text-align: center;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.06em;
    text-shadow: 0 2px 24px rgb(0 0 0 / 42%);
}

@keyframes forest-drift {
    from {
        transform: scale(1.08) translate3d(-1.5%, 1%, 0);
    }

    to {
        transform: scale(1.2) translate3d(1.5%, -1%, 0);
    }
}
