/* Transducer from a copy installed on the visitor's own computer (local(): no font file is
   shipped). Everyone else sees the fallback until the Adobe Fonts web project is linked. */
@font-face {
  font-family: "transducer-condensed";
  src: local("Transducer Condensed Bold"), local("Transducer-CondensedBold"), local("Transducer CondBold"), local("Transducer Condensed");
  font-weight: 700 900;
}
/* BOPS brand kit: Silver #C5CCD1, Green #CBFF00, Gold Blond #F4C97D, Pink #FD58DA, Red #FF3600, Blue #0000C8.
   Headline font: Transducer Bold Condensed (brand); Barlow Condensed stands in until the Adobe Fonts web kit is set up.
   Pages are generated by tools/build.py. */
:root {
  color-scheme: dark;
  --bg: #0F1016;
  --card: #1B1D26;
  --text: #F2F3F8;
  --muted: #C5CCD1;
  --red: #FF3600;
  --green: #CBFF00;
  --blue: #0000C8;
  --red-hover: #FF5526;
  --line: #2C2F3A;
  --bar-bg: rgba(15, 16, 22, 0.88);
  --cta: var(--green); /* every Tickets button: BOPS lime */
  --display: "transducer-condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --gutter: clamp(16px, 5vw, 64px);
  --bar-h: 68px;
  --wide: 1280px;
  --text-col: 720px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--green);
}
main { flex: 1; }
::selection { background: var(--green); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, .btn, .btn-ticket, .nav-link, .facts li > span:first-child, .status, .page-index {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1, h2 { line-height: 0.92; margin: 0 0 var(--s-5); text-wrap: balance; }
h1 { font-size: clamp(52px, 8vw, 96px); color: var(--green); }
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: clamp(40px, 6vw, 64px); }

/* Top bar: home mark left, the three menu items centered.
   Inner pages: a calm dark bar. Home: no bar, the menu sits on the poster. */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--s-3) var(--gutter);
  padding-top: max(var(--s-3), env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar-home { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.bar-home img { width: 96px; height: auto; }
.home .bar-home { visibility: hidden; }

/* Navigation: plain words in the poster type, no boxes. The current page is marked in
   the edition orange with a short underline; Tickets is the only button. */
.menu { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none;
  font-size: 20px; letter-spacing: 0.04em; line-height: 1;
  border-bottom: 2px solid transparent; padding-top: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { color: var(--edition-accent); }
.nav-link[aria-current="page"] { color: var(--edition-accent); border-bottom-color: var(--edition-accent); }
.btn-ticket {
  justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 4px var(--s-5) 0;
  background: var(--cta); color: var(--bg);
  font-size: 20px; letter-spacing: 0.04em; line-height: 1; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ticket:hover { background: var(--text); }
.btn-ticket[aria-current="page"] { background: var(--text); }
@media (max-width: 560px) {
  /* Phones: logo and Tickets share the first row, the three words sit centred below */
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "home ticket" "menu menu"; row-gap: 0; padding-top: max(var(--s-2), env(safe-area-inset-top)); }
  .bar-home { grid-area: home; }
  .btn-ticket { grid-area: ticket; min-height: 40px; padding: 3px var(--s-4) 0; font-size: 18px; }
  .menu { grid-area: menu; justify-content: center; gap: var(--s-6); }
  .nav-link { font-size: 18px; }
  .home .bar { grid-template-columns: 1fr; grid-template-areas: "menu"; justify-items: center; }
  .home .bar-home { display: none; }
}

/* Home: one fixed screen, the edition logo dead center */
.home { height: 100svh; overflow: hidden; }
.home main { display: grid; place-items: center; min-height: 0; padding: var(--s-5) var(--gutter); }
.home-logo { margin: 0; width: min(78vw, 760px); }
.home-logo img { width: 100%; max-height: 44svh; object-fit: contain; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: var(--s-3) var(--s-6) 10px;
  background: var(--cta); color: var(--bg);
  font-size: 24px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--text); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Next up */
.next {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: var(--wide); margin: 0 auto;
  padding: var(--s-7) var(--gutter) var(--s-9); box-sizing: content-box;
}
.next h1 { margin-bottom: var(--s-4); }
.next-flyer img {
  width: auto; max-width: 100%;
  max-height: calc(100svh - var(--bar-h) - 2 * var(--s-7));
  margin-left: auto;
  border-radius: 6px;
}
.status {
  display: inline-block; margin: 0 0 var(--s-6);
  padding: 5px var(--s-3) 3px;
  background: var(--green); color: var(--bg);
  font-size: 18px; line-height: 1.2;
}
.facts { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.facts li {
  display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s-3);
  padding: var(--s-4) 0; border-top: 1px solid var(--line);
  font-size: 19px;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li > span:first-child { color: var(--muted); font-size: 20px; font-weight: 700; }
.facts a { text-decoration-color: var(--muted); }
.facts a:hover { color: var(--green); }
.small { margin: var(--s-5) 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 820px) {
  .next { grid-template-columns: 1fr; padding-top: var(--s-6); }
  /* Phones: date, lineup and tickets first, the flyer right below */
  .next-flyer { order: 2; max-width: 420px; }
  .next-flyer img { max-height: none; width: 100%; margin-left: 0; }
  .facts li { grid-template-columns: 1fr; gap: 0; padding: var(--s-3) 0; }
  .status { margin-bottom: var(--s-5); }
}

/* Text pages (about, policies, good to know, nightlife care) */
.page {
  max-width: var(--text-col); margin: 0 auto;
  padding: var(--s-8) var(--gutter) var(--s-9); box-sizing: content-box;
}
.page h1 { margin-bottom: var(--s-6); }
.page h1 + h2 { margin-top: 0; }
.page h2 { color: var(--red); margin-bottom: var(--s-3); }
.page p a:not(.btn) { text-decoration-color: var(--muted); }
.page p a:not(.btn):hover { color: var(--green); }
.page .row { margin-top: var(--s-5); }
.lead { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; }

.crowd {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  max-width: var(--wide); margin: 0 auto;
  padding: 0 var(--gutter) var(--s-9); box-sizing: content-box;
}
.crowd img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 4 / 5; }
.crowd .wide { grid-column: span 2; aspect-ratio: auto; }
.crowd .credit { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.crowd .credit a { display: inline-block; padding: 14px 0; }
@media (max-width: 700px) {
  .crowd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crowd .wide { aspect-ratio: 3 / 2; }
}

/* Bigger tap area for inline links without moving the text */
.facts a, .page p a:not(.btn) { padding: var(--s-3) 0; }

/* Footer: social channels */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-1);
  padding: var(--s-3) var(--gutter);
  padding-bottom: max(var(--s-3), env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--text); font-size: 14px;
}
.foot-home { display: inline-flex; align-items: center; min-height: 44px; }
.foot-home img { width: 88px; height: auto; }
.home .foot-home { display: none; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--text); transition: color 0.15s ease, background 0.15s ease;
}
.socials a:hover { color: var(--green); background: rgba(255, 255, 255, 0.12); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-ticket, .nav-link, .socials a { transition: none; }
}

/* Home is the poster: the edition background fills the screen edge to edge.
   The image is set in the home page head by tools/build.py. Inner pages stay plain dark. */
.home { position: relative; isolation: isolate; }
.home::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg) center / cover no-repeat; }
.home .bar, .home .foot { background: transparent; border: 0; }
.home .bar { position: relative; padding-top: max(var(--s-4), env(safe-area-inset-top)); }

