:root {
  --ink: #f4efe6;
  --icon-red: #8a2030;
  --focus: #f4efe6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #120608;
}

body {
  font-family: 'Source Code Pro', monospace;
}

/* ============================
   Main stage
   ============================ */

.stage {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
}

/* ============================
   Background
   ============================ */

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 90% at 50% 100%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(30, 4, 10, 0.35) 0%,
      rgba(50, 4, 14, 0.35) 50%,
      rgba(10, 2, 4, 0.55) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============================
   Homepage hero
   ============================ */

.hero {
  position: relative;
  z-index: 2;

  min-height: 100svh;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: clamp(1.25rem, 3vh, 2.5rem);

  padding: 6vh 5vw;

  text-align: center;
}

.logo {
  width: clamp(200px, 27vw, 531px);
  height: auto;
  display: block;

  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav-link {
  color: var(--ink);
  text-decoration: none;

  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);

  letter-spacing: 0.02em;
  opacity: 0.95;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ============================
   Social icons
   ============================ */

.icons {
  list-style: none;

  display: flex;
  align-items: center;

  gap: clamp(0.9rem, 1.6vw, 1.5rem);

  margin: 0;
  padding: 0;
}

.icon-btn {
  --size: clamp(38px, 3.4vw, 52px);

  width: var(--size);
  height: var(--size);

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--icon-red);
  border-radius: 30%;

  padding: 18%;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.icon-btn--circle {
  border-radius: 50%;
}

/* YouTube glyph */
.icon-btn--dark {
  background: var(--icon-red);
}

.icon-btn img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  display: block;
}

.icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ============================
   Reduced motion
   ============================ */

@media (prefers-reduced-motion: reduce) {
  .icon-btn,
  .nav-link {
    transition: none;
  }
}

/* ============================
   Homepage mobile
   ============================ */

@media (max-width: 480px) {
  .hero {
    gap: 1.5rem;
    padding: 8vh 8vw;
  }

  .nav {
    gap: 1.75rem;
  }
}

/* ============================================================
   SUB-PAGES
   ============================================================ */

.page {
  position: relative;

  min-height: 100svh;
  width: 100%;
}

.page .bg,
.page .bg-overlay {
  position: fixed;
}

/* ============================
   Sub-page content
   ============================ */

.page-content {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 100svh;

  padding:
    clamp(1rem, 2.5vh, 1.5rem)
    clamp(1.25rem, 4vw, 3rem);
}

/* ============================
   Sub-page header
   ============================ */

.page-header {
  display: flex;
  align-items: flex-start;

  gap: clamp(1rem, 2.5vw, 1.75rem);

  width: 100%;
}

.corner-logo {
  width: 182px;
  height: 186px;

  flex: 0 0 auto;

  display: block;
}

.page-heading {
  display: flex;
  flex-direction: column;

  gap: 0.35rem;

  padding-top: 0.4rem;

  min-width: 0;
}

.page-title {
  color: var(--ink);

  font-style: italic;
  font-weight: 400;

  font-size: 28.78pt;
  line-height: 1;

  margin: 0;
}

.back-link {
  color: var(--ink);

  font-style: italic;
  font-weight: 400;

  font-size: 24pt;
  line-height: 1;

  text-decoration: none;

  width: fit-content;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* ============================================================
   GIGS LIST
   ============================================================ */

.gig-list-wrap {
  width: 100%;

  display: flex;
  justify-content: center;

  padding:
    clamp(2rem, 6vh, 5rem)
    0;
}

.gig-list {
  list-style: none;

  width: min(100%, 1100px);

  margin: 0;
  padding: 0;

  /*
    Two predictable columns.

    minmax(0, 1fr) is important:
    it prevents long gig names from forcing
    the grid wider than the viewport.
  */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 0.6rem;
}

.gig-list li {
  min-width: 0;

  margin: 0;
  padding: 0;
}

.gig-entry {
  display: block;

  width: 100%;
  min-width: 0;

  color: var(--ink);

  font-style: italic;
  font-weight: 400;

  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.4;

  text-decoration: none;

  /*
    Do NOT use white-space: pre here.
    Long gig names need to be allowed to wrap.
  */
  white-space: normal;

  /*
    Prevent a particularly long unbroken string
    from blowing out the grid.
  */
  overflow-wrap: anywhere;
  word-break: normal;
}

a.gig-entry:hover {
  text-decoration: underline;
}

.gig-entry.is-placeholder {
  opacity: 0.55;

  cursor: default;
  pointer-events: none;
}

.gig-entry:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ============================================================
   POSTER / GIG DETAIL PAGE
   ============================================================ */

.gig-poster-wrap {
  display: flex;
  justify-content: center;

  width: 100%;

  margin-top: clamp(2rem, 5vh, 4rem);
}

.gig-poster {
  display: block;

  width: min(42vw, 420px);

  aspect-ratio: 4 / 5;

  height: auto;

  object-fit: cover;
  object-position: center;
}

/* ============================
   Contact / gig information
   ============================ */

.contact-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 1.4rem;

  min-height: 0;

  text-align: center;

  padding:
    clamp(2rem, 5vh, 4rem)
    5vw;
}

.contact-line {
  color: var(--ink);

  font-style: italic;
  font-weight: 400;

  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;

  margin: 0;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.contact-line a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ============================================================
   POSTER WRAP
   ============================================================ */

.poster-wrap {
  width: min(24vw, 240px);

  aspect-ratio: 4 / 5;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.poster-wrap img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.poster-wrap + .contact-lines {
  min-height: 0;

  padding-top: clamp(1rem, 2vh, 1.5rem);
  padding-bottom: 0;
}

/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 640px) {

  /* Header */

  .page-header {
    align-items: center;
  }

  .corner-logo {
    width: 120px;
    height: 123px;
  }

  .page-title {
    font-size: 22pt;
  }

  .back-link {
    font-size: 18pt;
  }

  /* Gigs */

  .gig-list-wrap {
    padding:
      clamp(2rem, 5vh, 3rem)
      0;
  }

  .gig-list {
    width: 100%;

    grid-template-columns: 1fr;

    column-gap: 0;
    row-gap: 0.7rem;
  }

  .gig-entry {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  /* Gig poster */

  .gig-poster {
    width: min(78vw, 360px);
  }

  /* Small poster layout */

  .poster-wrap {
    width: min(48vw, 190px);
  }

  .poster-wrap + .contact-lines {
    gap: 0.9rem;
    padding-top: 0.75rem;
  }
}

/* ============================================================
   SHORT DESKTOP SCREENS
   ============================================================ */

@media (max-height: 800px) and (min-width: 641px) {

  .poster-wrap {
    width: min(19vw, 190px);
  }

  .poster-wrap + .contact-lines {
    gap: 0.9rem;
    padding-top: 0.75rem;
  }
}

/* ============================================================
   VERY SHORT SCREENS
   ============================================================ */

@media (max-height: 700px) {

  .poster-wrap {
    width: min(17vw, 170px);
  }

  .poster-wrap + .contact-lines {
    gap: 0.65rem;
    padding-top: 0.5rem;
  }
}

/* ============================================================
   VERY NARROW PHONES
   ============================================================ */

@media (max-width: 380px) {

  .page-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-header {
    gap: 0.85rem;
  }

  .corner-logo {
    width: 95px;
    height: auto;
  }

  .page-title {
    font-size: 19pt;
  }

  .back-link {
    font-size: 16pt;
  }

  .gig-list-wrap {
    padding-top: 2rem;
  }

  .gig-entry {
    font-size: 1rem;
  }
}