/* Shared by the discography and gallery pages (generated by build_site.py). The home page keeps its own
   inline copy of the tokens, nav and footer below; keep the two in step. */
:root {
  --ink: #0b0a09;
  --ink-2: #13110f;
  --ink-3: #1c1916;
  --bone: #ece5d8;
  --bone-dim: #b9b0a2;
  --bone-faint: #7d766c;
  --rule: rgba(236, 229, 216, .14);
  --gold: #c9a46a;
  --accent: var(--gold);
  --serif: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --slow: 1.2s cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 24px; display: flex; align-items: center; gap: 16px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }

h1, h2, h3 { font-family: var(--serif); font-weight: 350; margin: 0; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(35px, 5.1vw, 73px); }
h2 { font-size: clamp(27px, 3.5vw, 47px); }
p { margin: 0 0 1.2em; color: var(--bone-dim); max-width: 64ch; }
.lede { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--accent); padding: 17px 28px; border: 1px solid var(--accent);
  transition: background var(--slow), color var(--slow);
}
.btn:hover { background: transparent; color: var(--accent); }
.arrow { display: inline-block; transition: transform var(--slow); }
a:hover .arrow { transform: translateX(4px); }
.textlink {
  font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  color: var(--accent); border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; background: none; cursor: pointer;
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); background: rgb(11, 10, 9); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: none; }
.nav .mark { width: 150px; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.6vw, 40px); margin: 0; padding: 0; }
.nav ul a { font-size: 12px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); transition: color .6s; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav ul a:hover { color: var(--bone); }
.nav ul a[aria-current] { color: var(--bone); border-color: var(--accent); }
.nav .menu { display: none; background: none; border: 0; color: var(--bone); font: 400 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; padding: 10px 0; cursor: pointer; }

footer { border-top: 1px solid var(--rule); padding: 56px 0 64px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
footer img { width: 140px; opacity: .8; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; }
footer nav a { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--bone-faint); transition: color .6s; }
footer nav a:hover { color: var(--bone); }
footer small { font-size: 12px; color: var(--bone-faint); }

/* ---------- Page heads & breadcrumbs ---------- */
.page-head { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { margin-bottom: 28px; }
.page-head .lede { max-width: 46ch; }
.page-head .sub { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-faint); margin: -8px 0 28px; }
.crumbs { display: flex; gap: 12px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--accent); }
.crumbs a:hover { color: var(--bone); }

