/* The Bejesus Belt: shared styles for every page.
   Look: photocopied flyers, black ink, cheap paper, one red. */

:root {
  --ink: #0e0d0c;          /* page background */
  --ink-2: #1a1816;        /* raised surfaces */
  --ink-3: #262320;        /* borders, hover */
  --paper: #ece6da;        /* main text */
  --paper-dim: #a59f94;    /* secondary text */
  --red: #e0402f;          /* the one accent */
  --red-dim: #b3301f;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ink);
  /* faint photocopy grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--paper);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 12, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink-3);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--red); }
.site-nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--paper-dim); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--paper); }
@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; padding-top: 8px; padding-bottom: 8px; gap: 4px 16px; }
  .brand { font-size: 20px; }
  .site-nav { font-size: 12.5px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; place-items: end start; overflow: hidden; border-bottom: 3px solid var(--red); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.15) brightness(.55); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, rgba(14,13,12,.2) 55%, rgba(14,13,12,.35) 100%); }
.hero-text { position: relative; z-index: 1; padding-bottom: clamp(32px, 8vh, 80px); }
.hero h1 { font-size: clamp(56px, 13vw, 150px); line-height: .9; }
.hero h1 span { color: var(--red); display: block; }
.tagline { font-family: var(--type); font-size: clamp(18px, 2.4vw, 24px); color: var(--paper-dim); margin: 14px 0 26px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 12px 20px; border: 2px solid var(--paper);
  font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; color: var(--paper); background: transparent;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Band sections ---------- */
.band { padding: clamp(56px, 10vw, 110px) 0 0; }
.band-head { display: grid; gap: 20px; margin-bottom: 8px; }
.band-logo { width: min(460px, 90%); filter: invert(1); }  /* black logo, flipped for the dark page */
.band-name { font-size: clamp(48px, 9vw, 96px); }
.band-years { font-family: var(--type); color: var(--red); font-size: 18px; }
.prose { max-width: 68ch; color: var(--paper); }
.prose p { margin: 0 0 1em; }

.sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: clamp(48px, 7vw, 72px) 0 22px; padding-top: 18px; border-top: 1px solid var(--ink-3); }
.sub h3 { font-size: clamp(28px, 4vw, 40px); }
.sub .note { font-family: var(--type); font-size: 15px; color: var(--paper-dim); }

/* ---------- Records ---------- */
.records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.record a { display: block; text-decoration: none; }
.record img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s ease; }
.record a:hover img { transform: translateY(-4px) rotate(-.6deg); }
.record h4 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; margin: 14px 0 2px; line-height: 1.1; }
.record p { margin: 0; color: var(--paper-dim); font-size: 15px; }
.record a:hover h4 { color: var(--red); }

