/* MANACA v3: the line-up (#lineup). The page's closing act: every category set like a gig bill over one campaign photo,
   then the store as the venue. Clothing lines are the headliners; accessories run as the supporting line under them.
   Colours come from the dark-half tokens (css/chapter.css) and --led. The photo is Manaca's own "fridge on black"
   campaign image: its edges are pure black, so it is placed like an object on the ground and masked at its edges.
   Motion: js/lineup.js adds .lu-arm (lines wait under their clip) then .lu-on (they rise, once). Without that file,
   or with reduced motion, nothing is ever hidden. Only transform and opacity move. */

.lineup {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--hdr) + 28px) var(--gut) clamp(22px, 4vh, 40px);
}

/* ---- the photo: one lit thing in the dark ---- */
.lu-photo {
  position: absolute; z-index: -2; pointer-events: none; max-width: none;
  top: 0; height: 100%; width: auto; aspect-ratio: 16 / 15;
  right: max(-6vw, calc(50vw - 50vh * 1.0667 - 36vw));   /* keeps the fridge in the right half as the screen widens */
  object-fit: cover;
  opacity: .8; transition: opacity .6s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%);
}
/* the photo's own black is deeper than the ground: its top and bottom edges are folded back into the ground here */
.lineup::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ground), transparent 12%, transparent 86%, var(--ground)); }
/* the light comes up a little while a headliner is under the pointer or focused */
.lineup:has(.lu-bill a:hover) .lu-photo, .lineup:has(.lu-bill a:focus-visible) .lu-photo { opacity: 1; }

