* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --void: #100c0e;
    --void2: #1a1416;
    --grey: #0e0e0e;
    --blood: #7a1f1f;
    --blood-light: #b8453f;
    --moss: #3d4a35;
    --moss-light: #6b7a5e;
    --moss-dark: #1a1d18;
    --moss-nav: #161a14;
    --bone: #d8cfc0;
    --text-dim: #8a7d70;
    --text-blood: #8d5656;
    --background: #585e5563;
    --button: #93a881;
    --line: rgba(216,207,192,0.1);
    --transparent: rgba(133, 207, 126, 0.1);
}

::selection {
    background: var(--blood);
}

body {
    font-family: 'Cinzel', Arial, Helvetica, sans-serif;
}

nav {
    padding: 2vw 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--moss-dark);
    border-bottom: 1px solid var(--line);
}

.header-title a {
    text-decoration: none;
    color: var(--blood-light);
    font-weight: 600;
    font-size: clamp(1.5rem, 1.8vw, 2.5rem);
}

.mob-nav {
    display: none;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 28%;
    list-style: none;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.4s ease;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.2vw, 2rem);
}

.header-nav a:hover {
    color: var(--bone);
}

.header-main {
    position: relative;
    min-height: 110vh;
    background: url(images/re-requiem-raccoon-sign.webp) center no-repeat;
    background-size: 100% 100%;
    margin-top: -0.1%;
}

.header-main::before {
    position: absolute;
    content: '';
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110vh;
    position: relative;
    z-index: 1;
}

.header-text h1 {
    text-align: center;
    width: 50%;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--bone);
    margin-bottom: 1rem;
}

.header-text span {
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    color: var(--blood-light);
    font-weight: 500;
    font-family: 'Crimson Text', Arial, Helvetica, sans-serif;
}

main {
    background: radial-gradient(ellipse at center, rgba(122,31,31,0.08) 0%, transparent 60%),
    var(--moss-dark);
    padding: 6vw 8vw;
}

.main-tab {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 0 0 4vw 0;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 0.5vw;
    font-family: 'Crimson Text', Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.tab.active {
    border-bottom: 1px solid var(--text-dim);
    padding: 0.5vw;
}

.tab span:first-of-type {
    color: var(--blood-light);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.tab span:last-of-type {
    color: var(--text-dim);
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tab span:last-of-type:hover {
    color: var(--bone);
}

.tab.active span:last-of-type {
    color: var(--bone);
}

.re-tracks {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.re-tracks.active {
    display: grid;
}

.tracks-img {
    grid-column: 1 / -1;
}

.tracks-img img {
    width: 100%;
}

.tracks-text {
    grid-column: 1 / -1;
    padding: 0 0 0 1vw;
    margin: 1rem 0;
}

.tracks-text p {
    color: var(--bone);
    letter-spacing: 0.2rem;
}

.audio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--transparent);
    padding: 1vw 2vw;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.192);
    position: relative;
}

.audio-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, transparent 1px, transparent 2px),
        rgba(255,255,255,0.02);
        opacity: 0;
}

.audio-content:hover::after {
    animation: audioFlicker 0.4s steps(3);
}

.audio-text h2 {
    color: var(--bone);
    font-size: 1.2rem;
}

.audio-text span {
    color: var(--text-blood);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Crimson Text', Arial, Helvetica, sans-serif;
}

.audio-btn {
    background: none;
    border: 1px solid var(--button);
    color: var(--button);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    padding: 0 0 0 0.2vw;
}

.audio-btn.playing {
    animation: herbPulse 2s ease-in-out infinite;
    font-size: 1rem;
    padding: 0 0 0.2vw 0;
}

.audio-text,
.audio-btn {
    position: relative;
    z-index: 1;
}

footer {
    margin-top: -0.1%;
    padding: 1.8vw;
    text-align: center;
    background: var(--moss-dark);
    color: var(--bone);
    border-top: 1px solid var(--line);
}

footer span {
    color: var(--blood-light);
    font-weight: 500;
}

footer p:last-of-type {
    display: none;
}

@keyframes audioFlicker {
    0% { 
        opacity: 0; 
    }
    20% { 
        opacity: 0.8;
    }
    40% { 
        opacity: 0.1;
    }
    60% { 
        opacity: 0.6;
    }
    80% { 
        opacity: 0.1;
    }
    100% { 
        opacity: 0;
    }
}

@keyframes herbPulse {
    0%, 100% { 
        box-shadow:0 0 0px rgba(127,194,106,0.4);
    }
    50% { 
        box-shadow:0 0 14px rgba(127,194,106,0.7);
    }
}

@media (max-width: 767px) {
    nav {
        padding: 8vw;
        position: relative;
    }
    .header-nav {
        position: absolute;
        top: 70%;
        right: 2%;
        display: none;
        width: 200px;
        height: 200px;
        background: var(--moss-nav);
        z-index: 3;
        padding: 6vw;
    }
    .header-nav.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .mob-nav {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 50px;
        height: 45px;
        border: 1px solid var(--line);
        background: var(--moss-dark);
        padding-top: 1vw;
        position: relative;
    }
    .mob-nav .bar {
        background: linear-gradient(90deg, var(--moss-light), var(--blood-light) 70%, var(--blood-light));
        height: 3px;
    }
    .mob-nav .bar:first-of-type {
        width: 100%;
    }
    .mob-nav .bar:nth-of-type(2) {
        width: 60%;
    }
    .mob-nav .bar:last-of-type {
        width: 80%;
    }
    .header-main {
        background: url(images/re-requiem-raccoon-sign.mobile.webp) center no-repeat;
        background-size: 100% 100%;
        margin: -0.4%;
        min-height: 90vh;
    }
    .header-text {
        min-height: 90vh;
    }
    .header-text h1 {
        width: 85%;
    }
    main {
        padding: 14vw 8vw;
    }
    .main-tab {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 1rem;
    }
    .tab {
        padding: 1vw;
    }
    .re-tracks {
        grid-template-columns: auto;
    }
    .tracks-img img {
        width: 100%;
    }
    .tracks-text {
        margin: 1.2rem 0;
    }
    .audio-content {
        padding: 4vw;
    }
    .audio-text h2 {
        margin-bottom: 0.3rem;
    }
    footer {
        padding: 8vw 5vw;
    }
    footer p:first-of-type {
        display: none;
    }
    footer p:last-of-type {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    nav {
        padding: 3vw 5vw;
    }
    .header-nav {
        width: 43%;
    }
    .header-main {
        margin: -0.3%;
        background: url(images/re-requiem-raccoon-sign.tablet.webp) center no-repeat;
        background-size: 100% 100%;
        min-height: 70vh;
    }
    .header-text {
        min-height: 70vh;
    }
    .header-text h1 {
        width: 65%;
    }
    .main-tab {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .tab {
        padding: 0.7vw;
    }
    .re-tracks {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .tracks-text {
        width: 100%;
    }
    .audio-content {
        padding: 2vw;
    }
}