/* Nowhere: black, white, Courier. Big skull, big type, no chrome. Mobile first. */

@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b8b8b8;
  --faint: #262626;
  --accent: #f6b92b;          /* the Music With My Insane Friend yellow */
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --font: "Courier Prime", "Courier New", Courier, monospace;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 8.5rem var(--gutter) 3rem;   /* clears the skull (64px wide, ~96px tall on phones) with a gap under MENU */
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75em; }
/* Fluid so a 21-character title (Courier is 0.6em per character) stays on one line on phones from 320px up. */
h1 { font-size: clamp(1.25rem, 6.8vw, 2.25rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

a { color: var(--fg); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .5rem 1rem; }
.skip:focus { left: .5rem; }

/* ---------- the skull + slide-out menu (a <details>, so it works without JS) ---------- */

.site-header { position: absolute; top: .75rem; left: .75rem; z-index: 40; }

.menu > summary { list-style: none; cursor: pointer; display: block; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary img { display: block; position: relative; z-index: 3; width: 64px; height: auto; transition: transform .15s; }
.menu > summary:hover img { transform: rotate(-4deg) scale(1.05); }

/* Clicking the dimmed page closes the menu: the backdrop is part of the summary. */
.menu[open] > summary::before {
  content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .8); cursor: default;
}
.menu-panel {
  position: fixed; top: 0; left: 0; z-index: 2;
  width: min(30rem, 100vw); height: 100vh; height: 100dvh; overflow-y: auto;
  padding: 8rem 1.5rem 2rem;
  background: var(--bg);
  animation: slide-in .2s ease-out;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: block; padding: .3rem 0;
  font-size: clamp(1.15rem, 5vw, 1.5rem); font-weight: 700; line-height: 1.5; text-decoration: none;
}
.menu-panel a[aria-current="page"] { color: var(--accent); }
.menu-panel .ext { color: var(--muted); font-weight: 400; }
.menu-close {
  margin-top: 2.5rem; padding: .5rem 0; background: none; border: 0;
  color: var(--fg); font: 700 1.15rem var(--font); cursor: pointer;
}
.menu-close:hover { color: var(--accent); }

@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }

/* ---------- the big RELOAD / typewriter buttons ---------- */

.btn {
  display: inline-block; padding: .4rem .15rem .15rem;
  font: 400 clamp(2.5rem, 9vw, 3.25rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  border-bottom: 4px solid var(--fg);
  transition: color .15s, border-color .15s;
}
.btn:hover { color: var(--accent); border-color: var(--accent); }

/* ">> PLAY ANOTHER NOWHERE VIDEO", the old site's hand-typed button */
.btn--play {
  padding: .5rem .75rem; border: 0; max-width: 16rem;
  font: 700 1rem/1.7 var(--font); letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-3deg); transition: transform .15s, color .15s;
}
.btn--play:hover { transform: rotate(-3deg) scale(1.06); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin: 2.5rem 0 1rem; }

/* ---------- the pages ---------- */

.lead { font-size: 1.35rem; font-weight: 700; }

/* home */
.projects { display: flex; flex-direction: column; align-items: center; gap: 2.25rem; margin: 0 0 3rem; }
.project { display: block; transition: transform .15s; }
.project:hover { transform: scale(1.04); }
.project img { display: block; }

.socials { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem .9rem; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; transition: transform .15s; }
.socials a:hover { transform: scale(1.15) rotate(-4deg); }
.icon { width: 36px; height: 36px; fill: currentColor; }
.s-youtube  { color: #ff3030; }
.s-vimeo    { color: #1ab7ea; }
.s-mastodon { color: #7c7dff; }
.s-bluesky  { color: #2d8cff; }
.s-x        { color: #fff; }
.s-soundcloud { color: #ff5500; }
.s-spotify  { color: #1ed760; }
.s-itunes   { color: #ea4cc0; }

.subscribe { display: block; text-align: center; text-decoration: none; padding: 3rem 1rem; font-size: 1.25rem; font-weight: 700; }
.subscribe:hover { text-decoration: underline; }

/* generators: the old pages' CSS. Courier New, a 22px block, the label at 1.17em and the result at 1.5em
   (the old h3 and h2), and the original reload.png floated right. */
.generator { font-family: "Courier New", Courier, monospace; font-size: clamp(1.125rem, 4.8vw, 1.375rem); max-width: 56rem; margin: 0 auto; }
.generator h1 { font-family: inherit; font-size: clamp(1.25rem, 6.8vw, 2rem); margin: 0 0 clamp(2rem, 9vw, 7rem); }
.generator .lead { font-size: 1.17em; font-weight: 700; margin: 0 0 .5em; }
.generator .result--big {
  margin: 0; font-size: 1.5em; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere;
  min-height: 3.6em;                       /* room for three lines on a phone, so RELOAD doesn't jump */
}
.result--prose p { font-weight: 600; line-height: 1.6; margin: 0 0 1.1em; }
.generator .reload { display: flex; justify-content: flex-end; margin: 22px 0 0; }
.generator .reload a { display: block; line-height: 0; }
.generator .reload img { display: block; transition: opacity .15s; }
.generator .reload a:hover img { opacity: .7; }
.generator--artist .reload { margin-top: 3rem; }
.note { font-family: "Courier New", Courier, monospace; color: var(--muted); font-size: .95rem; font-style: italic; margin: 1.5rem 0 0; }
.note + .note { margin-top: .5rem; }
@media (min-width: 48rem) {
  .generator .result--big { min-height: 2.4em; }   /* two lines on desktop */
  .generator .reload { margin-right: 30px; }
}

/* video */
.video-page { max-width: 52rem; margin: 0 auto; }
.embed { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #0a0a0a; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin-top: 1rem; font-weight: 700; }
.video-page .actions { margin-top: 2rem; }
.yt-link { color: var(--muted); }

/* 404, error */
.message { max-width: 48rem; margin: 0 auto; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.pills a { display: inline-block; padding: .35rem 0; font-weight: 700; }

/* about */
.about { max-width: 46rem; margin: 0 auto; }
.about section { margin-top: 3rem; }
.about h2 { padding-bottom: .4rem; border-bottom: 1px solid var(--faint); }
.about h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--accent); }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.people img { display: block; width: 100%; max-width: 260px; margin-bottom: .75rem; }
.people p { margin: 0; color: var(--muted); }

.releases { list-style: none; margin: 0; padding: 0; }
.releases li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--faint); }
.releases .date { color: var(--muted); font-size: .95rem; }

.facts { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .1rem; margin: 1rem 0 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts dd + dt { margin-top: .6rem; }

/* footer */
.site-footer { padding: 2rem var(--gutter) 2.5rem; text-align: center; color: var(--muted); font-size: .95rem; }
.site-footer .socials { margin-bottom: 1rem; }
.site-footer p { margin: 0; }

/* ---------- wider screens ---------- */

@media (min-width: 30rem) {
  .socials { gap: .75rem 1.25rem; }
  .socials a { width: 56px; height: 56px; }
  .icon { width: 40px; height: 40px; }
  .facts { grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.5rem; }
  .facts dt { font-size: inherit; }
  .facts dd + dt { margin-top: 0; }
}

@media (min-width: 48rem) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Room for the full-size skull, like the old site. */
@media (min-width: 72rem) {
  .site-header { top: 1rem; left: 1.25rem; }
  .menu > summary img { width: 120px; }
  .menu-panel { padding-top: 15rem; padding-left: 2rem; }
  main { padding-top: 5rem; }
  .projects { gap: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
