*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

@font-face {
    font-family: "Bebas Neue";
    src: url("./fonts/BebasNeue.woff2");
}

@font-face {
    font-family: "Inter Tight";
    src: url("./fonts/InterTight.woff2");
}

@view-transition {
    navigation: auto;
}

:root {
    --font-display: "Bebas Neue", sans-serif;
    --font-sans: "Inter Tight", sans-serif;
    --white: #fff;
    --brand: #ee171f;
    --primary: #040309;
    --secondary: #141319;
}

body {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    padding: 3rem;
    color: var(--secondary);
    background: var(--white);
    font-display: swap;
}

::selection {
    background: var(--brand);
    color: var(--white);
}

h1,
h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h1 {
    width: 12ch;
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
    letter-spacing: -1px;
    color: #000;
}

h2 {
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
}

p {
    width: 35ch;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.6;
}

main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
}

aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
    text-wrap: pretty;
}

canvas {
    display: none;
}

svg {
    transition-property: transform;
    transition: 0.15s ease-in;
}

button {
    cursor: pointer;
    color: var(--secondary);
    transition: 0.15s ease-in;

    &:hover {
        opacity: 0.8;
    }
}

.tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 550;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: none;
    outline: none;
    border: none;
    text-transform: uppercase;
    user-select: none;
}

.link {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--secondary);
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    user-select: none;
    transition: 0.15s ease-in;

    &.prev {
        svg {
            transform: rotate(180deg);
        }
    }

    &:hover {
        color: var(--brand);

        &.next {
            svg {
                transform: translateX(3px);
            }
        }

        &.prev {
            svg {
                transform: rotate(180deg) translateX(3px);
            }
        }
    }
}

.col {
    width: 100%;
    height: 100%;
}

.poster {
    width: 350px;
    height: auto;
}

.my {
    margin: 0.5rem 0;
}

.ml-auto {
    margin-left: auto;
}

.flex {
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.between {
    width: 100%;
    justify-content: space-between;
}

.gap-md {
    gap: 1.2rem;
}

.gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    height: 500px;
    width: 500px;
    transform: translate(-30%, 20%);
    border-radius: 50%;
    background-color: rgba(238, 23, 31, 0.5);
    opacity: 0.5;
    filter: blur(80px);
    z-index: -5;
}

@media (width <= 768px) {
    body {
        padding: 3rem 1.5rem;
    }

    main {
        grid-template-columns: 1fr;
    }

    aside {
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 2.7rem;
    }

    .poster {
        width: 230px;
    }
}

@media (width <= 600px) {
    p {
        width: 100%;
        text-align: center;
    }
}
