@font-face {
    font-family: "Nunito";
    src: url(../assets/fonts/Nunito-Bold.ttf) format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Nunito";
    src: url(../assets/fonts/Nunito-Light.ttf) format("truetype");
    font-weight: light;
    font-style: normal;
}

@font-face {
    font-family: "Nunito";
    src: url(../assets/fonts/Nunito-Medium.ttf) format("truetype");
    font-weight: medium;
    font-style: normal;
}

@font-face {
    font-family: "Nunito";
    src: url(../assets/fonts/Nunito-Regular.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    min-height: 100dvh;
    min-width: 100vw;
    overflow-x: hidden;
}

body {
    font-size: 1.6rem; /* restore default readable size (16px) */
    min-height: 100dvh;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Nunito" !important;
}

#app {
    min-height: 100dvh;
    min-width: 100vw;
}

button {
    font-family: "Nunito" !important;
}

/* ── Honeycomb ───────────────────────────────────────────────── */

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

.honeycomb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.honeycomb-cell.comics-hex {
    flex: 0 1 25rem;
    list-style: none;
    width: 13%;
    height: 10%;
    max-width: 14rem;
    max-height: 9rem;
    min-width: 13.5rem;
    min-height: 8rem;
    margin: 5% 1.25rem 2.5rem;
    position: fixed;
    top: 10%;
    right: 10%;
    padding: 0.5em;
    text-align: center;
    z-index: 1;
}

.comics-hex .honeycomb-cell__title {
    font-size: 190%;
}

.honeycomb-cell {
    flex: 0 1 25rem;
    max-width: 20vw;
    max-height: 13.5rem;
    height: 12vw;
    margin: 5% 1.25rem 2.5rem;
    position: relative;
    padding: 0.5em;
    text-align: center;
    z-index: 1;
}

.honeycomb-cell:not(.buffer) {
    cursor: pointer;
}

.honeycomb-cell.mid-first { margin-left: 10%; }
.honeycomb-cell.mid-last  { margin-right: 10%; }

.honeycomb-cell__title {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    hyphens: auto;
    word-break: break-word;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    font-size: 3vw;
    transition: opacity 350ms;
    text-shadow: 0.2rem 0.2rem 0.8rem #00000052;
}

.honeycomb-cell__title > small {
    font-weight: 300;
    margin-top: 0.25em;
}

.honeycomb-cell__image {
    object-fit: cover;
    object-position: center;
}

.honeycomb-cell::before,
.honeycomb-cell::after {
    content: "";
}

.honeycomb-cell::before,
.honeycomb-cell::after,
.honeycomb-cell__image {
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    display: block;
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.honeycomb-cell::before {
    background: #fff;
    transform: scale(1.055);
}

.honeycomb-cell::after {
    background: #424242;
    opacity: 0.5;
    transition: background 350ms;
}

.honeycomb-cell.buffer::after { opacity: 0; }
.honeycomb-cell.buffer        { opacity: 0; }

.honeycomb-cell:hover .honeycomb-cell__title {
    text-shadow: 0.2rem 0.2rem 0.8rem #000000;
}

.honeycomb-cell:not(.buffer):hover::before { background: #414141; }
.honeycomb-cell:hover::after               { background: rgba(66,66,66,0); }

.honeycomb__placeholder {
    display: none;
    opacity: 0;
    width: 25rem;
    margin: 0 1.25rem;
}

@media only screen and (max-width: 600px) {
    .honeycomb-cell {
        max-width: 29%;
        max-height: 12.5rem;
        height: 18vw;
        margin: 5% 1% 2.5rem;
    }
    .honeycomb-cell.buffer  { max-width: 11% !important; }
    .honeycomb-cell.mid-first { margin-left: 4.5%; }
    .honeycomb-cell.mid-last  { margin-right: 4.5%; }
    .honeycomb-cell__title  { font-size: 4vw; }
}

@media only screen and (max-height: 800px) and (min-width: 600px) {
    .honeycomb-cell {
        max-width: 16%;
        max-height: 10rem;
        height: 18vw;
        margin: 5% 0.7% 1rem;
    }
    .honeycomb-cell.mid-first { margin-left: 19%; }
    .honeycomb-cell.mid-last  { margin-right: 19%; }
    .honeycomb-cell__title  { font-size: 2.2vw; }
}

@media only screen and (min-width: 1361px) {
    .honeycomb-cell__title { font-size: 3rem; }
}
