@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Jersey+10&family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #EEDCEF;
    color: #3F1C26;
    font-family: 'DotGothic16', monospace;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    background: #59438D;
    color: #EEDCEF;
}



.navbar {
    width: 100%;
    padding: 22px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: #3F1C26;
    border-bottom: 2px solid #723D51;
    border-top: 3px solid #59438D;
    box-shadow: 4px 4px 0 #24132C;
}

.home-link {
    position: relative;
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    color: #EEDCEF;
    padding: 5px 12px;
    background: #3F1C26;
    border: 3px solid #723D51;
    border-top-color: #59438D;
    border-left-color: #AF7D87;
    box-shadow:
        4px 4px 0 #24132C,
        inset 2px 2px 0 rgba(238,220,239,0.14),
        inset -2px -2px 0 rgba(0,0,0,0.25);
    text-shadow: 1px 1px 0 #24132C;
    border-radius: 10px;
    transition:
        transform 0.12s steps(2),
        background 0.12s steps(2),
        border-color 0.12s steps(2),
        box-shadow 0.12s steps(2);
}

.home-link::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(238,220,239,0.16);
    pointer-events: none;
}

.home-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(36,19,44,0.4);
    pointer-events: none;
}

.home-link span {
    color: #AF7D87;
    margin-right: 5px;
    text-shadow: 0 0 7px rgba(175,125,135,0.5);
}

.home-link:hover {
    color: #EEDCEF;
    background: #59438D;
    border-top-color: #EEDCEF;
    border-left-color: #AF7D87;
    border-right-color: #723D51;
    border-bottom-color: #723D51;
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 #24132C,
        0 0 16px rgba(89,67,141,0.22),
        inset 2px 2px 0 rgba(238,220,239,0.18),
        inset -2px -2px 0 rgba(0,0,0,0.22);
}

.home-link:hover span {
    color: #EEDCEF;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-block;
    min-width: 92px;
    padding: 9px 15px 8px;
    color: #EEDCEF;
    background: #3F1C26;
    border: 3px solid #723D51;
    border-top-color: #AF7D87;
    border-left-color: #AF7D87;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow:
        4px 4px 0 #24132C,
        inset 2px 2px 0 rgba(238,220,239,0.15),
        inset -2px -2px 0 rgba(0,0,0,0.25);
    border-radius: 10px;
    transition:
        transform 0.12s steps(2),
        background 0.12s steps(2),
        border-color 0.12s steps(2),
        box-shadow 0.12s steps(2);
}

.nav-links a::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(238,220,239,0.14);
    pointer-events: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(36,19,44,0.35);
    pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #EEDCEF;
    background: #59438D;
    border-top-color: #EEDCEF;
    border-left-color: #AF7D87;
    border-right-color: #723D51;
    border-bottom-color: #723D51;
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 #24132C,
        0 0 14px rgba(89,67,141,0.2),
        inset 2px 2px 0 rgba(238,220,239,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.22);
}

.nav-links a:active {
    transform: translate(2px, 2px);
    background: #3F1C26;
    border-top-color: #723D51;
    border-left-color: #723D51;
    border-right-color: #AF7D87;
    border-bottom-color: #AF7D87;
    box-shadow:
        1px 1px 0 #24132C,
        inset 2px 2px 0 rgba(0,0,0,0.2),
        inset -2px -2px 0 rgba(238,220,239,0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #EEDCEF;
    font-size: 1.7rem;
    cursor: pointer;
}



.resources-hero {
    min-height: 76vh;
    padding: 150px 8% 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    position: relative;
    overflow: hidden;
    background: #EEDCEF;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin-bottom: 24px;
    color: #59438D;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.resources-hero h1 {
    font-family: 'Jersey 10', monospace;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #3F1C26;
    text-shadow: 4px 4px 0 rgba(175,125,135,0.45);
}

.resources-hero h1 span {
    color: #59438D;
}

.hero-description {
    max-width: 700px;
    margin-top: 28px;
    color: rgba(63,28,38,0.75);
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    line-height: 1.5;
}



.hero-library {
    width: 370px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.library-window {
    background: #3F1C26;
    border: 2px solid #723D51;
    border-top-color: #59438D;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        8px 8px 0 #24132C,
        inset 0 0 0 2px rgba(89,67,141,0.2);
    transform: rotate(-2deg);
}

.library-bar {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #59438D;
    border-bottom: 2px solid #723D51;
    color: #EEDCEF;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.library-screen {
    min-height: 230px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at center, rgba(89,67,141,0.14), transparent 60%),
        #24132C;
    color: rgba(238,220,239,0.6);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
}

.library-screen strong {
    color: #EEDCEF;
    font-family: 'DotGothic16', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
}



.resource-section {
    padding: 95px 8% 120px;
    position: relative;
    background: #24132C;
    color: #EEDCEF;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.section-label {
    margin-bottom: 18px;
    color: #AF7D87;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.section-heading h2 {
    font-family: 'Jersey 10', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: #EEDCEF;
    text-shadow: 3px 3px 0 rgba(175,125,135,0.35);
}

.section-heading p:last-child {
    margin-top: 18px;
    color: rgba(238,220,239,0.7);
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
}


.resource-count {
    max-width: 1200px;
    margin: 0 auto 20px;
    color: rgba(238,220,239,0.55);
    font-family: 'VT323', monospace;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}



.resource-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 2;
}

