@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');


:root, html, body {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 1rem;
    flex-direction: column;
    gap: 5px;
}

h1, h2 {
    margin: 0;
}

h1 {
    font-weight: 500;
    font-size: 3.2rem;
    margin-top: 1rem;
}

h2 {
    font-weight: 400;
    font-size: 1.5rem;
    text-align: center;
}

img {
    margin-top: 3rem;
    height: 10rem;
}

footer {
    position: absolute;
    bottom: 20px;
    width: 80vw;
    text-align: center;
}

@media (max-width: 600px) {
    :root, html, body {
        min-height: 80vh;
        height: 80vh;
        justify-content: flex-start;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        gap: 0.3rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.1rem;
        /* max-width: 18ch; */
    }

    img {
        margin-top: 2rem;
        height: 7rem;
    }

    footer {
        /* position: static; */
        width: min(90vw, 420px);
        /* margin-top: 2.5rem; */
        font-size: 0.84rem;
        line-height: 1.35;
    }
}