/* The homepage below the front (founder, 19 Nov 2026: "make it live"): the lineup, the four stages, the crate and the
   Sunday Edit as a wristband. Paper and black, photographs in their own colour, and nothing moves by itself.
   Only index.html reads this file. The front keeps front.css; everything else comes from editorial.css.
   scripts/front.py writes the lineup, the featured story and the crate from what is published. */

/* ───── The lineup: TLTBE. presents, billed like a festival poster, the newest biggest ───── */
.lineup { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 128px) var(--m) clamp(56px, 8vw, 112px); background: var(--ink); color: var(--paper); text-align: center; container-type: inline-size; }
.lineup :focus-visible { outline-color: var(--paper); }
.lineup-ground { position: absolute; inset: 0; z-index: -2; }
.lineup-ground img { object-position: 50% 35%; }
.lineup::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(10 10 10 / 0.86), rgb(10 10 10 / 0.42) 32%, rgb(10 10 10 / 0.5) 62%, rgb(10 10 10 / 0.94)); } /* taste-skill-ignore: a neutral scrim so the bill reads on the photograph */
.lineup-kicker { font: 900 0.75rem/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.lineup-label { margin-top: 8px; font: 700 0.6875rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.86; }
.lineup-acts { list-style: none; max-width: 1180px; margin: clamp(24px, 3.4vw, 48px) auto 0; }
/* --n is the longer line's length in characters (front.py), so a short name runs big and a long one still fits.
   Bebas capitals average under 0.44em wide. */
.act-1 a, .act-2 a, .act-3 a { display: inline-block; font-family: var(--cond); font-weight: 400; line-height: 0.84; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.act-1 a { font-size: min(calc(100cqi / (var(--n) * 0.44)), clamp(5.5rem, 13vw, 11rem)); }
.act-2 a { font-size: min(calc(100cqi / (var(--n) * 0.44)), clamp(4.25rem, 8vw, 7rem)); }
.act-3 a { font-size: min(calc(100cqi / (var(--n) * 0.44)), clamp(2.5rem, 4.4vw, 4rem)); }
.act + .act { margin-top: clamp(16px, 2vw, 28px); }
.act-3 + .act-3 { margin-top: 6px; }
.act-sub { display: block; margin-top: 8px; font: 700 0.6875rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.86; }
.act-4 { max-width: 30em; margin-inline: auto; font: 400 clamp(1.4375rem, 2.2vw, 2rem)/1.15 var(--cond); text-transform: uppercase; opacity: 0.9; }
.act-4 a { display: inline; }
.lineup-foot { margin-top: clamp(28px, 3.4vw, 48px); font: 700 0.6875rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
@media (hover: hover) and (pointer: fine) { .lineup-acts a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.1em; } }

/* ───── An article as the featured story: its headline is sized to fit, like the front's ───── */
.feat-article .feat-title { font-size: min(calc(500cqi / 12 / (var(--n) * 0.44)), 12rem); text-wrap: balance; }
.feat-article .feat-title a { white-space: normal; }
.feat-article .feat-photo a { aspect-ratio: 4 / 5; }

/* ───── Four stages: the four pillars, on black ───── */
.pillars { background: var(--ink); color: var(--paper); padding-top: clamp(48px, 6vw, 96px); }
.stages-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 10px; margin-bottom: clamp(18px, 2.2vw, 32px); border-top: 4px solid var(--paper); }
.stages-head h2 { font: 400 clamp(3.75rem, 8vw, 8rem)/0.85 var(--cond); text-transform: uppercase; }
.stages-head .label { opacity: 0.8; text-align: right; }

/* ───── The crate: every story, song and photograph so far, as sleeves ───── */
.crate { padding: clamp(40px, 5vw, 80px) var(--m) clamp(48px, 6vw, 96px); }
.crate-head { padding-top: 10px; border-top: 4px solid var(--ink); }
.crate-head h2 { font: 400 clamp(3.75rem, 8vw, 8rem)/0.85 var(--cond); text-transform: uppercase; }
.crate-head p { margin-top: 8px; font-size: 1.0625rem; color: var(--grey); }
.crate-row { list-style: none; display: flex; gap: 12px; margin: 20px calc(-1 * var(--m)) 0; padding: 0 var(--m) 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--m); scrollbar-width: none; }
.crate-row::-webkit-scrollbar { display: none; }
.crate-row li { flex: 1 0 clamp(150px, 18vw, 240px); max-width: 320px; scroll-snap-align: start; }
.sleeve { display: block; }
.sleeve-art { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: var(--hold); color: var(--paper); }
.sleeve-art b { font: 400 3rem/1 var(--cond); }
.sleeve-t { display: block; margin-top: 10px; font: 400 1.625rem/0.9 var(--cond); text-transform: uppercase; }
.sleeve-l { display: block; margin-top: 6px; font: 700 0.6875rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
@media (hover: hover) and (pointer: fine) { .sleeve:hover .sleeve-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; } }

/* ───── The Sunday Edit as a wristband ───── */
.wristband .band { grid-column: 1 / -1; height: 40px; margin-bottom: clamp(18px, 2.4vw, 32px); overflow: hidden; white-space: nowrap; padding: 0 0.8em; background: var(--paper); color: var(--ink); font: 900 0.75rem/40px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }

@media (max-width: 820px) {
  .stages-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stages-head .label { text-align: left; }
  .feat-article .feat-title { font-size: min(calc(100cqi / (var(--n) * 0.44)), 6rem); }
}
