/* Self-hosted fonts — no corporate CDN, no tracking. See fonts/. */
@font-face{
    font-family: "Bangers";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/Bangers-400.woff2") format("woff2");
}
@font-face{
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/SpaceGrotesk-var.woff2") format("woff2");
}
@font-face{
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/SpaceMono-400.woff2") format("woff2");
}
@font-face{
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/SpaceMono-700.woff2") format("woff2");
}

:root{
    --paper: #f2ecdd;
    --paper-dim: #e4dcc6;
    --ink: #141414;
    --red: #e5383b;
    --yellow: #ffc300;
    --blue: #3a86ff;
    --purple: #8338ec;
    --space: #0c0c1d;
    --halftone: radial-gradient(circle, rgba(20,20,20,.16) 1.2px, transparent 1.3px);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: "Space Grotesk", system-ui, sans-serif;
    background: var(--paper);
    background-image: var(--halftone);
    background-size: 14px 14px;
    color: var(--ink);
    overflow-x: hidden;
}
h1, h2, h3, .logo, .btn, .tuneIn, .burst{
    font-family: "Bangers", "Space Grotesk", cursive;
    font-weight: 400;
    letter-spacing: .04em;
}

/* ---------- Sticky header ---------- */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background .35s, padding .35s, border-color .35s;
    border-bottom: 4px solid transparent;
}
header .logo{
    position: relative;
    text-decoration: none;
    font-size: clamp(26px, 3.4vw, 40px);
    color: var(--paper);
    text-shadow: 3px 3px 0 var(--ink);
    transition: color .35s, text-shadow .35s, font-size .35s;
    line-height: 1;
}
.logo span{
    color: var(--yellow);
}
header ul{
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
}
header ul li{
    list-style: none;
}
header ul li a{
    text-decoration: none;
    font-family: "Space Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--paper);
    border: 2px solid transparent;
    padding: 6px 10px;
    transition: color .25s, background .25s, border-color .25s, transform .15s;
}
header ul li.active a,
header ul li:hover a{
    color: var(--yellow);
}
header ul li.navCta a{
    font-family: "Bangers", cursive;
    font-size: 19px;
    letter-spacing: .06em;
    color: var(--ink);
    background: var(--red);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    padding: 6px 16px 4px;
}
header ul li.navCta a:hover{
    color: var(--ink);
    background: var(--yellow);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}
/* Stuck state: newsprint bar slams down */
.stickyNav{
    padding: 10px 4vw;
    background: var(--yellow);
    border-bottom: 4px solid var(--ink);
}
.stickyNav .logo{
    color: var(--ink);
    text-shadow: none;
    font-size: clamp(23px, 2.8vw, 32px);
}
.stickyNav .logo span{
    color: var(--red);
}
.stickyNav ul li a{
    color: var(--ink);
}
.stickyNav ul li.active a,
.stickyNav ul li:hover a{
    color: var(--paper);
    background: var(--ink);
}
.stickyNav ul li.navCta a{
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--red);
}
.stickyNav ul li.navCta a:hover{
    background: var(--red);
    color: var(--ink);
}