/* ---------- Chips (soundworlds) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --c: var(--gold);
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; text-decoration: none;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px;
  transition: border-color .5s, color .5s, background .5s;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip b { font-weight: 400; color: var(--bone-faint); letter-spacing: .06em; }
.chip:hover { border-color: var(--c); color: var(--bone); }
.chip[aria-pressed="true"] { border-color: var(--c); color: var(--ink); background: var(--c); }
.chip[aria-pressed="true"] i { background: var(--ink); }
.chip[aria-pressed="true"] b { color: rgba(11, 10, 9, .65); }
.chip.all { --c: var(--bone); }

/* ---------- Discography index ---------- */
.disco-head h1 em { color: var(--bone-dim); }
.toolbar { position: sticky; top: 76px; z-index: 40; background: rgb(11, 10, 9); border-bottom: 1px solid var(--rule); padding: 18px 0 0; }
.toolbar .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 16px; }
.search { flex: 1 1 320px; display: block; border-bottom: 1px solid var(--bone-faint); }
.search input { width: 100%; background: transparent; border: 0; outline: none; color: var(--bone); font: 300 19px var(--sans); padding: 10px 0; }
.search input::placeholder { color: var(--bone-faint); }
.search:focus-within { border-color: var(--bone); }
.sort { display: flex; gap: 4px; }
.sort button { background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint); padding: 8px 10px; border-bottom: 1px solid transparent; }
.sort button[aria-pressed="true"] { color: var(--bone); border-color: var(--gold); }
.count { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-faint); white-space: nowrap; }
.decades { display: flex; gap: 6px 26px; flex-wrap: wrap; padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.decades a { font-family: var(--serif); font-size: 17px; text-decoration: none; color: var(--bone-faint); transition: color .5s; }
.decades a:hover, .decades a.on { color: var(--bone); }
.decades a.off { opacity: .3; pointer-events: none; }

.disco { padding: 48px 0 clamp(96px, 12vw, 160px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 48px clamp(18px, 2vw, 30px); }

/* The discography's two views, Grid (paged) and Strata (a layer per year). */
#grid[hidden], #strata[hidden], .pager[hidden], .year-covers[hidden] { display: none; }
.view { display: flex; align-items: center; gap: 18px; }
.view-label { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.view button { display: grid; gap: 2px; text-align: left; background: none; border: 1px solid var(--gold); padding: 10px 22px 11px; cursor: pointer; color: var(--bone); font: inherit; transition: background .5s, color .5s; }
.view button + button { margin-left: -1px; }
.view b { font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.view small { font-size: 13px; color: var(--bone-dim); transition: color .5s; }
.view button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.view button[aria-pressed="true"] small { color: var(--ink); }
.view button:focus-visible, .pager button:focus-visible, .band:focus-visible { outline: 2px solid #8fc1d4; outline-offset: 3px; }
.year-covers:focus { outline: none; }   /* the script moves focus here when a year opens; the albums inside show their own */

.strata { list-style: none; margin: 0; padding: 0; }
/* Each year a full-width layer, its releases sharing the
   width, the layer as thick as the year is full; dark seams between layers. */
.layer { border-top: 1px solid rgba(0, 0, 0, .55); }
.band { width: 100%; display: grid; grid-template-columns: 5rem minmax(0, 1fr) 7.5rem; align-items: stretch; gap: 18px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.band:disabled { cursor: default; }
.band .yr, .band .n { align-self: center; font-size: 15px; color: var(--bone-dim); font-variant-numeric: tabular-nums; transition: color .3s; }
.band .n { text-align: right; }
.band:hover .yr, .band[aria-expanded="true"] .yr, .band:focus-visible .yr { color: var(--bone); }
.band .sed { display: flex; height: calc(10px + min(var(--n), 8) * 9px + max(var(--n) - 8, 0) * 1px); min-height: 12px; }  /* past 8 releases a year thickens more slowly */
.band .seg { flex: 1; background: var(--s); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.35); transition: background .8s ease, opacity .8s ease, filter .4s; }
.band .seg + .seg { margin-left: 1px; }
.band:hover .seg { filter: brightness(1.25); }
/* Filtering: what matches shows as a vein in the soundworld's colour; the rest of the rock dims. */
.strata.filtering .seg { opacity: .2; }
.strata.filtering .seg.vein { opacity: 1; background: var(--vein, var(--s)); box-shadow: 0 0 18px -2px var(--vein, transparent); }
.layer.none .yr, .layer.none .n { opacity: .45; }
.year-covers { padding: 28px 0 44px 6.1rem; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
.pager button { background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; font-family: var(--serif); font-size: 17px; color: var(--bone-dim); padding: 4px 12px; transition: color .5s, border-color .5s; }
.pager button:hover { color: var(--bone); }
.pager button[aria-current="page"] { color: var(--bone); border-color: var(--gold); }
.pager .step { font: 400 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; padding: 10px 14px; }
.pager .step:disabled { opacity: .35; cursor: default; }
.grid.six { grid-template-columns: repeat(6, 1fr); }
.decade {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 24px;
  border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 24px; scroll-margin-top: 300px;
}
.decade:first-child { margin-top: 0; }
.decade h2 { font-size: clamp(32px, 4vw, 51px); }
.decade span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint); }

.card { --c: var(--gold); text-decoration: none; display: block; }
.card figure { margin: 0 0 16px; position: relative; aspect-ratio: 1; background: var(--ink-3); overflow: hidden; }
.card figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform var(--slow); }
.card img, .nocover { width: 100%; height: 100%; object-fit: contain; transition: transform var(--slow), filter var(--slow); filter: saturate(.92); }
.card:hover img { transform: scale(1.035); filter: saturate(1.06); }
.card:hover figure::after { transform: scaleX(1); }
.card .t { font-family: var(--serif); font-size: 16px; line-height: 1.2; display: block; transition: color .5s; }
.card:hover .t { color: var(--c); }
.card .k, .card .w { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); margin-top: 7px; }
.card .w { letter-spacing: .06em; text-transform: none; font-size: 13px; color: var(--bone-dim); margin-top: 3px; }
.nocover { display: grid; place-items: center; padding: 18px; text-align: center; font-family: var(--serif); font-size: 17px; color: var(--bone-dim); background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink-2)); }
.empty { text-align: center; margin: 80px auto; }

/* ---------- Album page ---------- */
.album-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 8vw, 110px); }
.backdrop { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(70px) saturate(1.2); opacity: .32; transform: scale(1.1); }
.album-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.2), var(--ink) 96%); }
.album-hero .wrap { position: relative; z-index: 1; }
.album-hero .grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.album-cover { margin: 0; }
.album-cover img, .album-cover .nocover { width: 100%; aspect-ratio: auto; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9); }
.album-cover .nocover { aspect-ratio: 1; }
.album-info h1 { font-size: clamp(33px, 4.3vw, 62px); margin-bottom: 14px; }
.album-info .with { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--bone-dim); margin: 0 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 30px 0 26px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 2px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 17px; }
.album-info .chips { margin-bottom: 30px; }
.bc-player { display: block; width: 100%; height: 122px; margin-bottom: 26px; }
.unavail { font-size: 15px; }
.unavail a { color: var(--accent); }

