:root {
    --tile-size: 13rem;
    --gap: 1rem;
    --accent: blueviolet;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    user-select: none;
    background-color: black;
    color: white;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem var(--gap);
}

body>header {
    margin-bottom: 3rem;
}

.banner {
    max-width: 12rem;
    height: auto;
}

.plexFont {
    font-family: plexeina-bold, sans-serif;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
    max-width: calc(4 * var(--tile-size) + 3 * var(--gap));
}

.tile {
    flex: 0 0 var(--tile-size);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: border-color 500ms ease-out, color 500ms linear;
}

.tile:hover,
.tile:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.logo {
    height: 4rem;
    max-width: 100%;
    object-fit: contain;
}

.title {
    font-size: 1.5rem;
}

.description {
    font-size: 0.8rem;
    line-height: 1.3;
    opacity: 0.7;
}

@media only screen and (max-width: 600px) {
    .tile {
        flex-basis: calc((100% - var(--gap)) / 2);
        padding: 0.75rem;
    }

    .logo {
        height: 2.75rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .description {
        display: none;
    }
}
