/* zangle! landing page. One screen, no scroll, dark. */

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

:root {
    --bg: #0a0a0c;
    --ink: #e9e7e2;
    --muted: #8b8880;
    --red: #fd1717;
}

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

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    overflow: hidden;
    text-align: center;
}

.headline {
    padding-top: clamp(1.5rem, 4.5vh, 3.25rem);
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.headline .fun {
    font-style: italic;
    font-weight: 300;
    color: var(--muted);
}

.stage {
    position: relative;
    min-height: 0;
}

#scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.ready #scene {
    opacity: 1;
}

#fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(72vw, 640px);
    max-height: 85%;
    width: auto;
    height: auto;
    transition: opacity 0.6s ease;
}

body.ready #fallback {
    opacity: 0;
}

.foot {
    padding-bottom: clamp(1rem, 3vh, 2rem);
}

.tagline {
    color: var(--muted);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.5;
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.wordmark {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.wordmark .bang {
    color: var(--red);
}

.copy {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted);
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    #scene, #fallback {
        transition: none;
    }
}