.notes { padding: clamp(40px, 6vw, 80px) 0; }
.notes .grid { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(24px, 5vw, 80px); }
.notes .eyebrow { position: sticky; top: 110px; align-self: start; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--bone-dim); max-width: none; }
.prose > p:first-child { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--bone); }
.prose h1, .prose h2, .prose h3 { font-size: 22px; margin: 1.6em 0 .6em; color: var(--bone); }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.prose strong { font-weight: 500; color: var(--bone); }
.prose blockquote { margin: 1.5em 0; padding-left: 22px; border-left: 1px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 17px; }

.extras { padding-bottom: clamp(40px, 6vw, 80px); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.extra-grid figure { margin: 0; background: var(--ink-2); }
.extra-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }

.steps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--rule); }
.step { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.step.next { flex-direction: row-reverse; text-align: right; }
.step img, .step .nocover { width: 76px; height: 76px; object-fit: cover; font-size: 11px; padding: 4px; }
.step small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.step b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.2; }
.step em { font-style: normal; font-size: 13px; color: var(--bone-faint); }
.step:hover b { color: var(--accent); }

.related { background: var(--ink-2); padding: clamp(64px, 8vw, 110px) 0; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
.related-head .eyebrow { margin: 0; }

/* ---------- Gallery ---------- */
.collections { padding-bottom: clamp(96px, 12vw, 160px); }
.collection { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; text-decoration: none; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.collection.flip { grid-template-columns: 5fr 7fr; }
.collection.flip figure { order: 2; }
.collection figure { margin: 0; overflow: hidden; }
.collection img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 2.4s cubic-bezier(.22,.61,.36,1), filter var(--slow); filter: saturate(.9) brightness(.92); }
.collection:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.collection h2 { margin-bottom: 18px; }

.gallery-head { padding-bottom: 32px; }
.masonry-wrap { padding-bottom: clamp(64px, 8vw, 110px); }
.masonry { columns: 3 340px; column-gap: 16px; }
.ph { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow), opacity var(--slow); opacity: .92; }
.ph:hover img { transform: scale(1.03); opacity: 1; }
.ph:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.next-collection { border-top: 1px solid var(--rule); }
.next-collection a { display: block; text-decoration: none; padding: clamp(56px, 7vw, 96px) 0; }
.next-collection p:last-child { margin: 12px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint); }
.next-collection h2 { transition: color .6s; }
.next-collection a:hover h2 { color: var(--gold); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 5, 5, .97); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade .5s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 0 24px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; transition: opacity .5s; }
.lightbox img.loading { opacity: 0; }
.lightbox figcaption { display: flex; gap: 32px; justify-content: space-between; width: min(100%, 900px); margin-top: 18px; font-size: 14px; color: var(--bone-dim); }
.lb-n { font-size: 11px; letter-spacing: .24em; color: var(--bone-faint); white-space: nowrap; }
.lightbox button { background: none; border: 0; color: var(--bone-dim); cursor: pointer; font-size: 26px; height: 100%; transition: color .4s; }
.lightbox button:hover { color: var(--bone); }
.lb-close { position: absolute; top: 18px; right: 24px; height: auto !important; font-size: 12px !important; letter-spacing: .26em; text-transform: uppercase; z-index: 2; padding: 8px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid.six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav ul { display: none; }
  .nav .menu { display: block; }
  .nav .mark { width: 128px; }
  .nav.open ul { display: flex; flex-direction: column; gap: 22px; position: absolute; top: 76px; left: 0; right: 0; padding: 32px var(--gutter) 40px; background: var(--ink); border-bottom: 1px solid var(--rule); }
  .toolbar { position: static; }
  .chips.row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips.row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .view { width: 100%; }
  .view-label { display: none; }
  .view button { flex: 1; padding: 10px 14px; }
  .band { grid-template-columns: 3.4rem minmax(0, 1fr) 2rem; gap: 10px; }
  .band .n .w { display: none; }
  .year-covers { padding-left: 0; }
  .card .t { font-size: 15px; }
  .decade { scroll-margin-top: 90px; }
  .album-hero .grid, .notes .grid, .collection, .collection.flip { grid-template-columns: 1fr; }
  .collection.flip figure { order: 0; }
  .notes .eyebrow { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > .textlink { display: none; }
  .step img, .step .nocover { width: 56px; height: 56px; }
  .step b { font-size: 15px; }
  .grid.six { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; column-gap: 10px; }
  .ph { margin-bottom: 10px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 10px; height: 48px; width: 64px; z-index: 2; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lightbox figure { padding: 56px 12px 72px; }
  .lightbox figcaption { flex-direction: column; gap: 6px; }
  footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
