/* business casual: shared styles for the archive pages (releases, release, artists, artist) */
:root {
  --teal: #2b9e9b;          /* logo, dividing lines, underlines, buttons */
  --orange: #e95d2a;        /* format notes on covers (cassette / cd / vinyl) */
  --pink: #d95096;          /* subscriber notes */
  --white: #fff;
  --bg: #fff;
  --ink: #000;              /* text */
  --soft: rgba(0, 0, 0, .58);
  --faint: rgba(0, 0, 0, .12);
  --box: rgba(43, 158, 155, .07);
  --placeholder: #e9f1f1;   /* behind covers while they load */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }   /* links to #sections land below the fixed header */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* iPhones turned sideways: keep everything clear of the notch (0 everywhere else) */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
a { color: var(--ink); text-decoration-color: var(--teal); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--teal); color: var(--white); }

/* the header is in header.css */

/* one content width for every page; the header lines its logo and menu up with these edges (header.css) */
main { width: 100%; max-width: 975px; margin: 0 auto; padding: 2rem 1.5rem 4rem; flex: 1; }   /* 975px: the width of a bandcamp page header */
.page-title { font-size: 1.8rem; line-height: 1.1; font-weight: normal; text-transform: lowercase; margin-bottom: .35rem; }
.page-sub { font-size: .85rem; color: var(--soft); text-transform: lowercase; }
.lower { text-transform: lowercase; }
.muted { color: var(--soft); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.rule { border: 0; border-top: 5px solid var(--teal); margin: 2rem 0; }
.loading, .empty { padding: 3rem 0; text-align: center; color: var(--soft); text-transform: lowercase; font-size: .9rem; }

/* ── filters ── */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.5rem 0 1.25rem; }
/* the search box, drop downs and format squares are all one height */
.filters { --ctl: 38px; }
.filters input[type=search], .filters select {
  background: transparent; border: 2px solid var(--teal); padding: 0 .7rem; height: var(--ctl); font-size: .85rem;
  text-transform: lowercase; border-radius: 0; outline: none;
}
.filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.filters input[type=search]::placeholder { color: var(--soft); }
.filters input:focus, .filters select:focus { border-color: var(--ink); }
.filters select option { color: #000; }
.filters .count { font-size: .8rem; color: var(--soft); margin-left: auto; text-transform: lowercase; }
.filter-more { display: contents; }
@media (max-width: 760px) {
  /* search and count on the first line, the drop downs and format squares on the next */
  .filters input[type=search] { flex: 1 1 0; }
  .filters .count { order: 1; white-space: nowrap; }
  .filter-more { order: 2; display: flex; flex-wrap: wrap; gap: .6rem; flex-basis: 100%; }
}
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--teal); background: transparent; padding: .35rem .7rem; font-size: .8rem; cursor: pointer;
  text-transform: lowercase; text-decoration: none; line-height: 1.2;
}
.chip:hover { background: var(--teal); color: var(--white); }
.chip[aria-pressed=true] { background: var(--teal); color: var(--white); }
/* format filters drawn as icons: square, as tall as the word chips beside them */
.chip.fmt { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: var(--ctl, 31px); height: var(--ctl, 31px); color: var(--teal); }
.chip.fmt:hover, .chip.fmt[aria-pressed=true] { color: var(--white); }
.chip.fmt .icon { width: 60%; height: 60%; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* ── release grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem 1.1rem; }
.card { text-decoration: none; display: block; min-width: 0; }
.card .cover { position: relative; aspect-ratio: 1; background: var(--placeholder); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .cover img { transform: scale(1.04); }
.card .cover .badges { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: flex-end; }
.badge { background: var(--orange); color: var(--white); font-size: .68rem; padding: .15rem .4rem; text-transform: lowercase; }
.badge.sub { background: var(--pink); }
.badge.icons { display: flex; align-items: center; gap: .3rem; padding: .25rem .35rem; }
/* word badges on covers ("coming soon", "discontinued") are as tall as the icon ones */
.card .cover .badge, .facts .badge { display: flex; align-items: center; height: calc(15px + .5rem); }
.badge.icons .icon { width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.sub-note { margin-top: 1rem; font-size: .85rem; border-left: 5px solid var(--pink); padding: .4rem 0 .4rem .8rem; text-transform: lowercase; }
/* discontinued releases: the same note and cover badge, in black */
.badge.gone { background: var(--ink); }
/* releases dated after today */
.badge.soon { background: var(--teal); }
.sub-note.soon { border-left-color: var(--teal); }
.sub-note.gone { border-left-color: var(--ink); }
.chip.sub[aria-pressed=true] { background: var(--pink); border-color: var(--pink); color: var(--white); }
/* formats turn orange when picked, like their badges on the covers */
.chip.fmt:not(.sub)[aria-pressed=true] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.card .cat { font-size: .7rem; color: var(--soft); margin-top: .5rem; }
.card .title { font-size: .9rem; line-height: 1.25; margin-top: .1rem; overflow-wrap: anywhere; }
.card .artist { font-size: .8rem; color: var(--soft); overflow-wrap: anywhere; }
.card:hover .title { color: var(--teal); }
.year-head { grid-column: 1 / -1; font-size: 1.1rem; border-bottom: 5px solid var(--teal); padding-bottom: .35rem; margin-top: .75rem; }
.more { display: block; margin: 2rem auto 0; }
.more[hidden] { display: none; }

/* ── release page ── */
/* the back button sits over the cover, level with the catalog number, so the cover starts level with the title */
.release { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "back head" "art main"; gap: 0 2.5rem; align-items: start; }
.release > .back-row { grid-area: back; }
.release > .head { grid-area: head; align-self: center; }
.release > .art { grid-area: art; }
.release > .main { grid-area: main; }
.release > .back-row:not(:empty), .release > .head:not(:empty) { margin-bottom: .6rem; }
.release .head .mono { font-size: .8rem; }
.release .art { position: sticky; top: 6.5rem; }   /* below the sticky header */
.back { border: 2px solid var(--teal); background: transparent; color: var(--ink); padding: .3rem .7rem; font: inherit; font-size: .8rem;
  text-transform: lowercase; cursor: pointer; line-height: 1.2; }
.back { display: inline-flex; align-items: center; gap: .45em; }
.back .tri.left { width: .65em; height: .75em; color: var(--teal); clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.back:hover { background: var(--teal); color: var(--white); }
.back:hover .tri.left { color: var(--white); }
.release .art img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--placeholder); }
.release h1 { font-size: 2rem; line-height: 1.1; font-weight: normal; overflow-wrap: anywhere; }
.release .by { font-size: 1.1rem; margin-top: .4rem; }
.release .by a { text-decoration-color: var(--teal); text-underline-offset: 4px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin-top: .9rem; font-size: .8rem; color: var(--soft); text-transform: lowercase; }
.facts.rows { flex-direction: column; align-items: flex-start; gap: .25rem; }
.facts .tags-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .15rem; }
.fmt-icons { display: inline-flex; align-items: center; gap: .45rem; }
.fmt-icons .icon { width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.section-h { font-size: .8rem; text-transform: lowercase; color: var(--soft); border-bottom: 5px solid var(--teal); padding-bottom: .35rem; margin: 2rem 0 .75rem; }
.tracklist { list-style: none; }
.tracklist li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--faint); font-size: .9rem; }
.tracklist .n { color: var(--soft); font-size: .8rem; padding-top: .1rem; }
.tracklist .ta { color: var(--soft); }
.tracklist .ta a { color: var(--ink); text-decoration-color: var(--teal); }
.tracklist .ta a:hover { color: var(--teal); }
.tracklist .d { color: var(--soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tracklist .total { border-bottom: 0; color: var(--soft); font-size: .8rem; }
.about { font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: .4rem; }
.icon-btn.link-icon { flex: none; width: 40px; height: 40px; }   /* artist links: the site's logo, or a globe */
.link-group + .link-group { margin-top: .9rem; }
.link-group .who { font-size: .8rem; color: var(--soft); margin-bottom: .35rem; text-transform: lowercase; }
.phys li { list-style: none; padding: .45rem 0; border-bottom: 1px solid var(--faint); font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; }
.phys .st { font-size: .75rem; text-transform: lowercase; color: var(--soft); white-space: nowrap; }
.phys .st.sold { color: var(--white); background: var(--orange); padding: 0 .4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; text-transform: lowercase; color: var(--soft); }
.tags { gap: .4rem; }
.tags .chip { color: var(--ink); }
.tags .chip:hover { color: var(--white); }
.tag-filter { display: flex; align-items: center; gap: .5rem; margin: -.5rem 0 1.25rem; font-size: .8rem; color: var(--soft); text-transform: lowercase; }
.tag-filter[hidden] { display: none; }
.buy { display: inline-block; margin-top: 1.25rem; background: var(--teal); color: var(--white); text-decoration: none; padding: .6rem 1.1rem; font-size: .85rem; text-transform: lowercase; }
.buy:hover { background: var(--ink); color: var(--white); }
.buttons { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.buttons .buy { margin-top: 0; }
/* play buttons put the release in the player bar at the bottom (BIZ.play in site.js) */
.tri { display: inline-block; width: .6em; height: .7em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.buy.play { border: 0; cursor: pointer; background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.buy.play { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 40px; height: 40px; }   /* square, as tall as the bandcamp button */
.buy.play .tri { width: .75em; height: .85em; margin-left: .1em; }
.buy.bc { display: inline-flex; align-items: center; gap: .5em; }
.buy.bc .icon { width: 1.3em; height: 1.3em; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.buy.play:hover { background: var(--teal); color: var(--white); }
.tracklist.playable li { grid-template-columns: 1.6rem 1.6rem 1fr auto; }
.tplay { width: 1.35rem; height: 1.35rem; border: 2px solid var(--teal); background: transparent; color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding-left: 2px; font-size: .75rem; }
.tplay:hover, .tplay:focus-visible { background: var(--teal); color: var(--white); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .85rem; text-transform: lowercase; }
.pager a { text-decoration: none; max-width: 48%; }
.pager .next { text-align: right; margin-left: auto; }
.pager small { display: block; color: var(--soft); font-size: .72rem; }

/* ── artists ── */
/* centered, in even lines (--per letters on each, set by balanceLetters() in artists.html) */
.letters { display: grid; grid-template-columns: repeat(var(--per, 28), auto); justify-content: center; gap: .2rem .6rem;
  font-size: .85rem; margin-bottom: 1.5rem; text-transform: lowercase; }
.letters a { text-decoration: none; text-align: center; min-width: 1.1em; }
.artist-index { columns: 4 220px; column-gap: 2rem; }
.artist-index .letter { font-size: 1.1rem; border-bottom: 5px solid var(--teal); margin: 0 0 .5rem; padding-top: .6rem; break-after: avoid; }
.artist-index .group { break-inside: avoid-column; margin-bottom: 1.25rem; }
.artist-index a { display: flex; justify-content: space-between; gap: .75rem; text-decoration: none; font-size: .9rem; padding: .12rem 0; }
.artist-index a span { color: var(--soft); font-size: .75rem; }
.artist-index a:hover span { color: var(--teal); }
.artist-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.artist-head img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; background: var(--placeholder); flex: none; }
.artist-head h1 { font-size: 2.2rem; line-height: 1.05; font-weight: normal; overflow-wrap: anywhere; }
.bio { max-width: 680px; font-size: .95rem; margin-top: 1.25rem; white-space: pre-line; }

/* ── box pages (home, contact): stacked boxes with button rows between them ── */
.boxes { display: grid; gap: 1.75rem; }
.box { background: var(--box); border-top: 5px solid var(--teal); padding: 1.5rem; min-width: 0; }
/* colour variants: the line on top and a light tint of the same colour behind */
.box.pink { border-top-color: var(--pink); background: rgba(217, 80, 150, .08); }
.box.orange { border-top-color: var(--orange); background: rgba(233, 93, 42, .08); }
/* flat boxes: edge to edge with the page, no fill, just the coloured line on top */
.box.flat { background: none; padding: 1.25rem 0 0; }
.box.flat.no-line { border-top: 0; padding-top: 0; }
.box.flat.line-below { border-bottom: 5px solid var(--teal); padding-bottom: 1.25rem; }   /* a teal line under it too */
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; text-transform: lowercase; }
.box-head h2 { font-size: 1.15rem; font-weight: normal; }
.box-head .side { font-size: .8rem; color: var(--soft); }
.box-head a.side { color: var(--ink); text-decoration: none; }
.box-head a.side:hover { color: var(--teal); }
.box-text p { font-size: .9rem; line-height: 1.8; text-transform: lowercase; margin-bottom: .85rem; max-width: 760px; }
.box-text p:last-child { margin-bottom: 0; }
/* button rows stay on one line: on narrow phones the buttons shrink instead of wrapping */
.actions { display: flex; gap: min(.6rem, 1.6vw); justify-content: center; }
.action { display: inline-block; flex: 0 1 auto; min-width: 0; white-space: nowrap; border: 2px solid var(--teal); padding: .6rem min(1.1rem, 2.8vw); font-size: min(.85rem, 3.5vw); text-decoration: none; text-transform: lowercase; }
.action:hover { background: var(--teal); color: var(--white); }
/* platform logos (assets/icons, from simple-icons): drawn in the text colour so hover works like the other buttons */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 52px; min-width: 0; aspect-ratio: 1; border: 2px solid var(--teal); color: var(--teal); }
.icon-btn:hover { background: var(--teal); color: var(--white); }
.icon-btn .icon { width: 46%; height: 46%; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
@media (max-width: 760px) { .box { padding: 1.1rem; } }

/* ── footer ── */
.footer { text-align: center; padding: 2rem 1.5rem 2.5rem; font-size: .78rem; text-transform: lowercase; }
.footer a { color: var(--teal); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .logo { display: block; width: 30px; height: 30px; margin: .9rem auto 0; background: var(--teal);
  -webkit-mask: url(/assets/bizlogo.svg) center / contain no-repeat; mask: url(/assets/bizlogo.svg) center / contain no-repeat; }
.footer .logo:hover { background: var(--ink); }

@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; grid-template-areas: "back" "art" "head" "main"; }
  .release .art { position: static; max-width: 460px; margin-bottom: 1.5rem; }
  .release h1 { font-size: 1.6rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.25rem .9rem; }
}
@media (max-width: 420px) {
  main { padding: 1.5rem 1rem 3rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
