/* --- 1. FONT SETUP --- */
@font-face {
    font-family: 'Space Mono';
    src: url('fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
}

/* --- 2. GLOBAL STYLES --- */
html, body { height: 100%; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Mono', monospace;
    background-color: #1a1a1a;
    color: #eeeeee;
    display: flex;
    flex-direction: column;
    line-height: 1.6; /* Improved legibility */
}

/* ADA focus indicator for keyboard users */
a:focus, button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.content {
    padding: 130px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    flex: 1 0 auto;
}

h1 { font-size: 3rem; text-transform: uppercase; margin: 0; }
.tagline { color: #aaaaaa; margin-top: 5px; } /* Improved contrast ratio */
.divider { border: 0; border-top: 1px solid #333; margin: 1.5rem 0; }

/* --- 3. NAVBAR STYLING --- */

.navbar {
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 22px;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 64px;
}

/* --- LOGO --- */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    color: #ffffff;

    flex-shrink: 1;
    min-width: 0;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo-icon {
    height: 55px;
    width: auto;

    display: block;
    flex-shrink: 0;

    object-fit: contain;
}

/* Prevent giant SVGs from breaking layout */
.nav-logo-icon svg {
    max-width: 100%;
    max-height: 100%;
}

.nav-logo-text {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.35rem;
    line-height: 1;
    white-space: nowrap;
}

/* --- NAV LINKS --- */

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    gap: 35px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* --- MOBILE TOGGLE --- */

.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background: white;
    height: 2px;
    width: 24px;
    position: relative;
}

.hamburger::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
}

.hamburger::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
}

/* --- MOBILE NAV --- */

@media screen and (max-width: 768px) {

    .nav-container {
        padding: 14px 18px;
    }

    .nav-top {
        min-height: 58px;
    }

    .nav-logo {
        gap: 10px;
        overflow: hidden;
    }

    .nav-logo-icon {
        height: 34px;
        max-width: 42px;
    }

    .nav-logo-text {
        font-size: 1rem;
        letter-spacing: 1.5px;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle-btn {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background-color: #000000;
        border-bottom: 1px solid #333;

        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        padding: 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid #1f1f1f;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 22px;
        font-size: 0.95rem;
    }

    .content {
        padding-top: 100px;
    }

    h1 {
        font-size: 2.2rem;
    }

}

/* --- 4. ACCESSIBLE BUTTON --- */
.nav-toggle-btn {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    background: white;
    height: 2px;
    width: 25px;
    position: relative;
}
.hamburger::before { content: ""; position: absolute; top: -8px; left: 0; background: white; height: 2px; width: 25px; }
.hamburger::after { content: ""; position: absolute; top: 8px; left: 0; background: white; height: 2px; width: 25px; }

/* --- 5. FOOTER --- */
.footer {
    background-color: #000000;
    color: #ffffff;
    border-top: 1px solid #333;
    padding: 16px 0;
    text-align: center;
    font-size: 0.85rem; /* Slightly larger for easier reading */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 6. MOBILE LOGIC --- */
@media screen and (max-width: 768px) {
    .nav-toggle-btn { display: block; }

    .nav-links {
        display: none; /* Fully hide until toggled */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #000;
        flex-direction: column;
        border-bottom: 1px solid #333;
    }

    /* Shown when JS toggles this class */
    .nav-links.nav-active {
        display: flex;
        padding-bottom: 20px;
    }

    .nav-links li {
        margin: 20px 25px;
    }

    .content { padding-top: 100px; }
    h1 { font-size: 2.2rem; }
}


/* --- 7. HOMEPAGE SECTIONS --- */

.homepage-section {
    margin-top: 50px;
    padding-top: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-link:hover {
    color: #ffffff;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    border-bottom: 1px solid #2a2a2a;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list a {
    display: block;
    padding: 14px 0;
    color: #eeeeee;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.content-list a:hover {
    opacity: 0.7;
}

.empty-state {
    color: #888888;
    font-style: italic;
}

@media screen and (max-width: 768px) {

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* --- RELEASE THUMBNAILS --- */

.release-item {
    border-bottom: 1px solid #2a2a2a;
}

.release-link {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    color: #eeeeee;
}

.release-thumb {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 1px solid #333;
    background: #111;
    flex-shrink: 0;
}

.release-link:hover {
    opacity: 0.7;
}

.release-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.release-artist {
    font-size: 0.8rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.release-title {
    color: #eeeeee;
}

.section-link {
    color: #aaaaaa;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-link:hover {
    color: #ffffff;
}

.footer img {
    filter: invert(1) brightness(0.9);
}


.footer a:focus {
    outline: none;
}

.footer a {
    margin: 0 4px;
}

.footer img {
    display: block;
}

.footer a {
    display: inline-block;
    margin: 0 4px;
    vertical-align: -3px;
}
