/* Concept 1b: Spectrum. Fonts: Boska + Supreme (Fontshare, ITF Free Font Licence), self-hosted. */
@font-face { font-family: "Boska"; src: url("fonts/Boska-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/Boska-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/Boska-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f1eee7;
  --ink: #15130f;
  --soft: #6f695f;
  --night: #0b0a09;
  --lamp: #f3eee4;
  --dim: #8b8478;
  --unlit: #1a1815;
  --serif: "Boska", Georgia, serif;
  --sans: "Supreme", "Avenir Next", sans-serif;
  --out: cubic-bezier(.2, .7, .2, 1);
  --move: cubic-bezier(.6, 0, .3, 1);
  --g: 18px;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--lamp); font: 400 16px/1.45 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active, .press:active { transform: scale(.97); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: baseline; gap: 26px; padding: 15px var(--g) 13px; background: var(--night); transition: opacity .2s var(--out); }
.bar .me { font: 400 23px/1 var(--serif); margin-right: auto; }
.bar nav, .bar .sort { display: flex; gap: 18px; font-size: 15px; }
.bar a:not(.me), .bar button { color: var(--dim); transition: color .15s; }
.bar a:not(.me):hover, .bar button:hover, .bar .on { color: var(--lamp); }
html.ov-open .bar { opacity: .12; pointer-events: none; }

/* ---------- The wall ---------- */
.wall { position: relative; margin: 0 4px 4px; }
.tile { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--unlit); transition: opacity .2s var(--out); will-change: transform; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.wall.sorting .tile { transition: transform .26s var(--move), width .26s var(--move), height .26s var(--move), opacity .2s var(--out); }
.wall.lit .tile:not(.on) { opacity: .1; }
.wall.deep .tile { opacity: .07; }
.tile.lifted { visibility: hidden; }
.tile.unlit { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px; color: var(--dim); }
.tile.unlit b { font: 400 clamp(19px, 1.8vw, 27px)/1 var(--serif); color: var(--lamp); }
.tile.unlit small { font-size: 13px; margin-top: 5px; }

/* Floating title while a show is lit: no box, just type over the dark */
.cap { position: fixed; left: var(--g); right: var(--g); bottom: 16px; z-index: 15; pointer-events: none; opacity: 0; transition: opacity .16s ease-in; text-shadow: 0 1px 24px rgba(0, 0, 0, .55); }
.cap.show { opacity: 1; transition: opacity .18s var(--out); }
.cap .t { display: block; font: 400 clamp(44px, 6.6vw, 108px)/.92 var(--serif); max-width: 14em; }
.cap .m { display: block; margin-top: 10px; font-size: 15px; color: #cfc8bb; }
html.ov-open .cap { opacity: 0; }

/* ---------- Gate: house lights up ---------- */
.gate { position: fixed; inset: 0; z-index: 50; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: var(--g); color: var(--ink); background: var(--paper); transition: background-color .26s var(--move); }
.gate h1 { margin: 0; font: 400 clamp(54px, 10.4vw, 176px)/.88 var(--serif); }
.gate h1 span { display: block; }
.gate .what { margin: 14px 0 0; font-size: 17px; color: var(--soft); }
.gate .txt { transition: opacity .15s ease-in; }
.band { align-self: center; display: flex; height: clamp(130px, 36dvh, 360px); gap: 2px; margin: 22px calc(var(--g) * -1); padding: 0 var(--g); }
.band i { flex: 1 1 0; min-width: 0; background-size: cover; background-position: 50% 50%; transform: scaleY(.04); transform-origin: 50% 100%; transition: transform .24s var(--out), flex-grow .2s var(--move); }
.band i.ok { transform: none; }
@media (hover: hover) { .band i:hover { flex-grow: 8; } }
.gate .foot { display: flex; align-items: end; justify-content: space-between; gap: var(--g); }
.gate .foot p { margin: 0; font-size: 15px; color: var(--soft); }
.enter { font: 400 clamp(34px, 4.4vw, 62px)/1 var(--serif); background: var(--ink); color: var(--paper); padding: .14em .5em .2em; transition: transform .12s, background-color .15s; }
.enter:hover { background: #000; }
.gate.going { background-color: rgba(241, 238, 231, 0); pointer-events: none; }
.gate.going .txt { opacity: 0; }
.gate.going .band { visibility: hidden; }
html.in .gate { display: none; }
html.gated, html.gated body { overflow: hidden; }

/* ---------- Show overlay ---------- */
html.ov-open, html.ov-open body { overflow: hidden; }
.ov { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: minmax(0, 1fr) auto; gap: 14px 30px; padding: var(--g); }
.ov { background: rgba(11, 10, 9, .88); }
.ov[hidden] { display: none; }
.ov-stage { position: relative; grid-column: 1; grid-row: 1; min-height: 0; cursor: e-resize; }
.ov-hero { position: absolute; background: #000; }
.ov-strip { grid-column: 1; grid-row: 2; display: flex; gap: 4px; height: 76px; overflow-x: auto; scrollbar-width: none; }
.ov-strip::-webkit-scrollbar { display: none; }
.ov-strip button { flex: none; height: 100%; opacity: .42; transition: opacity .15s; }
.ov-strip button:hover, .ov-strip button.on { opacity: 1; }
.ov-strip img { height: 100%; width: auto; }
.ov-info { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0; }
.ov-info .close { align-self: flex-end; font-size: 15px; color: var(--dim); padding: 2px 0 0; }
.ov-info .close:hover { color: var(--lamp); }
.ov-info h2 { margin: auto 0 0; font: 400 clamp(46px, 4.6vw, 76px)/.92 var(--serif); }
.ov-info h2 em { display: block; font-style: normal; font-size: .4em; color: var(--dim); margin-top: .3em; }
.ov-info dl { margin: 22px 0 0; font-size: 15px; }
.ov-info dl div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 3px 0; }
.ov-info dt { color: var(--dim); }
.ov-info dd { margin: 0; }
.ov-info .credit { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.ov-info .count { margin: 18px 0 0; font: 400 26px/1 var(--serif); }
.ov-info .count span { color: var(--dim); }
.ov-info .shows { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--dim); }
.ov-info .shows button:hover { color: var(--lamp); }
.ov-info .shows small { display: block; font-size: 12px; opacity: .7; }
.ov-info .shows button:last-child { text-align: right; }
.ov-dark { position: absolute; inset: 0; display: flex; align-items: flex-end; background: var(--unlit); padding: 26px; }
.ov-dark p { margin: 0; font: 400 clamp(26px, 3vw, 46px)/1.08 var(--serif); max-width: 15em; color: var(--dim); }
.ov-dark p b { font-weight: 400; color: var(--lamp); }

/* ---------- About: house lights up again ---------- */
body.house { background: var(--paper); color: var(--ink); }
html:has(body.house) { background: var(--paper); }
body.house .bar { background: var(--paper); }
body.house .bar a:not(.me) { color: var(--soft); }
body.house .bar a:not(.me):hover, body.house .bar .on { color: var(--ink); }
.about { padding: 34px var(--g) 0; }
.about .lead { margin: 0 0 72px; font: 400 clamp(28px, 3.5vw, 52px)/1.1 var(--serif); max-width: 21em; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cols h2 { margin: 0 0 12px; font: 500 22px/1.1 var(--serif); }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { padding: 0 0 12px; }
.cols li span { display: block; color: var(--soft); font-size: 15px; }
.shows-mini a { display: block; padding: 0 0 14px; }
.shows-mini b { font: 400 21px/1.1 var(--serif); }
.shows-mini a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shows-mini .strip { display: flex; gap: 2px; height: 8px; margin-top: 7px; }
.shows-mini .strip i { flex: 1; }
footer { padding: 70px var(--g) 26px; font-size: 14px; color: var(--soft); }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --g: 12px; }
  .bar { flex-wrap: wrap; gap: 6px 16px; padding: 12px var(--g) 10px; }
  .bar .me { width: 100%; font-size: 20px; }
  .bar .sort { margin-right: auto; }
  .wall { margin: 0 2px 2px; }
  .band { gap: 1px; }
  .gate .foot { flex-direction: column; align-items: stretch; }
  .enter { text-align: center; }
  .ov { display: block; overflow-y: auto; padding: 0 0 30px; -webkit-overflow-scrolling: touch; }
  .ov-stage { cursor: auto; height: var(--stage-h, 66vw); margin-top: 52px; }
  .ov-strip { height: 58px; padding: 6px var(--g) 0; }
  .ov-info { padding: 0 var(--g); }
  .ov-info .close { position: fixed; top: 0; right: 0; padding: 16px var(--g); background: var(--night); z-index: 2; left: 0; text-align: right; }
  .ov-info h2 { margin-top: 22px; }
  .cols { grid-template-columns: 1fr; }
  .about { padding: 24px var(--g) 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .band i { transform: none; }
}
