/*
 * Klorshed Records
 * An Orange amplification catalogue (1969-75) run as a doom label.
 * Black covers with one spot colour, condensed grotesque caps, cyan-ruled
 * product frames and spec boxes, real sleeves and film photographs.
 * Plain HTML and CSS. No framework, no build step.
 */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/caslon-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #141110;
  --paper: #ebe0c9;
  --ink: #1b1715;
  --ink-2: #4b423b;
  /* Accents sampled from the Klorshed logo. */
  --bone: #d2b99d;         /* the logo's lettering, on black */
  --bone-hi: #ecd1b6;
  --umber: #645544;        /* the logo's shadow tone, on paper */
  --cyan: #5c8c99;         /* Orange-catalogue rule, muted to sit with the sepias */
  --cyan-ink: #3e6b78;
  --mute: #9b8872;         /* the logo's mid sepia; secondary text on black */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --italic: "Libre Caslon Text", Georgia, serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 16px/1.5 var(--sans);
  font-stretch: 92%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--bone); }
a:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
::selection { background: var(--bone); color: var(--black); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--black); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Print texture: grain over everything, stock and solid black ink alike. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: url("/assets/print-grain.svg") repeat;
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
  opacity: .22;
}

/* ---------- Type ---------- */
.caps {
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11.5px;
  line-height: 1.3;
}
.big {
  font-weight: 850;
  font-stretch: 64%;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.005em;
}
.accent { color: var(--bone); }
.paper .accent { color: var(--umber); }
.quote { font: italic 400 clamp(20px, 2.2vw, 27px)/1.3 var(--italic); }

/* ---------- Top bar ---------- */
.bar { border-bottom: 1px solid var(--cyan); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; }
.bar-name { text-decoration: none; font-weight: 850; font-stretch: 66%; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.bar-name:hover { color: var(--paper); }
.bar nav { display: flex; gap: 2px; }
.bar nav a {
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 700;
  font-stretch: 80%;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bar nav a[aria-current="page"] { color: var(--bone); }

/* ---------- Cover (after the Orange 1970-71 black catalogue cover) ---------- */
.cover { padding: 28px 0 40px; }
.cover-frame {
  position: relative;
  border: 2px solid var(--paper);
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
}
.cover-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--cyan); pointer-events: none; }
.cover-spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 850;
  font-stretch: 62%;
  font-size: clamp(64px, 9.4vw, 132px);
  line-height: .8;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bone);
  align-self: stretch;
  text-align: right;
}
.cover-main { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-width: 0; }
.cover-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cover-top img { width: 110px; height: 110px; }
.cover-top .caps { text-align: right; color: var(--mute); }
.cover-top .caps b { display: block; color: var(--paper); font-size: 15px; letter-spacing: .14em; }
.cover-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cover-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cover-bottom .big { font-size: clamp(34px, 4.6vw, 62px); }
.cover-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Buttons: square printed tabs. */
.tab {
  display: inline-block;
  padding: 9px 14px 8px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  font-weight: 750;
  font-stretch: 80%;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.tab-solid { background: var(--bone); border-color: var(--bone); color: var(--black); }
.tab-solid:hover { background: var(--paper); border-color: var(--paper); color: var(--black); }
.paper .tab-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.paper .tab-solid:hover { background: var(--umber); border-color: var(--umber); color: var(--paper); }

/* ---------- Section heads ---------- */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 26px;
  border-bottom: 3px solid currentColor;
}
.head h2 { font-size: clamp(54px, 7vw, 96px); }
.head .caps { padding-bottom: 6px; }
.head a { text-decoration: none; }

/* ---------- Paper sections: the catalogue's product pages ---------- */
.paper {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  color: var(--ink);
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/paper-mottle.svg") repeat;
  background-size: 900px 900px;
  mix-blend-mode: multiply;
  opacity: .08;
  pointer-events: none;
}
.paper a:hover { color: var(--umber); }
section.block { padding: 56px 0 64px; }