/* ---------- Photo gallery ---------- */
.gallery { columns: 4 150px; column-gap: 14px; }
@media (max-width: 480px) { .gallery { column-gap: 8px; } .gallery figure { margin-bottom: 8px; } }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery button { all: unset; display: block; cursor: zoom-in; position: relative; }
.gallery img { width: 100%; background: var(--ink-2); transition: filter .2s ease, transform .2s ease; filter: grayscale(.25); }
.gallery button:hover img, .gallery button:focus-visible img { filter: none; transform: scale(1.015); }
.gallery button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gallery .has-story::after {
  content: "story"; position: absolute; left: 8px; top: 8px; padding: 1px 7px;
  font: 12px var(--type); background: var(--red); color: #fff; transform: rotate(-3deg);
}

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.clips figure { margin: 0; }
.clips video { width: 100%; aspect-ratio: 4 / 3; background: #000; }
.clips figcaption { font-family: var(--type); color: var(--paper-dim); font-size: 15px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { margin-top: clamp(80px, 12vw, 140px); padding: clamp(48px, 8vw, 90px) 0; background: var(--paper); color: var(--ink); }
.contact h2 { font-size: clamp(40px, 7vw, 76px); }
.contact p { max-width: 60ch; font-size: 18px; margin: 16px 0 26px; }
.contact .btn { border-color: var(--ink); color: var(--ink); }
.contact .btn.primary { color: #fff; border-color: var(--red); }
.contact .btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.contact .addr { font-family: var(--type); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 40px; color: var(--paper-dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Photo viewer ---------- */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 7, 6, .97); color: var(--paper); }
.viewer::backdrop { background: rgba(8, 7, 6, .97); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; grid-template-areas: "bar" "stage" "caption"; }
.viewer-bar { grid-area: bar; } .viewer-stage { grid-area: stage; } .viewer-caption { grid-area: caption; }

/* Portrait photos on wide screens: caption moves to a left column so the photo can use the full height. */
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .viewer.portrait[open] { grid-template-columns: minmax(240px, 30%) 1fr; grid-template-rows: auto 1fr; grid-template-areas: "bar bar" "caption stage"; }
  .viewer.portrait .viewer-caption { align-self: center; max-height: 100%; max-width: 44ch; margin: 0 0 0 auto; padding: 0 8px 24px 28px; text-align: left; }
  .viewer.portrait .viewer-caption .story { margin-top: 14px; }
}
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font: 14px var(--type); color: var(--paper-dim); }
.viewer-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
/* The photo is pinned inside the stage so it can never spill over the caption below. */
.viewer-stage img { position: absolute; inset: 8px 56px; margin: auto; width: auto; height: auto; max-width: calc(100% - 112px); max-height: calc(100% - 16px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.viewer-caption { max-width: 70ch; max-height: 38vh; overflow-y: auto; margin: 0 auto; padding: 14px 20px 22px; text-align: center; font-size: 16px; }
.viewer-caption .story { font-family: var(--type); display: block; margin-top: 8px; color: var(--paper); white-space: pre-line; }
.viewer button { font: inherit; color: var(--paper); background: transparent; border: 0; cursor: pointer; }
.viewer .close { font-size: 30px; line-height: 1; padding: 4px 10px; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px; padding: 10px 14px; opacity: .7; }
.viewer .nav:hover { opacity: 1; color: var(--red); }
.viewer .prev { left: 4px; } .viewer .next { right: 4px; }
@media (max-width: 600px) {
  .viewer-stage img { inset: 4px 8px; max-width: calc(100% - 16px); max-height: calc(100% - 8px); }
  .viewer .nav { top: auto; bottom: 6px; transform: none; font-size: 34px; }
}

/* ---------- Album pages ---------- */
.album { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 40px; }
.back { font: 15px var(--type); color: var(--paper-dim); text-decoration: none; }
.back:hover { color: var(--red); }
.album-logo { width: min(360px, 80%); filter: invert(1); margin: 22px 0 8px; }
.album-band { font-family: var(--head); text-transform: uppercase; font-size: 28px; margin: 22px 0 8px; display: block; }
.album-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; margin-top: 20px; }
@media (max-width: 760px) {
  .album-grid { grid-template-columns: 1fr; }
  .covers { order: 2; grid-template-columns: repeat(4, 1fr); }  /* title + player first on phones */
}
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.covers a:first-child { grid-column: 1 / -1; }
.covers img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-2); }
.album h1 { font-size: clamp(36px, 6vw, 64px); }
.album h1 em { font-style: normal; color: var(--red); }
.album .meta { color: var(--paper-dim); margin: 10px 0 0; }
.album .meta a { color: var(--paper); }
.album h2 { font-size: 24px; margin: 34px 0 10px; color: var(--paper); }
.album h2 a { color: inherit; }
.album audio { width: 100%; margin: 22px 0 10px; color-scheme: dark; }
.tracks { list-style: none; counter-reset: t; margin: 0; padding: 0; border-top: 1px solid var(--ink-3); }
.tracks li { counter-increment: t; display: flex; gap: 14px; align-items: baseline; padding: 11px 6px; border-bottom: 1px solid var(--ink-3); cursor: pointer; }
.tracks li::before { content: counter(t, decimal-leading-zero); font: 14px var(--type); color: var(--paper-dim); min-width: 2ch; }
.tracks li a { text-decoration: none; color: var(--paper-dim); }
.tracks li:hover a { color: var(--paper); }
.tracks li.playing { background: var(--ink-2); }
.tracks li.playing::before { content: "▶"; color: var(--red); }
.tracks li.playing a { color: var(--paper); }
.keys { margin-top: 28px; font: 14px var(--type); color: var(--paper-dim); }
.keys kbd { font: inherit; border: 1px solid var(--ink-3); padding: 1px 7px; border-radius: 3px; color: var(--paper); }
@media (hover: none) { .keys { display: none; } }
