:root {
    --bg: #000000;
    --ink: #f4f1ea;
    --hold: 1.15s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    transition: background-color var(--hold) ease, color var(--hold) ease;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    background: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stage {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0 4vw;
    container-type: inline-size;
}

.caution-word,
.caution-still p {
    font-family: 'Sofia Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.caution-word {
    display: inline-block;
    width: max-content;
    white-space: nowrap;
    font-size: min(22cqi, 34svh, 18rem);
    transition: opacity 0.42s ease, transform 0.42s ease, color var(--hold) ease;
}

.caution.is-leaving .caution-word {
    opacity: 0;
    transform: translateY(0.18em);
}

.caution-still {
    display: grid;
    gap: 0.2rem;
}

.caution-still[hidden] {
    display: none;
}

.caution-still p {
    font-size: min(16cqi, 18svh, 8rem);
}

@media (prefers-reduced-motion: reduce) {
    html,
    .caution-word {
        transition: none;
    }
}
