:root {
	--bg: #101010;
	--panel: #181818;
	--line: #2a2a2a;
	--text: #fefefe;
	--muted: #8a8a8a;
	--accent: #ff5500;
	--display: "Oswald", Impact, "Arial Narrow", sans-serif;
}

body{
	background:var(--bg);
	font:normal 16px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	color:var(--text);
	text-align:center;
	margin: 0;
}

/* film grain over everything */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 10;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* {
	box-sizing:border-box;
}

html {
	scroll-behavior: smooth;
}

a {
    color:var(--text);
}

h1 {
    margin: 0;
    font-weight: 500;
}

/* hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);

    /* faded album art: a square as tall as the hero, edges feathered,
       with a 2px dither on top */
    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        height: 100%;
        aspect-ratio: 1;
        transform: translateX(-50%);
        z-index: -2;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v2H0zM2 2h2v2H2z' fill-opacity='.45'/%3E%3C/svg%3E") 0 0 / 4px 4px,
            url(/includes/img/dirty.jpg) center / cover;
        filter: grayscale(1) contrast(1.3) brightness(.35);
        mask-image: radial-gradient(closest-side, #000 75%, transparent);
    }

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(ellipse at center, transparent 20%, var(--bg) 80%),
            linear-gradient(transparent 60%, var(--bg));
    }

    h1 {
        font-family: var(--display);
        font-weight: 600;
        text-transform: uppercase;
        font-size: clamp(3rem, 12vw, 9rem);
        line-height: .9;
        letter-spacing: -.01em;
        text-shadow: 0 .05em 0 rgba(0,0,0,.6);
    }

    nav {
        display: flex;
        gap: 2rem;
        margin-top: 2.5rem;
        font-family: var(--display);
        text-transform: uppercase;
        letter-spacing: .2em;

        a {
            text-decoration: none;
            padding-bottom: .25rem;
            border-bottom: 2px solid transparent;
            transition: border-color .2s, color .2s;
        }

        a:hover, a:focus-visible {
            color: var(--accent);
            border-color: var(--accent);
        }
    }
}

.years {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .35em;
    color: var(--accent);
}

/* two meshed gears: 12 and 8 teeth, so the small one turns 1.5x faster */
.gears {
    width: 7rem;
    margin-bottom: 1.5rem;
    overflow: visible;

    .gear-big {
        fill: var(--accent);
        transform-origin: 46px 46px;
        animation: spin 24s linear infinite;
    }

    .gear-small {
        fill: #d8d8d8;
        transform-origin: 106px 46px;
        animation: spin 16s linear infinite reverse;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* sections */
main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

main > section {
    padding: 4rem 0 1rem;
}

h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-align: left;

    span {
        color: var(--accent);
        font-size: 1rem;
        letter-spacing: 0;
    }

    &::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }
}

figure {
    margin: 0;
}

iframe{
    border:none;
    overflow:hidden;
}

.listen iframe.sc{
    display: block;
    width: 100%;
    max-width: 40rem;
    height: 30rem;
    margin: 0 auto;
}

.videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

    iframe.yt {
        display: block;
        width: 100%;
        aspect-ratio: 16/9;
        background: var(--panel);
    }

    figcaption {
        margin-top: .75rem;
        font-family: var(--display);
        text-transform: uppercase;
        letter-spacing: .1em;
        color: var(--muted);
    }
}

.lineup {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;

    li {
        padding: 2rem 1rem;
        background: var(--panel);
        border-top: 3px solid var(--line);
        transition: border-color .2s;
    }

    li:hover {
        border-color: var(--accent);
    }

    .role {
        display: block;
        margin-bottom: .5rem;
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .2em;
        color: var(--accent);
    }

    a {
        font-family: var(--display);
        font-size: 1.5rem;
        text-transform: uppercase;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 .25rem 1rem rgba(0,0,0,.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity .25s, transform .25s, background .2s;

    &.show {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    &:hover, &:focus-visible {
        background: #ff7733;
    }

    svg {
        width: 1.4rem;
        fill: none;
        stroke: var(--bg);
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

footer {
    padding: 4rem 1rem 2rem;
    color: var(--muted);
    font-size: .85rem;
}

@media( max-width: 64rem ) {
	.videos { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; }
	.lineup { grid-template-columns: repeat(2, 1fr); }
}

@media( max-width: 30rem ) {
	.hero nav { gap: 1.25rem; }
	.lineup { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gears path { animation: none; }
	.to-top { transition: none; }
}