.resource-card {
    min-height: 440px;
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #3F1C26;
    border: 2px solid #723D51;
    border-top-color: #59438D;
    border-radius: 10px;
    box-shadow:
        6px 6px 0 #120a16,
        inset 0 0 0 2px rgba(89,67,141,0.2);
    transition: 0.25s;
}

.resource-card::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 8px;
    right: 8px;
    height: 27px;
    background: #4c2835;
    border: 2px solid #723D51;
    box-shadow:
        inset 0 2px 0 rgba(238,220,239,0.08),
        inset 0 -2px 0 #24132C;
}

.resource-card:hover {
    transform: translate(-3px, -4px);
    border-color: #AF7D87;
    border-top-color: #59438D;
    box-shadow:
        9px 9px 0 #120a16,
        0 0 25px rgba(89,67,141,0.16),
        inset 0 0 0 2px rgba(175,125,135,0.18);
}



.resource-icon {
    width: 48px;
    height: 48px;
    margin-top: 35px;
    display: grid;
    place-items: center;
    color: #AF7D87;
    background: #24132C;
    border: 2px solid #723D51;
    box-shadow: 3px 3px 0 #120a16;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    position: relative;
}


.resource-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-number {
    margin-top: 16px;
    color: #AF7D87;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.resource-content h3 {
    margin-top: 10px;
    min-height: 4.08rem;
    font-family: 'Jersey 10', monospace;
    font-size: 1.7rem;
    line-height: 1.2;
    color: #EEDCEF;
}

.resource-content p {
    margin-top: 13px;
    color: rgba(238,220,239,0.72);
    font-family: 'VT323', monospace;
    font-size: 1.12rem;
    line-height: 1.5;
}


.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    margin-bottom: 22px;
}

.resource-tags span {
    padding: 4px 7px;
    color: #EEDCEF;
    background: #59438D;
    border: 1px solid #AF7D87;
    font-family: 'VT323', monospace;
    font-size: 0.82rem;
}


.resource-link {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 13px 7px;
    color: #EEDCEF;
    background: #3F1C26;
    border: 2px solid #723D51;
    border-top-color: #59438D;
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
    box-shadow:
        3px 3px 0 #120a16,
        inset 0 0 0 1px rgba(238,220,239,0.06);
    transition: 0.2s;
}

.resource-link::before {
    content: "▶";
    margin-right: 8px;
    color: #AF7D87;
    font-size: 0.68rem;
}

.resource-link:hover {
    color: #EEDCEF;
    background: #59438D;
    border-color: #AF7D87;
    border-top-color: #EEDCEF;
    transform: translate(-2px, -2px);
    box-shadow:
        5px 5px 0 #120a16,
        0 0 16px rgba(89,67,141,0.2);
}


.no-results {
    max-width: 600px;
    margin: 55px auto 0;
    padding: 40px 25px;
    display: none;
    position: relative;
    z-index: 2;
    text-align: center;
    background: #3F1C26;
    border: 2px solid #723D51;
    border-top-color: #59438D;
    box-shadow: 5px 5px 0 #120a16;
}

.no-results > span {
    display: block;
    margin-bottom: 15px;
    color: #AF7D87;
    font-size: 1.7rem;
}

.no-results h3 {
    font-family: 'Jersey 10', monospace;
    font-size: 1.7rem;
    line-height: 1.3;
    color: #EEDCEF;
}

.no-results p {
    margin-top: 12px;
    color: rgba(238,220,239,0.7);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
}


.resource-note {
    padding: 90px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
    background: #EEDCEF;
    color: #3F1C26;
}

.resource-note > div:first-child {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.resource-note h2 {
    font-family: 'Jersey 10', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    text-shadow: 3px 3px 0 rgba(175,125,135,0.4);
}

.resource-note h2 span {
    color: #59438D;
}

.resource-note p:last-child {
    max-width: 650px;
    margin-top: 20px;
    color: rgba(63,28,38,0.72);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
}

.note-symbol {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #EEDCEF;
    background: #3F1C26;
    border: 2px solid #723D51;
    border-top-color: #59438D;
    box-shadow:
        7px 7px 0 #24132C,
        inset 0 0 0 2px rgba(89,67,141,0.25);
    font-family: 'VT323', monospace;
    font-size: 4rem;
}


footer {
    padding: 50px 8%;
    border-top: 2px solid #723D51;
    color: rgba(238,220,239,0.6);
    background: #24132C;
}

.copyright {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    opacity: 0.6;
}



@media (max-width: 1000px) {

    .resources-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-library {
        width: min(100%, 430px);
        align-self: center;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .navbar {
        padding: 20px 6%;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 102;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 6%;
        right: 6%;
        background: #3F1C26;
        border: 2px solid #723D51;
        border-top-color: #59438D;
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 6px 6px 0 #24132C;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 12px;
    }

    .resources-hero {
        min-height: 78vh;
        padding: 130px 7% 80px;
    }

    .resources-hero h1 {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-library {
        width: 100%;
    }

    .library-window {
        transform: none;
    }

    .resource-section {
        padding: 75px 7% 90px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 425px;
    }

    .resource-note {
        padding: 75px 7%;
        flex-direction: column;
        align-items: flex-start;
    }

    .note-symbol {
        width: 100px;
        height: 100px;
        font-size: 2.7rem;
        align-self: center;
    }

}