@font-face {
    font-family: "Px Grotesk";
    src: url("../fonts/px-grotesk-regular.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --black: #050505;
    --white: #fff;
    --signal: #e53530;
    --page-width: min(80rem, 80vw);
    --line: 1px solid currentColor;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: "Px Grotesk", Helvetica, Arial, sans-serif;
    font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body:has(.gallery[open]) {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: currentColor;
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.18em;
    text-decoration-skip-ink: none;
}

button,
a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.55rem 0.8rem;
    background: var(--white);
    color: var(--black);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.hero,
main,
.site-footer {
    width: var(--page-width);
    margin-inline: auto;
}

.hero__brand,
.hero__nav,
.hero__down {
    display: grid;
    min-height: 10svh;
    place-items: center;
}

.hero__down{
    width: 100%;
    text-align: center;
    margin-top: 1em;
}

.hero h1,
.hero__nav ul,
.content-section h2,
.gallery h2,
.site-footer p {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
}

.hero__image {
    height: 35svh;
    overflow: hidden;
}

.hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.2rem;
    padding: 0;
    list-style: none;
}

.hero__nav a,
.hero__down,
.content-row a,
.site-footer > a,
.text-button {
    display: inline-block;
    border: 0;
    background: var(--white);
    color: var(--black);
    font: inherit;
    text-transform: uppercase;
}

.hero__down,
.site-footer > a {
    font-size: 1.35rem;
    text-decoration: none;
}

.release-artwork {
    display: grid;
    min-height: 100svh;
    padding-block: clamp(5rem, 12vw, 10rem);
    place-items: center;
}

.release-artwork img {
    display: block;
    width: min(65vw, 54rem);
    height: auto;
    animation: rotate 14s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(-360deg); }
}

.content-section {
    margin-block: clamp(3.5rem, 8vw, 6rem);
    scroll-margin-top: 1rem;
    background: var(--black);
    color: var(--white);
}

.content-section h2,
.content-row,
.gallery-teaser,
.video-frame {
    border-bottom: var(--line);
}

.content-section h2 {
    padding: 1rem 1.2rem;
}

.content-section h2 span {
    display: inline-block;
    min-width: 4rem;
}

.content-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    padding: 1rem;
}

.content-row:last-child {
    border-bottom: 0;
}

.content-row p {
    margin: 0;
}

.content-row a,
.text-button {
    padding-inline: 0.32rem;
    cursor: pointer;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-row--signal {
    color: var(--signal);
    border-color: #fff;
}

.content-row--signal a {
    background: var(--signal);
}

cite,
address {
    font-style: normal;
}

.video-grid {
    display: grid;
    background: var(--black);
}

.video-frame {
    padding: 2em 5em;
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #151515;
}

.gallery-teaser {
    padding: 1rem;
    overflow: hidden;
}

.ascii-art {
    width: 100%;
    /* margin: 0.85rem 0 0; */
    overflow: hidden;
    color: var(--white);
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.38em;
    white-space: pre;
    /* user-select: none; */
}

.show span,
.show time {
    white-space: nowrap;
}

.site-footer {
    display: grid;
    min-height: 28svh;
    padding-block: 3rem;
    place-items: center;
    text-align: center;
}

.site-footer p {
    font-size: 0.72rem;
}

.gallery {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--black);
    color: var(--white);
}

.gallery::backdrop {
    background: var(--black);
}

.gallery[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.gallery__bar,
.gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.gallery button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--white);
    background: var(--black);
    color: var(--white);
    font: inherit;
    cursor: pointer;
}

.gallery__figure {
    display: grid;
    min-height: 0;
    margin: 0;
    place-items: center;
    cursor: ew-resize;
    touch-action: none;
}

.gallery__figure img {
    display: block;
    width: auto;
    max-width: min(90vw, 90rem);
    height: auto;
    max-height: 76dvh;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.gallery__figure figcaption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 48rem) {
    :root {
        --page-width: 92vw;
    }

    .hero__nav ul {
        gap: 0.3rem 0.8rem;
    }

    .hero__image {
        height: 31svh;
    }

    .release-artwork img {
        width: 82vw;
    }

    .content-section h2 span {
        min-width: 3rem;
    }

    .video-frame {
        padding: 2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .release-artwork img {
        animation: none;
    }
}
