:root {
    --primary-text-color: #fff;
    --secondary-text-color: #f5ff34;
}

*,
::after,
::before,
::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
}

body {
    background-image: url("../images/background.webp");
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    height: 100svh;
    width: 100svw;
    margin: 0;
    color: var(--primary-text-color);
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-rows: 1fr auto;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    text-align: end;
    padding: 1rem;
}

main {
    position: relative;
    line-height: 1;
    z-index: 0;
}

main>h1 {
    font-family: "din-condensed", sans-serif;
    font-weight: 300;
    margin: 0;
}

main>h1>strong {
    font-weight: 400;
}

main>h1>* {
    display: block;
}

main>p {
    font-family: "merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-variation-settings: "wdth" 100;
    font-style: normal;
    margin: 1rem 0 0;
    color: var(--secondary-text-color);
}

footer {
    font-family: "merriweather", serif;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-style: italic;
}

footer span {
    display: block;
}

footer span > span {
    display: none;
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer a:hover {
    text-decoration: underline;
    color: var(--secondary-text-color);
}

#loader {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 999;
    transition: opacity 0.7s ease;
}

#loader.done {
    opacity: 0;
    pointer-events: none;
}


@media (min-width: 36rem) {
    body {
        padding: 3rem;
    }

    main {
        width: 36rem;
    }

    main>p {
        margin-top: 1rem;
        margin-left: 47%;
    }

    footer span {
        display: inline;
    }

    footer span > span {
        display: inherit;
    }
}