@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.wrapper {
    display: grid;
    place-content: center;
    background-color: black;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1rem, 4vw, 3rem);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 12vw, 15rem);
    font-weight: 700;
    line-height: 1;
    color: hsl(0, 0%, 100%);
    text-align: center;
    white-space: nowrap;
}

.wrapper > div {
    grid-area: 1 / 1 / -1 / -1;
}

.top {
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 48%,
        0% 58%
    );
}

.bottom {
    clip-path: polygon(
        0% 60%,
        100% 50%,
        100% 100%,
        0% 100%
    );
    color: transparent;
    background: linear-gradient(
        177deg,
        black 53%,
        hsl(0, 0%, 100%) 65%
    );
    background-clip: text;
    -webkit-background-clip: text;
    transform: translateX(0.02em);
}

@media (max-width: 480px) {
    .wrapper {
        font-size: clamp(2rem, 11vw, 4rem);
        white-space: normal;
        word-break: break-word;
    }

    .top {
        clip-path: polygon(
            0% 0%,
            100% 0%,
            100% 47%,
            0% 57%
        );
    }

    .bottom {
        clip-path: polygon(
            0% 59%,
            100% 49%,
            100% 100%,
            0% 100%
        );
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .wrapper {
        font-size: clamp(3rem, 14vw, 8rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wrapper {
        font-size: clamp(6rem, 12vw, 11rem);
    }
}
