:root {
  --blue: #012169;
  --red: #c8102e;
  --ink: #0a1433;
  --paper: #f1f1ec;
  --white: #ffffff;
  --muted: #4a5170;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --bar-h: 52px;
}

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

html { scroll-behavior: smooth; }

/* Keeps section headings clear of the sticky menu when jumped to. */

section[id],
footer[id] { scroll-margin-top: var(--bar-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.topbar :focus-visible,
.hero :focus-visible,
.deck :focus-visible,
.gigs :focus-visible,
.book :focus-visible { outline-color: var(--white); }

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

/* Hero */

.hero {
  background: var(--blue);
  color: var(--white);
  padding: 0 var(--gutter) clamp(46px, 7vw, 94px);
  border-bottom: 12px solid var(--red);
  box-shadow: inset 0 -6px 0 var(--white);
  overflow: hidden;
}

.hero-inner,
.book-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Menu bar stays pinned to the top. It gains a shadow once the page scrolls. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue);
  color: var(--white);
  padding: 0 var(--gutter);
  transition: box-shadow 0.2s;
}
.topbar.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
  justify-content: flex-end;
  max-width: var(--max);
  min-height: var(--bar-h);
  margin: 0 auto;
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--red); }

.wordmark {
  margin-top: clamp(28px, 6vw, 72px);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.01em;
}
.wordmark span { display: block; }

/* Each line gets its own width so the three lines read as one stacked block. */

.wordmark span:nth-child(1) {
  font-size: clamp(5.5rem, 27vw, 22rem);
  font-variation-settings: "wdth" 125;
}

/* "End" is a thick white outline around flag blue. Solid white is the fallback. */

@supports (-webkit-text-stroke: 1px white) {
  .wordmark span:nth-child(1) {
    color: var(--blue);
    -webkit-text-stroke: 0.045em var(--white);
  }

  /* "Of A" keeps its red fill. The stroke paints behind it, so only the outer half shows as a white border. */

  .wordmark span:nth-child(2) {
    -webkit-text-stroke: 0.1em var(--white);
    paint-order: stroke fill;
    letter-spacing: 0.04em;
    padding-left: 0.05em;
  }
}
.wordmark span:nth-child(2) {
  font-size: clamp(2.6rem, 12.5vw, 10.25rem);
  font-variation-settings: "wdth" 125;
  color: var(--red);
  margin: 0.08em 0 0.1em;
  display: flex;
  align-items: center;
}

/* The badge sits in the gap after "Of A", pinned on at a tilt and overlapping the lines above and below. */

.badge {
  width: max(1.35em, 84px);
  height: auto;
  margin: -1em 0 -1em 0.3em;
  position: relative;
  z-index: 1;
  transform: rotate(-10deg);
  filter: drop-shadow(0 0.04em 0.06em rgba(0, 0, 0, 0.45));
}
.wordmark span:nth-child(3) {
  font-size: clamp(4.4rem, 22vw, 18rem);
  font-variation-settings: "wdth" 62;
}