/* ---- the sheet ---- */
.lu-sheet { display: grid; gap: clamp(12px, 2vh, 20px); min-width: 0; max-width: 1080px; }
.lu-kick { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.lu-bill { display: grid; justify-items: start; }
.lu-bill a {
  display: flex; align-items: baseline; gap: .2em; min-height: 44px;
  text-decoration: none; text-transform: uppercase; color: var(--ink);
  font-family: var(--display); font-weight: 840; font-stretch: 62%; font-variation-settings: "wdth" 62;
  font-size: clamp(46px, 11.6vh, 128px); line-height: .86; letter-spacing: -.008em; white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.lu-bill li:nth-child(even) a { padding-left: 1.15em; }
/* the clip each line rises out of; the padding keeps the tops and tails of the letters inside it */
.lu-clip { display: block; overflow: hidden; padding: .06em .12em .05em 0; margin: -.06em 0 -.05em; }
.lu-in { display: block; transition: text-shadow .3s var(--ease); }
.lu-no { font: 500 12px/1 var(--mono); font-stretch: 100%; font-variation-settings: normal; letter-spacing: .1em; color: var(--mute); transition: color .3s var(--ease); }

/* supporting acts: one quieter line, the same face at a fraction of the size */
.lu-with { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(14px, 1.5vw, 22px); margin-top: 2px; }
.lu-with p { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.lu-with ul { display: contents; }
.lu-with a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  font-family: var(--display); font-weight: 760; font-stretch: 68%; font-variation-settings: "wdth" 68;
  font-size: clamp(21px, 3.3vh, 32px); line-height: 1; letter-spacing: .012em;
  transition: opacity .3s var(--ease), text-shadow .3s var(--ease);
}

/* light as the interaction: the line under the pointer (or the keyboard) lights, the rest step back */
@media (hover: hover) {
  .lu-names:has(a:hover) a:not(:hover) { opacity: .6; }
  .lu-bill a:hover .lu-in, .lu-with a:hover { text-shadow: 0 0 20px rgb(var(--led) / .42); }
  .lu-bill a:hover .lu-no { color: rgb(var(--led)); }
}
.lu-names:has(a:focus-visible) a:not(:focus-visible) { opacity: .6; }
.lu-bill a:focus-visible .lu-in, .lu-with a:focus-visible { text-shadow: 0 0 20px rgb(var(--led) / .42); }
.lineup a:focus-visible { outline: 2px solid rgb(var(--led)); outline-offset: 4px; border-radius: 4px; }
.lu-bill a:focus-visible .lu-clip { overflow: visible; }

/* ---- the venue ---- */
.lu-venue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: clamp(12px, 2vh, 18px); }
.lu-shop { background: var(--ink); color: var(--ground); min-height: 48px; }
.lu-shop:hover { box-shadow: 0 0 0 4px rgb(var(--led) / .55); }
.lu-shop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lu-addr { display: inline-flex; align-items: center; min-height: 44px; max-width: 46ch; font: 500 14px/1.4 var(--body); color: var(--mute); text-decoration: none; text-wrap: balance; transition: color .25s var(--ease); }
.lu-addr:hover { color: var(--ink); }

/* ---- entrance (armed by js/lineup.js only) ---- */
.lu-arm .lu-in { transform: translate3d(0, 108%, 0); }
.lu-arm .lu-kick, .lu-arm .lu-no, .lu-arm .lu-with, .lu-arm .lu-venue { opacity: 0; }
.lu-arm.lu-on .lu-in { transform: none; transition: transform .7s var(--ease) calc(var(--i, 0) * 55ms), text-shadow .3s var(--ease); }
.lu-arm.lu-on .lu-kick, .lu-arm.lu-on .lu-no, .lu-arm.lu-on .lu-with, .lu-arm.lu-on .lu-venue { opacity: 1; transition: opacity .6s linear .1s; }
.lu-arm.lu-on .lu-no { transition-delay: calc(var(--i, 0) * 55ms + .35s); }
.lu-arm.lu-on .lu-with { transition-delay: .42s; }
.lu-arm.lu-on .lu-venue { transition-delay: .55s; }
.lu-done .lu-clip { overflow: visible; }   /* the clip has done its job: the glow may spill */

/* ---- phone: the photo sits above, the bill runs over its foot ---- */
@media (max-width: 760px) {
  .lineup { padding-top: calc(var(--hdr) + 12px); padding-bottom: 22px; }
  .lineup::before { content: none; }
  .lu-photo { top: calc(var(--hdr) + 22px); right: auto; left: 0; width: 100%; height: min(50vh, 114vw); aspect-ratio: auto;   /* cover: only the photo's black margins are cropped */
    opacity: .9;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 46%, rgb(0 0 0 / .3) 74%, transparent); mask-image: linear-gradient(180deg, transparent, #000 7%, #000 46%, rgb(0 0 0 / .3) 74%, transparent); }
  /* the top line of the flyer: above the photo, clear of it */
  .lu-kick { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--hdr) + 14px); letter-spacing: .06em; white-space: nowrap; }
  .lu-sheet { gap: 10px; }
  .lu-bill a { font-size: clamp(44px, 6.1vh, 56px); line-height: .9; }
  .lu-bill li:nth-child(even) a { padding-left: .9em; }
  .lu-with { column-gap: 16px; }
  .lu-with p { flex-basis: 100%; padding-top: 6px; }
  .lu-with a { font-size: 22px; }
  .lu-venue { gap: 6px 16px; padding-top: 12px; }
  .lu-addr { font-size: 13px; }
}
/* short phones: the bill has to run over the whole photo, so the photo steps back to a backdrop */
@media (max-width: 760px) and (max-height: 700px) { .lu-photo { opacity: .5; } .lineup:has(.lu-bill a:hover) .lu-photo, .lineup:has(.lu-bill a:focus-visible) .lu-photo { opacity: .5; } }
/* short laptop screens: keep it to one screen */
@media (min-width: 761px) and (max-height: 720px) { .lu-bill a { font-size: clamp(40px, 9.4vh, 68px); min-height: 0; } }

@media (prefers-reduced-motion: reduce) {
  .lu-photo, .lu-bill a, .lu-in, .lu-no, .lu-with a, .lu-addr { transition: none; }
}