/*
 * Releases: equal cards in catalogue-number order. Sleeve in a fixed square
 * plate, cat. no. and title, then a <details> toggle that opens the
 * Bandcamp player and a cyan-ruled spec box (Orange "technical specification").
 */
.releases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
  align-items: start;
}
.release { display: grid; gap: 12px; }
.sleeve { position: relative; display: block; background: #000; aspect-ratio: 1; }
.sleeve img { width: 100%; height: 100%; object-fit: contain; }
.release-no {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 5px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.release-no b { font-weight: 850; font-stretch: 75%; letter-spacing: .06em; }
.release h3 { font-size: clamp(34px, 3.6vw, 52px); }
.release-by { font-weight: 600; font-size: 15px; margin-top: -4px; }

.listen summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.listen summary::-webkit-details-marker { display: none; }
.listen summary .tab:hover { background: var(--umber); border-color: var(--umber); }
.listen .opened, .listen[open] .closed { display: none; }
.listen[open] .opened { display: inline; }
.player { background: #333; }
.listen-body { display: grid; gap: 12px; margin-top: 12px; }
.player { display: block; width: 100%; border: 0; background: transparent; }

.spec {
  position: relative;
  border: 2px solid var(--ink);
  padding: 14px 16px 13px;
}
.spec::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--cyan-ink); pointer-events: none; }
.spec dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 14px; line-height: 1.35; }
.spec dt { font-weight: 700; font-stretch: 85%; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--umber); padding-top: 2px; }

.releases-foot { margin-top: 30px; }

/* ---------- The band (black) ---------- */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.band-logo img { width: 100%; max-width: 560px; }
.band-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 22px; }
.band-facts span:nth-child(odd) { color: var(--bone); }
.band .quote { max-width: 32ch; }
.band .quote cite { display: block; margin-top: 10px; font: 700 11px/1 var(--sans); font-stretch: 85%; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--mute); }
.links { margin-top: 26px; border-top: 1px solid var(--cyan); }
.links a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 9px;
  border-bottom: 1px solid rgba(236, 228, 209, .2);
  text-decoration: none;
  font-weight: 750;
  font-stretch: 82%;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.links a span:last-child { color: var(--bone); }
.paper .links { border-top-color: var(--ink); }
.paper .links a { border-bottom-color: rgba(27, 23, 21, .25); }
.paper .links a span:last-child { color: var(--umber); }

/* Photo montage: tight, no polite margins. */
.montage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(90px, 9.5vw)); gap: 6px; }
.montage figure { position: relative; overflow: hidden; background: #000; }
.montage img { width: 100%; height: 100%; object-fit: cover; }
.m-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.m-f { grid-column: 3 / 5; grid-row: 1 / 3; }
.m-b { grid-column: 5 / 7; grid-row: 1 / 3; }
.m-b img { object-position: 50% 12%; }
.m-c { grid-column: 1 / 3; grid-row: 3 / 5; }
.m-d { grid-column: 5 / 7; grid-row: 3 / 5; }
.m-e { grid-column: 3 / 5; grid-row: 3 / 5; }
@media (min-width: 1300px) { .montage { grid-template-rows: repeat(4, 124px); } }
.year-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 8px 3px;
  background: var(--black);
  color: var(--paper);
  font: 700 11px/1 var(--sans);
  font-stretch: 85%;
  letter-spacing: .12em;
}