.strap {
  max-width: 38ch;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.next-gig {
  display: inline-block;
  margin-top: 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 18px;
}
.next-gig:hover { background: var(--white); color: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .wordmark span {
    animation: slam 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }
  .wordmark span:nth-child(2) { animation-delay: 0.12s; }
  .wordmark span:nth-child(3) { animation-delay: 0.24s; }

  @keyframes slam {
    from { opacity: 0; transform: translateY(0.3em) scale(1.04); }
    to { opacity: 1; transform: none; }
  }
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
}
.section-head p {
  color: var(--muted);
  max-width: 40ch;
}

/* Listen */

.player {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.tracks li { border-bottom: 2px solid var(--ink); }

.track {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title len" "artist len";
  width: 100%;
  padding: 14px 12px;
  gap: 2px 16px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.track:hover { background: var(--white); }
.t-title {
  grid-area: title;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}
.t-artist { grid-area: artist; color: var(--muted); }
.t-len {
  grid-area: len;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.tracks li.active .track {
  background: var(--blue);
  color: var(--white);
}
.tracks li.active .t-artist { color: rgba(255, 255, 255, 0.75); }

.deck {
  position: sticky;
  top: calc(var(--bar-h) + 24px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  padding: 24px;
}

.play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 5px var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.play:hover { background: var(--white); color: var(--red); }
.play svg { width: 30px; height: 30px; fill: currentColor; }
.play .i-pause,
.is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }

.now { min-width: 0; }
.now-title {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
}
.now-artist { opacity: 0.85; margin-bottom: 14px; }

.seek {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  background: linear-gradient(to right, var(--white) var(--p), rgba(255, 255, 255, 0.3) var(--p));
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
}
.seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Gigs */

.gigs {
  background: var(--ink);
  color: var(--white);
}
.gigs .section-head h2 { color: var(--white); }
.gigs .section-head p { color: rgba(255, 255, 255, 0.7); }

.gig-list {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.gig {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.gig:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.gig-date {
  display: grid;
  justify-items: center;
  background: var(--red);
  color: var(--white);
  padding: 8px 0 10px;
  line-height: 1;
}
.d-day, .d-mon { font-size: 0.85rem; font-weight: 700; }
.d-num {
  font-size: 2.4rem;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  margin: 2px 0;
}

.gig-venue { font-size: 1.3rem; font-weight: 800; }
.gig-venue a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.gig-venue a:hover { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.gig-town { color: rgba(255, 255, 255, 0.7); }
.gig-meta { text-align: right; color: rgba(255, 255, 255, 0.85); }
.gig-meta a {
  display: block;
  color: var(--white);
  font-weight: 700;
}

.gig-year {
  padding: 40px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  line-height: 1;
}

.gig-empty a { color: var(--white); }

/* Band */

.members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.member {
  flex: 0 1 calc((100% - 4 * 20px) / 5);
  min-width: 0;
  border: 2px solid var(--ink);
}
.member-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink);
}
.member-text {
  padding: 12px 14px 14px;
  border-top: 2px solid var(--ink);
}
.member h3 {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
}
.member .role {
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

/* Photos */

.photos {
  background: var(--blue);
  color: var(--white);
}
.photos .section-head p { color: rgba(255, 255, 255, 0.75); }

.gallery {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  columns: 3 150px;
  column-gap: 12px;
}
.gallery li {
  break-inside: avoid;
  margin-bottom: 12px;
}

.photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: zoom-in;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
}
.photo:hover img { opacity: 0.88; }

/* Lightbox fills the screen; empty space around the photo closes it. */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px 64px;
  border: 0;
  background: rgba(5, 10, 30, 0.94);
  color: var(--white);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop { background: transparent; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
}
.lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}
.lb-btn:hover { background: var(--white); color: var(--red); }
.lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox :focus-visible { outline-color: var(--white); }

/* Book us */

.book {
  background: var(--red);
  color: var(--white);
  padding: clamp(56px, 8vw, 104px) var(--gutter) 32px;
}
.book h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.book-inner > p:not(.small) { max-width: 56ch; }
.book-link {
  display: block;
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: clamp(1.15rem, 3.4vw, 2.4rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.book-link:hover,
.social a:hover { color: var(--blue); }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 64px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.social svg {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
}
.social .i-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.social .i-stroke .dot {
  fill: currentColor;
  stroke: none;
}
.small { font-size: 0.85rem; }

/* Narrow screens */

@media (max-width: 820px) {
  :root { --bar-h: 46px; }
  .player { grid-template-columns: 1fr; }
  .deck {
    order: -1;
    top: var(--bar-h);
    z-index: 2;
    padding: 16px;
    margin: 0 calc(var(--gutter) * -1);
  }
  .play { width: 56px; height: 56px; }
  .nav {
    justify-content: flex-start;
    column-gap: 14px;
    font-size: 0.9rem;
  }
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
  .member { flex-basis: calc((100% - 2 * 20px) / 3); }
}

@media (max-width: 560px) {

  .members { gap: 12px; }
  .member { flex-basis: calc((100% - 12px) / 2); }
  .member-text { padding: 10px 12px 12px; }
  .member h3 { font-size: 1.3rem; }
  .member .role { font-size: 0.9rem; }

  .gig {
    grid-template-columns: 72px 1fr;
    gap: 6px 16px;
  }
  .gig-meta {
    grid-column: 2;
    text-align: left;
  }
  .gig-date { grid-row: span 2; }
}
