/* anting.co.uk/releases — release grid and release detail pages.
   Loaded after anting-home.css, which supplies the tokens, header and footer.

   Proportions are copied from the site's WordPress-exported interior pages
   (measured on /works/, /press/, /lost-communications/):
     body text            18px / 1.65
     wide content column  1000px max-width, 30px side padding -> 940px of content
     tile rows            455px tiles (2-up), 30px gutter, 1px rgba(255,255,255,.1)
                          hairline border, square corners, 1.045 image zoom on hover
     cards / small caps   12.48px (0.78rem), letter-spacing .28em, uppercase, #9aa3ad
     section headings     h2 32px/600, h3 24px/600 (letter-spacing .03em)
     vertical rhythm      72px header -> ~102px first line -> ~169px first tile block
*/

/* interior pages set body copy at 18px; the homepage uses 17px */
body {
  font-size: 18px;
}

.releases-main,
.release-main {
  padding-top: 30px;
}

/* anting-home.css gives .container a 1080px (homepage) width; interior pages
   use the WordPress "wide" layout instead: 1000px max-width, 30px gutters,
   which leaves 940px of content — the column /works/ tiles are sized against. */
.releases-main > .container,
.release-main > .container {
  max-width: 1000px;
  padding: 0 30px;
}

/* The WordPress export wraps everything — header and footer included — in 30px
   of root padding, and that padding is what every interior page's layout is
   measured against. Without it the header hugs the window 30px closer than on
   /works/ at any width below ~1250px. */
body {
  padding-inline: min(5vw, 30px);
}

/* ---------- page head ---------- */
.page-head {
  margin-bottom: 46px;
  text-align: center;
}

/* the site hides page titles visually (see .wp-block-post-title in
   anting-theme.css) and lets the content speak; keep the h1 for a11y + SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.works-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* the line that introduces the singles, after the album mosaic — same voice as
   the one at the top of the page, spaced off the tiles above and below */
.release-divider {
  margin: 72px auto 46px;
  text-align: center;
}

/* ---------- GO TO LIVE ----------
   /works/ closes with one outlined button — GO TO RELEASES — which
   anting-theme.css styles through .entry-content > .wp-block-buttons. The
   /releases/ pages do not load that stylesheet, so the same metrics are
   reproduced here: transparent fill, 1px current-colour border, 6px radius,
   tracked 0.78rem caps, inverting to a solid fill on hover. */
.releases-cta {
  /* the 120px below the button is /works/: its GO TO RELEASES button sits 120px
     above the footer's top edge, measured at 1440px wide */
  margin: 54px 0 120px;
}

.releases-cta .wp-block-buttons {
  display: flex;
  justify-content: center;
}

.releases-cta .wp-block-button__link {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--fg);
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.releases-cta .wp-block-button__link:hover,
.releases-cta .wp-block-button__link:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- tiles ----------
   Built to match /works/: one continuous mosaic of cover blocks, 30px gutters,
   an 11px vertical gap, and the release name inside the tile over the same
   bottom-up scrim the theme uses for its covers. */
.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 30px;
  padding: 0;
  list-style: none;
}

.release-tile a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
}

.tile-art,
.tile-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.tile-art img {
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* the editorial bottom-up scrim from anting-theme.css */
.release-tile a::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.82) 0%,
    rgba(10, 10, 12, 0.25) 55%,
    rgba(10, 10, 12, 0.4) 100%
  );
  pointer-events: none;
}

.release-tile a:hover .tile-art img,
.release-tile a:focus-visible .tile-art img {
  transform: scale(1.045);
}