/* ---------- The label (homepage) ---------- */
.label-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.label-mark { width: 100%; max-width: 340px; }
.label-lines { font-size: clamp(30px, 3.9vw, 56px); line-height: .95; }
.label-home { margin-top: 22px; color: var(--mute); }
.label-home a { color: var(--paper); }
@media (max-width: 900px) { .label-body { grid-template-columns: 1fr; gap: 24px; } .label-mark { max-width: 220px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--cyan); padding: 26px 0 34px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.foot-id { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.foot-id img { width: 46px; height: 46px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { text-decoration: none; }

/* ---------- Page titles (photos, videos, shows, 404) ---------- */
.page-title { padding: 36px 0 30px; }
.page-title .big { font-size: clamp(64px, 11vw, 150px); }
.page-title p { margin-top: 12px; }

/*
 * Photos: a 1970s band photobook. One chapter per year, prints laid edge to
 * edge in justified rows (each print grows in proportion to its width/height,
 * --r, so every row fills the measure at an even height), with the odd
 * full-width feature print and short stories between runs of photos.
 */
.book { background: var(--paper); color: var(--ink); position: relative; isolation: isolate; }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/paper-mottle.svg") repeat; background-size: 900px 900px;
  mix-blend-mode: multiply; opacity: .08;
}
.book a:hover { color: var(--umber); }
.book-title { padding: 36px 0 18px; }
.book-title .big { font-size: clamp(64px, 11vw, 150px); }
.book-title p { margin-top: 12px; }

.yr-index {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
  padding: 10px 0 9px;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--cyan-ink);
  font-size: 13px;
}
.yr-index a { text-decoration: none; }
.yr-index a:hover { text-decoration: underline; }

.yr { padding: 34px 0 40px; scroll-margin-top: 44px; }
.yr + .yr { border-top: 3px solid var(--ink); }
.yr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.yr-no { font-weight: 850; font-stretch: 62%; font-size: clamp(96px, 15vw, 210px); line-height: .78; letter-spacing: -.01em; color: var(--ink); }
.yr-head .caps { color: var(--umber); padding-bottom: 8px; }
/* A year with no photos yet: a single line, not a full chapter. */
.yr-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; align-items: center; padding: 22px 0; }
.yr-empty .yr-head { margin: 0; }
.yr-empty .yr-no { font-size: clamp(56px, 7vw, 96px); }
.yr-empty .story { margin: 0; padding: 0; border: 0; }

.prints { display: grid; gap: 5px; }
.run { display: flex; flex-wrap: wrap; gap: 5px; }
.run::after { content: ""; flex: 999 1 0; }   /* stops a run's last row stretching */
.ph {
  position: relative;
  display: block;
  flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * 170px);
  min-width: 0;
  background: #fff;
}
.ph img { width: 100%; height: auto; aspect-ratio: var(--r, 1.5); object-fit: cover; mix-blend-mode: multiply; }
.ph:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ph-feature { margin: 14px 0; }
.ph-feature img { max-height: 88vh; object-fit: cover; }

.story { margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.story-text p { max-width: 40ch; font-weight: 500; font-stretch: 88%; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; }
.story-text p::first-letter { font-weight: 850; }
.story.placeholder .story-text p { color: var(--ink-2); opacity: .75; }
.story-photo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: center; }
.story-photo .ph { flex: none; }

/* Back to top: fixed corner tab on the long photos page. */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  padding: 11px 14px 10px; background: var(--ink); color: var(--paper);
  font: 750 13px/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--paper);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.book .to-top:hover { background: var(--umber); color: var(--paper); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Viewer (assets/lightbox.js). */
.lb { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12, 10, 9, .97); color: var(--paper); }
.lb::backdrop { background: rgba(12, 10, 9, .9); }
.lb-fig { position: absolute; inset: 52px 64px 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lb-img { width: auto; height: auto; max-width: calc(100vw - 128px); max-height: calc(100vh - 130px); object-fit: contain; }
.lb-cap { color: var(--bone); }
.lb-btn { position: absolute; background: none; border: 1.5px solid var(--paper); color: var(--paper); font: 700 14px/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--bone); border-color: var(--bone); color: var(--black); outline: none; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 10px; }

