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

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    width: 100%;
    height: auto;
}

a {
    color: var(--color-link-normal);
}

[hidden] {
    display: none !important;
}

/* typography */
@font-face {
    font-family: "Plex";
    font-style: normal;
    src:
        local("IBM Plex Sans Regular"), local("IBMPlexSans-Regular"),
        url("assets/fonts/IBMPlexSans.ttf");
}

@font-face {
    font-family: "Plex";
    font-style: italic;
    src:
        local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"),
        url("assets/fonts/IBMPlexSans-Italic.ttf");
}

:root {
    font-family: "Plex", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.8;
    font-size: 16px;
}

/* content */

@keyframes shift-colors {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes animate-logo-fill {
    0% {
        fill: #ff0000; /* red */
    }
    12.5% {
        fill: #ff8000; /* orange */
    }
    25% {
        fill: #ffff00; /* yellow */
    }
    37.5% {
        fill: #80ff00; /* lime */
    }
    50% {
        fill: #00ff00; /* green */
    }
    62.5% {
        fill: #00ff80; /* spring green */
    }
    75% {
        fill: #00ffff; /* cyan */
    }
    87.5% {
        fill: #0080ff; /* blue */
    }
    100% {
        fill: #ff0000; /* back to red for smooth loop */
    }
}

@keyframes animate-drift-fill {
    0% {
        fill: #d6a8ca; /* orange */
    }
    50% {
        fill: #fff482; /* red */
    }
    100% {
        fill: #d6a8ca; /* orange */
    }
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    a {
        color: black;
        text-decoration: underline;
        text-decoration-color: gray;
        text-decoration-thickness: 0.1rem;
    }
    a:hover,
    a:active {
        /* text-decoration-color: black; */
        text-decoration-style: wavy;
    }
    a:visited {
        color: black;
    }

    /* overflow: hidden; */
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        #ff0000 0%,
        #ff8000 12.5%,
        #ffff00 25%,
        #80ff00 37.5%,
        #00ff00 50%,
        #00ff80 62.5%,
        #00ffff 75%,
        #0080ff 87.5%,
        #8000ff 100%
    );
    animation: shift-colors 30s linear infinite;
    z-index: -1;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.header__logowrap {
    margin-top: 3rem;
    max-width: 58rem;
}

.header__logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    animation: animate-logo-fill 23s ease-in-out infinite;
    path {
        fill: inherit;
    }
}

.header__driftwrap {
    margin-top: 3rem;
    max-width: 40rem;
}

.header__drift {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    animation: animate-drift-fill 12s ease-in-out infinite;
    path {
        fill: inherit;
    }
}

@keyframes spin-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.header__spinwrap {
    margin-top: 3rem;
    width: 4rem;
    height: 4rem;
    border-radius: 100%;
    overflow: hidden;
    background-image: url("assets/drift-spin.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: spin-rotation 3.8s linear infinite;
    opacity: 0.7;
    filter: drop-shadow(0 0 0.2rem rgba(0, 0, 0, 0.8));
}

.new-album {
    width: 100%;
    display: grid;
    grid-template-areas: "heading heading" "text cover";
    column-gap: 2rem;
    grid-template-columns: 1fr 1fr;
    @media (max-width: 768px) {
        grid-template-areas: "heading" "cover" "text";
        grid-template-columns: 1fr;
    }
    max-width: 56rem;
}

.new-album__heading,
.hey__heading,
.discography__heading,
.contact__heading {
    font-weight: 900;
    font-size: 2rem;
    grid-area: heading;
    @media (max-width: 768px) {
        line-height: 1.2;
    }
}

.new-album__coverimage {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 26rem;
    grid-area: cover;
    img {
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }
}

.new-album__text {
    grid-area: text;
}
.new-album__caption {
    font-size: 0.8rem;
    width: 100%;
}

.new-abum__label-logo {
    width: 30%;
}

.hey {
    width: 100%;
    max-width: 56rem;
}

.hey__artist-image {
    max-width: 56rem;
    img {
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }
}
.hey__artist-image-caption {
    font-size: 0.8rem;
}

.discography {
    width: 100%;
    max-width: 56rem;
}

.discography__content-item {
    display: grid;
    grid-template-areas: "cover title" "cover year" "cover label";
    column-gap: 2rem;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto auto 1fr;
}

.discography__cover {
    grid-area: cover;
    img {
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }
}

.discography__title {
    grid-area: title;
    font-weight: 900;
}
.discography__year {
    grid-area: year;
}
.discography__label {
    grid-area: label;
}

.contact {
    width: 100%;
    max-width: 56rem;
}