/* ---------- Hero ---------- */
#hero{
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--space);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 5px solid var(--ink);
    padding: 120px 6vw 80px;
}
/* twinkling starfield: two parallax dot layers */
.stars, .stars::after{
    content: '';
    position: absolute;
    inset: -60px;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 130px 90px, #fff, transparent),
        radial-gradient(2px 2px at 70px 160px, var(--yellow), transparent),
        radial-gradient(1.5px 1.5px at 200px 40px, #fff, transparent),
        radial-gradient(2px 2px at 260px 140px, var(--red), transparent),
        radial-gradient(1.5px 1.5px at 320px 80px, #fff, transparent),
        radial-gradient(2px 2px at 390px 190px, #fff, transparent);
    background-size: 420px 220px;
    animation: drift 90s linear infinite;
    opacity: .9;
}
.stars::after{
    background-size: 560px 300px;
    animation-duration: 140s;
    animation-direction: reverse;
    opacity: .5;
}
@keyframes drift{
    from{ transform: translateY(0); }
    to{ transform: translateY(220px); }
}
.heroInner{
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.kicker{
    font-family: "Space Mono", monospace;
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--paper);
    margin-bottom: 22px;
}
.kicker span{
    background: var(--red);
    color: var(--paper);
    border: 2px solid var(--ink);
    padding: 5px 12px;
    display: inline-block;
    transform: rotate(-2deg);
}
.kicker em{
    font-style: normal;
    border: 2px dashed var(--yellow);
    color: var(--yellow);
    padding: 5px 12px;
    margin-left: 10px;
    display: inline-block;
    transform: rotate(1.5deg);
}
#hero h1{
    font-size: clamp(64px, 13vw, 170px);
    line-height: .9;
    color: var(--paper);
    text-shadow:
        4px 4px 0 var(--red),
        8px 8px 0 var(--ink);
}
#hero h1 .space{
    color: var(--yellow);
}
.standfirst{
    margin: 26px auto 0;
    max-width: 620px;
    color: var(--paper);
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.6;
}
.heroBtns{
    margin-top: 34px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn{
    text-decoration: none;
    font-size: 24px;
    letter-spacing: .06em;
    padding: 12px 30px 9px;
    border: 4px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform .12s, box-shadow .12s, background .2s;
    display: inline-block;
}
.btn.primary{
    background: var(--yellow);
    color: var(--ink);
    transform: rotate(-1.5deg);
}
.btn.ghost{
    background: transparent;
    color: var(--paper);
    border-color: var(--paper);
    box-shadow: 6px 6px 0 rgba(242,236,221,.35);
    transform: rotate(1.5deg);
}
.btn:hover{
    transform: translate(-2px, -2px) rotate(0deg);
}
.btn.primary:hover{
    background: var(--red);
    color: var(--paper);
    box-shadow: 8px 8px 0 var(--ink);
}
.btn.ghost:hover{
    border-color: var(--yellow);
    color: var(--yellow);
}
.btn:active{
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}
/* starburst sticker */
.burst{
    position: absolute;
    z-index: 2;
    top: 15%;
    right: 6%;
    width: 130px;
    height: 130px;
    background: var(--red);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 26px;
    line-height: 1;
    transform: rotate(12deg);
    clip-path: polygon(50% 0%, 61% 12%, 75% 7%, 79% 21%, 93% 21%, 91% 36%, 100% 45%, 92% 56%, 97% 70%, 83% 73%, 82% 88%, 68% 85%, 60% 100%, 50% 89%, 40% 100%, 32% 85%, 18% 88%, 17% 73%, 3% 70%, 8% 56%, 0% 45%, 9% 36%, 7% 21%, 21% 21%, 25% 7%, 39% 12%);
    animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble{
    0%, 100%{ transform: rotate(12deg) scale(1); }
    50%{ transform: rotate(6deg) scale(1.06); }
}
.scrollHint{
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--yellow);
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    text-decoration: none;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob{
    0%, 100%{ transform: translate(-50%, 0); }
    50%{ transform: translate(-50%, 8px); }
}

/* ---------- Ticker ---------- */
.ticker{
    background: var(--ink);
    border-bottom: 5px solid var(--ink);
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0 9px;
}
.tickerTrack{
    display: inline-block;
    animation: ticker 28s linear infinite;
}
.tickerTrack span{
    font-family: "Bangers", cursive;
    font-size: 26px;
    letter-spacing: .08em;
    color: var(--yellow);
}
@keyframes ticker{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
}

/* ---------- Stations ---------- */
#stations{
    padding: 100px 6vw 110px;
    scroll-margin-top: 70px;
}
.secHead{
    text-align: center;
    margin-bottom: 54px;
}
.secHead .kicker{
    color: var(--ink);
}
.secHead .kicker span{
    transform: rotate(1.5deg);
}
.secHead h2{
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1;
    text-shadow: 4px 4px 0 var(--yellow);
}
.panels{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.panel{
    position: relative;
    text-decoration: none;
    color: var(--paper);
    background: var(--ink);
    border: 4px solid var(--ink);
    box-shadow: 8px 8px 0 var(--red);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    transition: transform .15s, box-shadow .15s;
}
.panel:nth-child(2){ box-shadow: 8px 8px 0 var(--blue); }
.panel:nth-child(3){ box-shadow: 8px 8px 0 var(--purple); }
.panel:nth-child(4){ box-shadow: 8px 8px 0 var(--yellow); }
.panel:hover{
    transform: translate(-3px, -3px) rotate(-.5deg);
    box-shadow: 12px 12px 0 var(--red);
}
.panel:nth-child(2):hover{ box-shadow: 12px 12px 0 var(--blue); }
.panel:nth-child(3):hover{ box-shadow: 12px 12px 0 var(--purple); }
.panel:nth-child(4):hover{ box-shadow: 12px 12px 0 var(--yellow); }
.panelNum{
    font-family: "Space Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--yellow);
    border-bottom: 2px dashed rgba(242,236,221,.4);
    padding-bottom: 10px;
}
.panel h3{
    font-size: 42px;
    color: var(--yellow);
    line-height: 1;
}
.panel:nth-child(2) h3{ color: var(--blue); }
.panel:nth-child(3) h3{ color: #c77dff; }
.panel:nth-child(4) h3{ color: var(--red); }
.panel p{
    font-size: 15px;
    line-height: 1.6;
    color: var(--paper);
    flex: 1;
}
.tuneIn{
    font-size: 22px;
    letter-spacing: .06em;
    color: var(--paper);
    background: var(--red);
    border: 3px solid var(--paper);
    padding: 6px 14px 3px;
    align-self: flex-start;
    transform: rotate(-1deg);
}
.panel:nth-child(2) .tuneIn{ background: var(--blue); }
.panel:nth-child(3) .tuneIn{ background: var(--purple); }
.panel:nth-child(4) .tuneIn{ background: var(--ink); border-color: var(--yellow); color: var(--yellow); }

/* ---------- About / colophon ---------- */
#about{
    background: var(--ink);
    background-image: radial-gradient(circle, rgba(242,236,221,.13) 1.2px, transparent 1.3px);
    background-size: 14px 14px;
    color: var(--paper);
    padding: 100px 6vw 110px;
    border-top: 5px solid var(--ink);
    border-bottom: 5px solid var(--ink);
    scroll-margin-top: 40px;
}
#about .secHead h2{
    color: var(--paper);
    text-shadow: 4px 4px 0 var(--red);
}
.kicker.light{
    color: var(--paper);
}
.aboutGrid{
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 34px;
}
.aboutGrid p{
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.7;
    border: 3px solid var(--paper);
    background: rgba(242,236,221,.06);
    padding: 26px 28px;
    transform: rotate(-.5deg);
}
.aboutGrid p strong{
    color: var(--yellow);
}
.aboutGrid ul{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.aboutGrid li{
    font-family: "Space Mono", monospace;
    font-size: 14px;
    border: 3px solid var(--yellow);
    padding: 14px 16px;
    transform: rotate(.5deg);
}
.aboutGrid li:nth-child(2){ transform: rotate(-.5deg); border-color: var(--blue); }
.aboutGrid li:nth-child(3){ border-color: var(--red); }
.aboutGrid li span{
    display: block;
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--yellow);
    margin-bottom: 6px;
}

/* ---------- Footer ---------- */
footer{
    background: #000;
    color: var(--paper-dim);
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    padding: 22px 6vw;
}
footer span{
    color: var(--red);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 900px){
    header{
        padding: 18px 6vw;
    }
    .stickyNav{
        padding: 8px 6vw;
    }
    .burst{
        width: 96px;
        height: 96px;
        font-size: 19px;
        top: 12%;
        right: 5%;
    }
    .menuToggle{
        position: relative;
        width: 34px;
        height: 24px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }
    .menuToggle::before{
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--paper);
        border: 1px solid var(--ink);
        transform: translateY(-8px);
        box-shadow: 0 8px var(--yellow);
        transition: .4s;
    }
    .menuToggle::after{
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--paper);
        border: 1px solid var(--ink);
        transform: translateY(8px);
        transition: .4s;
    }
    header.active .menuToggle::before{
        transform: translateY(0) rotate(45deg);
        box-shadow: none;
        background: var(--ink);
    }
    header.active .menuToggle::after{
        transform: translateY(0) rotate(-45deg);
        background: var(--ink);
    }
    header ul{
        display: none;
    }
    header.active ul{
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--yellow);
        background-image: var(--halftone);
        background-size: 14px 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 26px;
        border-left: 5px solid var(--ink);
    }
    header.active ul a{
        font-size: 20px;
        color: var(--ink);
    }
    header.active ul li.navCta a{
        font-size: 30px;
    }
    .stickyNav .menuToggle::before{
        background: var(--ink);
        box-shadow: 0 8px var(--ink);
    }
    .stickyNav .menuToggle::after{
        background: var(--ink);
    }
}

@media (prefers-reduced-motion: reduce){
    .stars, .stars::after, .tickerTrack, .burst, .scrollHint{
        animation: none;
    }
    html{
        scroll-behavior: auto;
    }
}