/* Social icons small at the bottom centre, between date and venue; the © line tiny below */
.home .foot {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: max(var(--s-5), env(safe-area-inset-bottom));
  width: max-content; padding: 0; gap: 0;
}
.home .socials { flex-wrap: nowrap; }
.home .socials a { width: 40px; height: 40px; }
.home .socials svg { width: 19px; height: 19px; }
.home .foot p { font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; }
@media (max-width: 560px) {
  .home .foot { bottom: max(var(--s-2), env(safe-area-inset-bottom)); }
  .home .socials a { width: 34px; height: 40px; }
}

/* Info page: an index of the sections, then one section per topic */
.page-index ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-4); padding: 0; list-style: none; font-size: 18px; letter-spacing: 0.04em; }
.page-index a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.page-index a:hover { color: var(--edition-accent); }
.page-info section { scroll-margin-top: calc(var(--bar-h) + var(--s-5)); }
.page-info section .btn { margin-top: var(--s-2); }

/* Tickets page: the Weeztix shop embed (it injects its own iframe into #shop-frame) */
.page-shop { max-width: 640px; }
.page-shop h1 { margin-bottom: var(--s-4); }
.shop-intro { color: var(--muted); margin-bottom: var(--s-6); }
#shop-frame { min-height: 420px; border-radius: 12px; overflow: hidden; }

