@font-face {
    font-family: 'Slayphabeth-Regular';
    src:
        url('../media/Slayphabeth-Regular.woff2') format('woff2'),
        url('../media/Slayphabeth-Regular.woff') format('woff');
    /* Fallback */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --padding: min(max(25px, 5vw), 70px);
    --minPaddingY: 40px;
    --linkPadding: .4em;
    --linkTransition: .3s;
    --fadeTransition: .5s;
    --scaleTransition: .3s;
    --scaleAmount: 1.05;
    --maxWidth: 1200px;
    --density: 2px;
    --darkgrey: #1a1a1a;
    --midgrey: #323232;
    --lightgrey: #909090;
    --linkColor: #a7bac3;
    --textShadowBlur: 50px;
    /* --textShadow: 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black, 0 0 var(--textShadowBlur) black; */
    --textShadow: 1px 1px 3px rgba(0, 0, 0, 0.3),
        3px 6px 6px rgba(0, 0, 0, 0.2),
        6px 6px 9px rgba(0, 0, 0, 0.1)
}

* {
    user-select: none;
    -webkit-user-select: none;
}

h1,
h2,
p {
    user-select: text;
}

*::selection {
    background: white;
    color: black;
}

html {
    font-size: 16px;
}

a {
    cursor: pointer;
    padding: var(--linkPadding) var(--linkPadding);
    margin: calc(var(--linkPadding) * -1) calc(var(--linkPadding) * -1);
    transition: color var(--linkTransition);
    line-height: normal;
    color: var(--linkColor);
    vertical-align: top;
    top: -0.1em;
    position: relative;
}

.small-space {
    padding: 0 0.2em
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
    font-family: "IBM Plex Mono", serif;
    font-weight: 300;
    font-size: 0.8rem;
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    font-style: normal;
}

svg {
    fill: #ffffff;
}

main {
    transition: opacity var(--fadeTransition);
    background-color: #000000;
    overflow-x: clip;
    overflow-y: clip;
}

main.hidden {
    transition: opacity 0s;
}

body:has(main.hidden) {
    overflow: hidden;
    pointer-events: none;
    position: fixed;
}

.max-width-wrapper {
    max-width: var(--maxWidth);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.active {
    color: white;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

canvas {
    --overflowFactor: 1.2;
    --fadeAmount: 30%;
    height: calc(100% * var(--overflowFactor));
    width: calc(100% * var(--overflowFactor));
    top: calc((100% - 100% * var(--overflowFactor))/2);
    left: calc((100% - 100% * var(--overflowFactor))/2);
    position: absolute;
    box-sizing: border-box;
    border: 0px solid white;
    z-index: 0;
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) var(--fadeAmount), rgba(0, 0, 0, 1) calc(100% - var(--fadeAmount)), rgba(0, 0, 0, 0));
    filter: brightness(1.2);
}

section {
    padding: max(var(--padding), var(--minPaddingY)) var(--padding);
    position: relative;
    z-index: 1;
}

section.album .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: max(var(--padding), var(--minPaddingY)) var(--padding);
}

section.album .left {
    grid-column: 1 / span 2;
}

section.album .left img {
    width: 100%;
    height: auto;
    border: 1px solid var(--lightgrey);
    display: block;
}

section.album .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: max(var(--padding), var(--minPaddingY)) var(--padding);
}

.platform-links {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    gap: var(--padding);
    position: relative;
}

.platform-links a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
}

.platform-links .youtube svg {
    height: 85%;
}

.platform-links svg {
    width: auto;
    height: 100%;
    pointer-events: none;
    fill: var(--lightgrey);
    transition: fill var(--linkTransition);
}

.platform-links a:hover svg {
    fill: #ffffff;
}

section.biography {
    position: relative;
    z-index: 0;
}

section.biography img {
    /* extra scale to let the image go beyond the parent */
    scale: 1.5 2;
    width: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    filter: blur(0px) brightness(0.4) saturate(0.7);
    --fadeAmount: 30%;
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) var(--fadeAmount), rgba(0, 0, 0, 1) calc(100% - var(--fadeAmount)), rgba(0, 0, 0, 0));
}

h2,
nav li,
a {
    line-height: 1;
    font-family: 'Slayphabeth-Regular';
    font-weight: normal;
    margin-top: -0.1em;
}

h2 {
    column-span: all;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 0.4em;
    letter-spacing: 0.02em;
}

nav li,
a {
    font-size: 1.65em;
    letter-spacing: 0.1em;
}

figcaption {
    text-align: center;
    bottom: 2em;
    position: relative;
    color: var(--lightgrey);
}

p:not(:last-of-type) {
    margin-bottom: 1em;
}

.columns {
    column-count: 3;
    column-gap: var(--padding);
    width: 100%;
}

.columns p {}

section.player {
    position: relative;
    min-height: 100svh;
    width: 100vw;
    height: 100svh;
    padding: 0;
}

section.band {
    z-index: 0;
    padding-left: 0;
    padding-right: 0;
}

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

section.band .photo img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: cover;
}

section.band .photo img:nth-child(1) {
    z-index: 1;
}

section.band .logo-large {
    position: relative;
    left: 50%;
    translate: -50%;
    width: 50%;
    max-width: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

section.band .logo-large svg {
    width: 100%;
    height: 100%;
}

section.thanks .carousel {
    --fadeAmount: 20%;
    margin-left: calc(var(--fadeAmount) * -0.5);
    margin-right: calc(var(--fadeAmount) * 0.5);
    width: calc(100% + 1 * var(--fadeAmount));
    mask: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) var(--fadeAmount), rgba(0, 0, 0, 1) calc(100% - var(--fadeAmount)), rgba(0, 0, 0, 0));
}

section.footer {
    text-align: center;
    color: var(--lightgrey);
    font-size: 0.6rem;
    /* fixes safari z-index bug where bg image of biography section covers footer when hitting end of page */
    -webkit-transform: translate3d(0, 0, 0);
}

@media (hover: hover) {
    a:hover {
        color: white;
    }
}

@media screen and (max-width: 1000px) {
    section.album .grid {
        grid-template-columns: 1fr 1fr;
    }

    section.album .left {
        grid-column: 1 / span 1;
    }

    .columns {
        column-count: 2;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 15px;
    }

    canvas {
        margin-top: -20px;
    }

    section.album .grid {
        grid-template-columns: 1fr;
    }

    section.album .left {
        grid-column: 1 / span 1;
    }

    .columns {
        column-count: 1;
    }
}