* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Anonymous Pro', monospace;
    line-height: 1.6;
    color: #333;
    background-image: url('imgs/background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

a {
    color: #e53b44;
    text-decoration: none;
    font-weight: normal;
}

a:hover {
    text-decoration: underline;
}

.header-banner {
    width: 100%;
    display: block;
    margin: 0 auto;
}

header {
    position: relative;
    width: min(900px, 70vw);
    margin: 0 auto;
}

/* Home banner is fixed at 900px on every viewport; header clips the overflow so no horizontal scroll */
body.home header {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

body.home .header-banner {
    width: 900px;
    max-width: none;
    flex-shrink: 0;
    padding-top: 2rem;
}

@media (max-width: 800px) {
    body:not(.home) .header-banner {
        visibility: hidden;
    }
    main {
        padding: 0 1.5rem;
    }
    .streaming-list {
        gap: 0.75rem;
    }
    /* zoom scales images and text proportionally, unlike width which enlarges smaller images */
    .home-links {
        zoom: 0.65;
    }
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.5rem;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .footer-nav-list {
        gap: 0.75rem;
    }
}

body.home .nav-list {
    display: none;
}

body.home {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Slightly more gap below banner than above footer nav */
body.home .home-links {
    padding: 4.5rem 0 4rem;
}

body.home footer {
    padding: 0;
}

body.home .footer-nav-list {
    padding: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 1rem 0;
}

.title {
    text-align: center;
}

.timeline-track {
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.6rem;
    bottom: 0;
    width: 2px;
    background: #000;
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 0 0 0.5rem 3rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 1.3rem;
    left: 0.15rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #e53b44;
    border: 2px solid #fff;
}

.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.timeline-content h3,
.timeline-content h3 a {
    font-weight: bold;
    color: #e53b44;
}

.timeline-img {
    width: calc(50% - 0.5rem);
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    min-width: 100%;
}

.timeline-img-group {
    padding: 0.75rem 0;
}

.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    margin: 0;
    background: #fff;
    border-radius: 4px;
}

.video-loading a {
    font-weight: bold;
    color: #e53b44;
}

.home-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-height: auto;
    padding: 2rem 0;
}

.home-links h1 {
    font-weight: bold;
}

.home-links .overlay a {
    font-weight: bold;
    display: block;
}

.overlay {
    position: relative;
    display: inline-block;
}

.overlay:first-child {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -1rem;
}

.overlay img {
    display: block;
    width: auto;
    height: auto;
}

.overlay h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1;
}

/* Radio graphic has empty canvas above/below; trim it from the clickable area */
.overlay:nth-child(2) a {
    clip-path: inset(12% 0);
}

/* Absolutely positioned h1 doesn't inherit the anchor's hover underline */
.overlay a:hover h1 {
    text-decoration: underline;
}

/* JS-driven cursor: browsers don't support animated gif cursors natively */
body.home main.custom-cursor,
body.home main.custom-cursor a {
    cursor: none;
}

#hand-cursor {
    position: fixed;
    display: none;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
}

footer {
    text-align: center;
    font-size: 0.9rem;
    padding: 2rem 0;
}

.footer-nav-list a {
    background-color: #fff;
    color: #e53b44;
    padding: 0.25rem 0.5rem;
}

.streaming-list {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.instagram-media {
    min-width: 100% !important;
}

.instagram-video-only > div > a,
.instagram-video-only > div > p {
    display: none !important;
}

.instagram-video-only > div {
    padding: 0 !important;
}

.instagram-video-only {
    max-height: 600px !important;
    overflow: hidden !important;
}

.instagram-video-only iframe {
    height: 600px !important;
}