/* Home: poster-style type around the logo. Live text, sized from the screen's
   width and height, so it scales with any window without SVGs. */
.home main {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "tag tag" "logo logo" "date venue";
  place-items: stretch;
  padding: var(--s-3) var(--gutter) var(--s-5);
}
@media (max-width: 560px) { .home main { padding-bottom: 84px; } }
.home-tag, .home-corner {
  margin: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, min(6.4vw, 8svh), 96px); line-height: 0.95; letter-spacing: 0.01em;
  color: var(--edition-accent, var(--red));
  /* crisp poster orange: only a tight shadow for readability, no soft glow */
  text-shadow: 0 1px 2px rgba(15, 16, 22, 0.35);
}
.home-tag { grid-area: tag; display: flex; justify-content: space-between; }
/* Logo with the Tickets button right underneath; the top bar has no Tickets on home */
.home-center { grid-area: logo; align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3svh, 32px); }
.home .bar .btn-ticket { visibility: hidden; }
.home-ticket { min-height: 52px; padding: 5px var(--s-6) 0; font-size: clamp(20px, 2.2vw, 26px); }
@media (max-width: 560px) { .home .bar .btn-ticket { display: none; } }
.home-corner { text-decoration: none; transition: color 0.15s ease; }
.home-corner:hover { color: var(--green); }
.home-date { grid-area: date; justify-self: start; align-self: end; }
.home-venue { grid-area: venue; justify-self: end; align-self: end; text-align: left; }
@media (prefers-reduced-motion: reduce) { .home-corner { transition: none; } }

/* Low screens (a phone held sideways): date and venue move beside the logo,
   the footer folds into one row, and the page may scroll as a last resort. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: 52px; }
  .home { height: auto; min-height: 100svh; overflow: auto; }
  .bar { padding-top: max(var(--s-1), env(safe-area-inset-top)); padding-bottom: var(--s-1); }
  .home main {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas: "tag tag tag" "date logo venue";
    column-gap: var(--s-5);
    padding: var(--s-2) var(--gutter) 56px;
  }
  .home-tag, .home-corner { font-size: clamp(22px, 8svh, 40px); }
  .home-logo { width: min(48vw, 460px); }
  .home-logo img { max-height: 36svh; }
  .foot { flex-direction: row; justify-content: center; gap: var(--s-4); }
  .home .foot { bottom: max(var(--s-1), env(safe-area-inset-bottom)); }
}

/* ===== DIRECTION B: home = the flyer next to the edition info, no artwork background ===== */
.home-split .bar-home { visibility: hidden; }
/* Laptop: flyer and facts together fill exactly one screen between the bar and the footer */
.home-split { --foot-row: 70px; }
.home-split .next {
  min-height: calc(100svh - var(--bar-h) - var(--foot-row));
  padding-top: var(--s-5); padding-bottom: var(--s-5);
}
.home-split .next h1 { font-size: clamp(44px, 6vw, 80px); }
.home-split .status { margin-bottom: var(--s-5); }
.home-split .facts { margin-bottom: var(--s-5); }
.home-split .facts li { padding: var(--s-3) 0; }
.home-split .small { margin-top: var(--s-4); }
.home-split .next-flyer img {
  max-height: calc(100svh - var(--bar-h) - var(--foot-row) - 2 * var(--s-5));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.home-split .foot { flex-direction: row; justify-content: space-between; }
.home-split .foot-home { display: none; }
@media (max-width: 820px) {
  .home-split .next-flyer { order: 0; margin: 0 auto; max-width: 300px; }
  .home-split .next { padding-top: var(--s-5); }
}
@media (max-width: 560px) {
  .home-split .bar { grid-template-columns: 1fr auto; grid-template-areas: "menu ticket"; }
  .home-split .menu { justify-content: flex-start; }
  .home-split .bar-home { display: none; }
  .home-split .foot { flex-direction: column; }
}
.home-split .next { box-sizing: border-box; max-width: calc(var(--wide) + 2 * var(--gutter)); }
/* Phone held sideways: keep flyer and facts side by side; the page scrolls for the rest */
@media (max-height: 520px) and (orientation: landscape) {
  .home-split .next { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-6); align-items: start; }
  .home-split .next-flyer { order: 0; max-width: none; margin: 0; position: sticky; top: calc(var(--bar-h) + var(--s-3)); }
  .home-split .next-flyer img { max-height: calc(100svh - var(--bar-h) - 2 * var(--s-4)); width: auto; margin: 0 auto; }
  .home-split .facts li { grid-template-columns: 1fr; gap: 0; }
}