/* ---------- Videos: two sections (Pray Burner, Klorshed), equal cards ---------- */
.vid-section { padding: 10px 0 40px; scroll-margin-top: 20px; }
.vid-section .head a { color: var(--bone); }
.vid-none { font-size: clamp(30px, 4vw, 48px); color: var(--mute); }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; padding-bottom: 30px; }
.vid { display: grid; align-content: start; gap: 8px; }
.vid-play, .vid-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.vid-play:hover img, .vid-play:focus-visible img { opacity: 1; }
.vid-btn {
  position: absolute; left: 12px; bottom: 12px;
  padding: 9px 13px 8px; background: var(--bone); color: var(--black);
  font: 750 13px/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase;
}
.vid-btn::before { content: "\25B6\FE0E"; font-size: 9px; margin-right: 7px; vertical-align: 1px; }
.vid-play:hover .vid-btn { background: var(--paper); }
.vid-len { position: absolute; right: 0; bottom: 0; padding: 4px 8px 3px; background: var(--black); color: var(--paper); }
.vid-meta { display: flex; justify-content: space-between; padding: 6px 0 5px; border-top: 3px solid var(--paper); border-bottom: 1px solid var(--cyan); }
.vid-meta b { font-weight: 850; font-stretch: 75%; letter-spacing: .06em; }
.vid-title { font-weight: 850; font-stretch: 66%; font-size: clamp(30px, 3vw, 42px); line-height: .9; text-transform: uppercase; }
.vid-where { color: var(--bone); min-height: 1em; }
.vid-note { color: var(--mute); font-size: 14.5px; }

/* ---------- Shows: one row per gig, like a listings column ---------- */
.shows { margin: 0; }
.show {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 6px 22px;
  align-items: baseline;
  padding: 14px 0 13px;
  border-bottom: 1px solid rgba(236, 228, 209, .2);
}
.paper .show { border-bottom-color: rgba(27, 23, 21, .25); }
.show-date { font-weight: 800; font-stretch: 75%; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.show-up .show-date { color: var(--bone); }
.paper .show-up .show-date { color: var(--umber); }
.show-venue b { display: block; font-weight: 850; font-stretch: 66%; font-size: clamp(26px, 2.6vw, 36px); line-height: .95; text-transform: uppercase; }
.show-venue span { display: block; margin-top: 3px; font-weight: 700; font-stretch: 85%; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.paper .show-venue span { color: var(--ink-2); }
.show-bill { font-size: 15.5px; }
.show-bill b { font-weight: 600; }
.show-bill b + .show-note { display: block; }
.show-note { font-weight: 400; color: var(--mute); font-size: 14px; }
.paper .show-note { color: var(--ink-2); }
.show-tix { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-weight: 700; font-stretch: 85%; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.shows-past .show-venue b { font-size: clamp(22px, 2.1vw, 28px); }
.shows-past .show { padding: 10px 0 9px; }
.tbc { color: var(--mute); }
.show-none { font-size: clamp(30px, 4vw, 48px); padding: 6px 0; }

/* ---------- Narrow ---------- */
@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .releases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-photo { grid-template-columns: 1fr; gap: 14px; }
  .montage { grid-template-rows: repeat(4, minmax(70px, 16vw)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .bar .wrap { flex-wrap: wrap; gap: 0; padding: 8px 0; }
  .bar nav { width: 100%; justify-content: space-between; }
  .bar nav a { padding: 8px 0; font-size: 13px; }
  .cover { padding: 16px 0 28px; }
  .cover-frame { padding: 14px; gap: 12px; }
  .cover-spine { font-size: 54px; }
  .cover-top img { width: 72px; height: 72px; }
  .cover-photo { aspect-ratio: 4 / 3; }
  .cover-bottom { flex-direction: column; align-items: flex-start; }
  .cover-bottom nav { justify-content: flex-start; }
  section.block { padding: 40px 0 46px; }
  .releases { grid-template-columns: 1fr; }
  .vids { grid-template-columns: 1fr; }
  .montage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 44vw; }
  .m-a, .m-b, .m-c, .m-d, .m-e, .m-f { grid-column: auto; grid-row: auto; }
  .ph { flex-basis: calc(var(--r, 1.5) * 105px); }
  .prints, .run { gap: 4px; }
  .lb-fig { inset: 52px 8px 60px; }
  .lb-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 150px); }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .show { grid-template-columns: 1fr; gap: 4px; }
  .show-tix { justify-content: flex-start; margin-top: 6px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
