@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/space-grotesk-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f4ef;
    color: #242a27;
    font-family: "Space Grotesk", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

h1 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.025em;
    text-align: center;
    text-wrap: balance;
}

.wordmark {
    display: block;
    width: min(760px, 100%);
    height: auto;
    margin-top: 36px;
    overflow: visible;
}

.logo-prefix,
.logo-suffix {
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1) 220ms;
}

.logo-suffix {
    transform: translateX(52px);
}

.extra-letter {
    transition:
        opacity 260ms ease-out,
        transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-corrected .logo-prefix,
.is-corrected .logo-suffix {
    transform: translateX(26px);
}

.is-corrected .extra-letter {
    opacity: 0;
    transform: translateY(-18px);
}

p {
    margin: 28px 0 0;
    color: #62665f;
    font-size: clamp(13px, 1.4vw, 16px);
    line-height: 1.5;
    text-align: center;
}

::selection {
    background: #ee5c19;
    color: white;
}

@media (prefers-reduced-motion: reduce) {
    .extra-letter,
    .logo-prefix,
    .logo-suffix {
        transition: none;
    }

    .is-corrected .extra-letter {
        transform: none;
    }
}
