:root {
    --b: #fff;
    --f: #000;
    --l: 1px solid var(--f);
    --font: ui-monospace, 'Cascadia Code', monospace;
}

body.d {
    --b: #000;
    --f: #fff;
    --l: 1px solid var(--f);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

body {
    background: var(--b);
    color: var(--f);
    font-family: var(--font);
    padding: 20px;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-in-out forwards;
    transition: background 0.3s, color 0.3s;
}

body.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.f {
    max-width: 800px;
    margin: 0 auto;
    border: var(--l);
    padding: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    border-bottom: var(--l);
    padding-bottom: 20px;
    margin-bottom: 60px;
    position: sticky;
    top: 0;
    background: var(--b);
    z-index: 100;
    padding-top: 10px;
    transition: background 0.3s, border-color 0.3s;
}

.l {
    cursor: pointer;
    user-select: none;
}

.nr {
    display: flex;
    align-items: center;
}

h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 20px;
}

.m {
    text-transform: uppercase;
    font-size: 12px;
}

.s {
    border-top: var(--l);
    padding: 20px 0 40px 0;
}

.tag {
    font-size: 10px;
    opacity: 0.6;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.c {
    background: var(--b);
    border: var(--l);
    padding: 25px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.c:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0px var(--f);
}

.ch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.st {
    font-size: 9px;
    border: var(--l);
    padding: 2px 8px;
}

.aw {
    font-size: 11px;
    font-style: italic;
    opacity: 0.7;
    margin: 5px 0 15px 0;
}

.bn-l {
    display: inline-block;
    border: var(--l);
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    font-size: 10px;
    margin-top: 20px;
}

.bn-l:hover {
    background: var(--f);
    color: var(--b);
}

.pw {
    width: 100%;
    overflow: hidden;
    border: var(--l);
    margin-top: 10px;
    padding: 20px 0;
}

.pm {
    display: flex;
    width: fit-content;
    animation: move 30s linear infinite;
}

.pw:hover .pm {
    animation-play-state: paused;
}

.pm .c {
    width: 450px;
    flex-shrink: 0;
    margin-right: 20px;
    margin-left: 20px;
}

.h-s {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
}

.h-s .c {
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: var(--l);
}

.mw {
    width: 100%;
    overflow: hidden;
    border: var(--l);
    margin-top: 10px;
}

.ms {
    display: flex;
    width: fit-content;
    animation: move 35s linear infinite;
}

.ms img {
    height: 180px;
    border-right: var(--l);
    filter: grayscale(1);
    cursor: pointer;
}

.ms img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
    z-index: 5;
}

@keyframes move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ln {
    display: flex;
    align-items: center;
}

.ln a, #bn-v {
    background: none;
    border: none;
    color: inherit;
    font-family: var(--font);
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    transition: 0.3s;
}

.ln a:hover, #bn-v:hover {
    text-decoration: underline;
    opacity: 0.7;
}

#bn-v {
    display: inline-block;
    line-height: normal;
    outline: none;
}

.g {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.bn-f {
    display: block;
    border: var(--l);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-size: 12px;
}

.bn-f:hover {
    background: var(--f);
    color: var(--b);
    transform: translateY(-3px);
    box-shadow: 3px 3px 0px var(--f);
}

footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 60px;
    padding-top: 20px;
    border-top: var(--l);
}

/* nirvana reference */
#heart-shaped-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 10rem;
    color: #ff0000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

#heart-shaped-box.on {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#v {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#v.on {
    display: flex;
}

#v div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#v img {
    max-width: 80%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: var(--l);
    background: var(--b);
    user-select: none;
    -webkit-user-drag: none;
}

#v div::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: transparent;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ln {
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ln a, #bn-v {
        margin-left: 0;
        margin-right: 10px;
        white-space: nowrap;
    }

    .h-s .c {
        min-width: 100%;
    }

    .c h3, .ch h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
        height: 2.4em;
    }

    .f {
        padding: 20px;
        font-size: 14px;
    }

    .s p, .m {
        font-size: 11px;
        line-height: 1.5;
    }

    .bn-f {
        padding: 15px;
        font-size: 11px;
    }
}