.tile-label {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 36px;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(0.8rem, 1.35vw, 1.05rem);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 9px;
  text-decoration-color: var(--accent-deep);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.release-tile a:hover .tile-label,
.release-tile a:focus-visible .tile-label {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- release detail ---------- */
.backlink {
  margin-bottom: 34px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.backlink a:hover {
  color: var(--accent);
}

.release {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.release-art {
  position: sticky;
  top: 100px;
}

.release-art img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.release-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.release-info h1 {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.release-artist {
  margin-top: 12px;
  color: var(--fg-dim);
}

.release-date {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.release-tags li {
  padding: 4px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- listen links ----------
   Quiet typographic links, matching how the rest of the site links out
   (underlined, accent-tinted) rather than a grid of bordered buttons. */
.release-listen {
  margin-top: 30px;
}

.listen-label {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.listen-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 0;
  padding: 0;
  list-style: none;
}

.listen-links li + li::before {
  content: '\00b7';
  margin: 0 10px;
  color: var(--fg-faint);
}

.listen-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(126, 224, 216, 0.45);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.listen-link:hover,
.listen-link:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* a platform whose exact release URL is not resolved yet: still usable, but it
   lands on the artist page / a search and is deliberately quieter */
.listen-link.is-fallback {
  color: var(--fg-dim);
  text-decoration-color: rgba(255, 255, 255, 0.22);
}

.listen-link.is-fallback:hover,
.listen-link.is-fallback:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- bandcamp player ---------- */
.bandcamp-player {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-raised);
}

/* ---------- description, tracklist, credits ---------- */
.release-about {
  margin-top: 40px;
}

.release-about p {
  margin-bottom: 1.05em;
}

.release-about p:last-child {
  margin-bottom: 0;
}

.release-about a,
.release-credits a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(126, 224, 216, 0.45);
}

.release-about a:hover,
.release-credits a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.release-about blockquote {
  margin: 1.5em 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--accent-deep);
  font-style: italic;
  color: var(--fg-dim);
}

/* ---------- press ----------
   Curated quotes, in the same blockquote treatment the Bandcamp description
   already uses (accent bar, italic), so a page never has two competing ways of
   setting a quotation. The attribution line borrows the export's tracked small
   caps for the publication name, then drops to plain quiet text for the rest. */
.release-press {
  margin-top: 44px;
}

.press-list {
  padding: 0;
  list-style: none;
}

.press-item + .press-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.press-quote {
  margin: 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--accent-deep);
  font-style: italic;
}

.press-quote p {
  margin-bottom: 0;
}

.press-original {
  margin-top: 0.6em;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--fg-faint);
}

.press-credit {
  margin-top: 0.8em;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--fg-faint);
}

.press-credit cite {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.press-credit cite a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(126, 224, 216, 0.45);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.press-credit cite a:hover,
.press-credit cite a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.press-credit .press-via a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.22);
}

.press-credit .press-via a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.press-stars {
  color: var(--accent);
  letter-spacing: 0.1em;
}

.press-note {
  margin-top: 0.6em;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-faint);
}

.release-tracks,
.release-vinyl,
.release-credits {
  margin-top: 44px;
}

.release-press h2,
.release-tracks h2,
.release-vinyl h2,
.release-credits h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tracklist {
  padding: 0;
  list-style: none;
}

.tracklist li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.track-n {
  width: 1.9em;
  flex: none;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}

.track-name {
  flex: 1;
}

.track-name a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(126, 224, 216, 0.35);
}

.track-name a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.track-time {
  flex: none;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}

.release-credits ul {
  padding: 0;
  list-style: none;
  color: var(--fg-dim);
}

.release-credits li {
  padding: 5px 0;
}

/* ---------- vinyl ---------- */
.release-vinyl {
  margin-top: 44px;
}

.vinyl-block {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.vinyl-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vinyl-title {
  font-weight: 600;
  line-height: 1.4;
}

.vinyl-meta {
  margin-top: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.vinyl-buy {
  margin-top: 16px;
}

.vinyl-buy a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(126, 224, 216, 0.45);
}

.vinyl-buy a:hover,
.vinyl-buy a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.vinyl-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--fg-faint);
}

.vinyl-copy p {
  margin-bottom: 0.9em;
  color: var(--fg-dim);
}

