/* Start page of the band site: the current release first, then concerts and links.
   Only used by index.php - the other pages keep css/styles.css. */

@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/red-hat-display-v14-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/red-hat-display-v14-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/red-hat-display-v14-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/red-hat-display-v14-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'FDIO Icons Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/fa-brands-400.woff2') format('woff2');
}
@font-face {
  font-family: 'FDIO Icons Solid';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('../fonts/fa-solid-900.woff2') format('woff2');
}

:root {
  --black: #0b0b0b;
  --coal: #151515;
  --line: #2b2b2b;
  --paper: #f1ece0;
  --ash: #a39e94;
  --red: #9a3435;
  --red-bright: #c2474a;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--black);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  margin: 0;
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.wordmark a { text-decoration: none; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav a {
  padding: 6px 0;
  color: var(--ash);
  text-decoration: none;
}
.topnav a:hover,
.topnav a[aria-current="page"] { color: var(--paper); }
.topnav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- release ---------- */

.release {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.cover {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  margin: 0;
}
.cover a { display: block; }
.cover img {
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
/* the red of the title on the sleeve, as a bar behind its lower left corner */
.cover::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 42%;
  height: 34%;
  background: var(--red);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px 0;
  color: var(--ash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album {
  margin: 0;
  color: var(--red);
  font-size: clamp(44px, 9.5vw, 104px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.facts {
  margin: 22px 0 0 0;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.formats li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--ash);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 30px;
}

.buy {
  display: inline-block;
  padding: 16px 26px;
  background: var(--red);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.buy:hover { background: var(--red-bright); }

.more {
  font-weight: 700;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.more:hover { color: var(--red-bright); }

/* ---------- photos of the pressings ---------- */

.pressings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-bottom: clamp(40px, 7vw, 88px);
}
.pressings figure { margin: 0; }
.pressings a { display: block; text-decoration: none; }
.pressings img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: filter 0.2s ease;
}
.pressings a:hover img { filter: none; }
.pressings figcaption {
  margin-top: 9px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- sections ---------- */

.band {
  background: var(--coal);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .wrap {
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.heading {
  margin: 0 0 26px 0;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.gigs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.gigs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.gigs time {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.gigs .place {
  font-size: 20px;
  font-weight: 700;
}
.gigs .note {
  display: block;
  color: var(--ash);
  font-size: 16px;
  font-weight: 400;
}
.gig-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-self: start;
  margin-top: 6px;
}
.gigs .tickets {
  font-weight: 700;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.gigs .tickets:hover { color: var(--red-bright); }

.history {
  display: inline-block;
  margin-top: 26px;
  font-weight: 700;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.history:hover { color: var(--red-bright); }

.manifest {
  margin: 0;
  max-width: 30em;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}
.manifest::before {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  margin-bottom: 24px;
  background: var(--red);
}
.about {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

/* ---------- links ---------- */

.links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.links a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}
.links a:hover { color: var(--red-bright); }
.links a::before {
  flex: 0 0 28px;
  color: var(--red);
  font-family: 'FDIO Icons Brands';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.links .solid::before {
  font-family: 'FDIO Icons Solid';
  font-weight: 900;
}
.links .bandcamp::before { content: '\f2d5'; }
.links .streaming::before { content: '\f1bc'; }
.links .facebook::before { content: '\f09a'; }
.links .youtube::before { content: '\f167'; }
.links .instagram::before { content: '\f16d'; }
.links .newsletter::before { content: '\f0e0'; }
.links .contact::before { content: '\f2bb'; }

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--ash);
  font-size: 14px;
}
.legal a { color: var(--ash); }
.legal a:hover { color: var(--paper); }
.legal span { margin-right: auto; }

/* ---------- sub pages ---------- */

.subpage {
  padding-top: clamp(28px, 6vw, 64px);
  padding-bottom: clamp(28px, 5vw, 56px);
}
.page-title {
  margin: 0;
  color: var(--red);
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}
.empty { margin: 0; color: var(--ash); }

.history-list {
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(40px, 7vw, 88px);
}
.year {
  margin: 34px 0 6px 0;
  color: var(--ash);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.year:first-of-type { margin-top: 0; }
.gigs-past time { color: var(--paper); }
.gigs-past li { padding: 12px 0; }
.gigs-past .place, .gigs-past time { font-size: 17px; }

.signup {
  max-width: 560px;
  margin-top: 30px;
}
.signup label {
  display: block;
  margin-bottom: 8px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signup input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--coal);
  color: var(--paper);
  font: inherit;
}
.signup input:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}
.signup button { border: 0; cursor: pointer; font-family: inherit; }
.signup-note {
  margin-top: 14px;
  color: var(--ash);
  font-size: 14px;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: clamp(40px, 7vw, 88px);
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--coal);
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.85; }
.gallery-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 8px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, 0.97);
  color: var(--paper);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox[open] { display: flex; flex-direction: column; }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--gutter);
  color: var(--ash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lightbox button {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  cursor: pointer;
}
.lightbox-close { font-size: 40px; line-height: 1; padding: 0 4px; }
.lightbox button:hover { color: var(--red-bright); }
.lightbox button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.lightbox-track {
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 var(--gutter) 16px var(--gutter);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.lightbox-slide img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 130px);
  object-fit: contain;
}
.gallery-text { max-width: 40em; }
.gallery-text p { margin: 0; }
.gallery-text p + p { margin-top: 14px; }
.gallery-text { margin-top: 22px; }
.page-title-long { font-size: clamp(32px, 6vw, 64px); }
.back { color: var(--ash); }
.back:hover { color: var(--paper); }

.gallery-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: clamp(40px, 7vw, 88px);
}
.gallery-card { display: block; text-decoration: none; }
.gallery-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity 0.2s ease; }
.gallery-card:hover img { opacity: 0.85; }
.gallery-card-title {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}
.gallery-card-meta { display: block; margin-top: 4px; color: var(--ash); font-size: 15px; }
.lightbox-slide figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 56px;
  height: 56px;
  font-size: 56px;
  line-height: 1;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ---------- start page teaser ---------- */

.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px 48px;
  align-items: center;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
}
.teaser-image { display: block; max-width: 520px; }
.teaser-image img { width: 100%; transition: opacity 0.2s ease; }
.teaser-image:hover img { opacity: 0.85; }
.teaser .facts { margin-top: 0; }

/* ---------- wider screens ---------- */

@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pressings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gigs li {
    grid-template-columns: 7.5em minmax(0, 1fr) auto;
    align-items: baseline;
  }
  .gig-links { justify-self: end; margin-top: 0; }
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .gallery-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teaser { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .cover { max-width: none; }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* arrows only where there is a mouse - on touch screens the strip is swiped */
@media (hover: hover) and (pointer: fine) {
  .lightbox-prev, .lightbox-next { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .buy, .pressings img, .gallery-item img, .teaser-image img { transition: none; }
  .lightbox-track { scroll-behavior: auto; }
}