/* Header: one row, the white BOPS logo with About, Info and Tickets right next to it */
.bar { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.bar .menu { gap: clamp(20px, 3vw, 40px); }
.bar-home, .home-split .bar-home { visibility: visible; display: inline-flex; }
.bar-home img { width: 104px; }
.btn-ticket { margin-left: 0; }
@media (max-width: 560px) {
  .bar, .home-split .bar { display: flex; gap: var(--s-4); padding-top: max(var(--s-3), env(safe-area-inset-top)); }
  .bar .menu, .home-split .menu { gap: var(--s-4); }
  .bar-home, .home-split .bar-home { display: inline-flex; min-height: 44px; }
  .bar-home img { width: 76px; }
  .nav-link { font-size: 17px; }
  .btn-ticket { min-height: 40px; padding: 3px var(--s-3) 0; font-size: 17px; }
}

/* ===== Home as a club bill: big type in the edition colours, nothing boxed ===== */
.bill {
  box-sizing: border-box;
  min-height: calc(100svh - var(--bar-h) - var(--foot-row, 70px));
  display: flex; flex-direction: column; justify-content: center;
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--s-6) var(--gutter);
}
.bill-date, .bill-venue, .bill-lineup {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: 0.9; letter-spacing: 0.005em; margin: 0;
}
.bill-date { font-size: clamp(72px, 14vw, 210px); color: var(--edition-accent); }
.bill-venue { font-size: clamp(26px, 3.4vw, 52px); margin-top: var(--s-3); }
.bill-venue a { text-decoration: none; }
.bill-venue a:hover { color: var(--edition-accent); }
.bill-lineup { font-size: clamp(44px, 7.4vw, 116px); color: var(--green); margin-top: clamp(24px, 4svh, 48px); }
.bill-lineup a { text-decoration: none; }
.bill-lineup a:hover { color: var(--text); }
.bill-meta { margin: clamp(20px, 3svh, 32px) 0 0; color: var(--muted); font-size: 18px; }
.bill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-5); }
.bill-cal { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 4px; }
.bill-cal:hover { color: var(--edition-accent); }
@media (max-height: 520px) and (orientation: landscape) {
  .bill-date { font-size: clamp(48px, 15svh, 96px); }
  .bill-lineup { font-size: clamp(28px, 9svh, 56px); }
}
.bill-lineup span { display: block; white-space: nowrap; }
@media (max-width: 560px) {
  .bill { padding-top: var(--s-5); padding-bottom: var(--s-5); }
  .bill-date { font-size: clamp(56px, 18vw, 96px); }
  .bill-lineup { font-size: clamp(30px, 9.4vw, 48px); }
}
@media (max-width: 560px) { .home-split { --foot-row: 96px; } }
/* Tablets upright: the bill fills more of the tall screen */
@media (min-width: 561px) and (max-width: 1024px) and (orientation: portrait) {
  .bill-date { font-size: 18vw; }
  .bill-venue { font-size: 4.6vw; }
  .bill-lineup { font-size: 9.4vw; }
}
/* Inner pages share the bill's colours: orange headline, white section heads; lime stays for Tickets */
.page h1 { color: var(--edition-accent); }
.page h2 { color: var(--text); }

/* Home: artwork fills the space between the dark header and footer (image set by tools/build.py) */
.home-split main { background-color: var(--bg); background-size: cover; background-position: center; }
.bill-date, .bill-venue, .bill-lineup { text-shadow: 0 2px 4px rgba(15, 16, 22, 0.35); }

/* Other pages: artwork fixed behind the content, shown as it is */
.page-bg { position: relative; isolation: isolate; }
.page-bg::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.page-bg::before { background: var(--bg) center / cover no-repeat; }
/* No dark layer: a tight shadow under all text keeps it crisp on the artwork */
.page-bg main { text-shadow: 0 1px 3px rgba(15, 16, 22, 0.6); }
/* On the bare artwork, small grey text is too faint: use white instead */
.bill-meta, .page-bg .page-index a, .page-bg .shop-intro, .page-bg .crowd .credit, .page-bg .small { color: var(--text); }