.vinyl-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- prev / next ---------- */
.release-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.release-nav-link {
  max-width: 45%;
  color: var(--fg-dim);
}

.release-nav-link:hover {
  color: var(--accent);
}

.release-nav-link.next {
  margin-left: auto;
  text-align: right;
}

/* ---------- About submenu ----------
   Measured off the live /works/ header: 200px panel on a --bg-raised background
   with a 1px --border, items 12.48px tracked uppercase at 6.24px 12.48px. */
/* measured off the live export header: 30px between nav items, the li strut at
   the link size so the row centres on the same baseline, chevron 11px + 4px */
.main-nav ul {
  gap: 30px;
}

.main-nav li {
  font-size: 0.78rem;
  line-height: 1.65;
}

.main-nav .has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav .sub-toggle {
  display: grid;
  place-items: center;
  width: 11px;
  height: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--fg);
  cursor: pointer;
}

.main-nav .sub-toggle svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  gap: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
}

.main-nav .has-sub:hover .sub-menu,
.main-nav .has-sub:focus-within .sub-menu,
.main-nav .has-sub.open .sub-menu {
  display: flex;
}

.main-nav .sub-menu li {
  width: 100%;
}

.main-nav .sub-menu a {
  display: block;
  padding: 6.24px 12.48px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible {
  color: var(--accent);
}

/* on the collapsed mobile nav the submenu sits inline under About */
@media (max-width: 599px) {
  .main-nav .has-sub {
    display: block;
  }

  .main-nav .sub-menu {
    position: static;
    display: flex;
    min-width: 0;
    margin-top: 6px;
    border: 0;
    background: none;
  }

  .main-nav .sub-menu a {
    padding: 4px 0;
    color: var(--fg-dim);
  }

  .main-nav .sub-toggle {
    display: none;
  }
}

/* ---------- header below 900px ----------
   anting-home.css (the homepage's header) collapses the nav at 900px and hides
   the social row at 760px. The exported pages behave differently: the nav stays
   visible until 600px and the header row simply wraps, which is why /works/ is
   117px tall between ~760 and ~860px, with the social circles on a second line.
   Reproduced here so the header behaves like the rest of the site. */
@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 30px;
    padding-block: 14px;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border-bottom: 0;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .main-nav a {
    font-size: 0.78rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* the export's navigation block collapses at 600px */
@media (max-width: 599px) {
  .main-nav ul {
    display: none;
  }

  .main-nav.open {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 18px 24px 26px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .main-nav.open a {
    font-size: 1rem;
  }

  .main-nav.open .has-sub {
    display: block;
  }

  .menu-toggle {
    display: block;
  }
}

/* ---------- responsive: mirror /works/, which goes 2-up -> 1-up ---------- */
@media (max-width: 860px) {
  .release {
    grid-template-columns: 1fr;
  }

  .release-art {
    position: static;
    max-width: 455px;
  }
}

/* WordPress stacks its column blocks at 781px — tiles go full width there */
@media (max-width: 781px) {
  .release-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* the export scales its root padding down on small screens (30 -> ~20px) */
@media (max-width: 600px) {
  .releases-main > .container,
  .release-main > .container {
    padding: 0 20px;
  }

  /* the tracked lines sit in the root padding rather than inside the wide
     column, exactly as the export lays out .works-intro */
  .page-head,
  .release-divider {
    margin-inline: -20px;
  }
}

@media (max-width: 700px) {
  .vinyl-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vinyl-photo {
    max-width: 260px;
  }

  .release-divider {
    /* block margins only — the inline margin is set per breakpoint above */
    margin-block: 52px 34px;
  }

  .release-info h1 {
    font-size: 1.65rem;
  }

  .release-press h2,
  .release-tracks h2,
  .release-vinyl h2,
  .release-credits h2 {
    font-size: 1.3rem;
  }

  .release-nav-link {
    max-width: 100%;
  }

  .release-nav-link.next {
    margin-left: 0;
    text-align: left;
  }
}
