/* MooshFest — Lineup page (2027 teaser + Year One cards) */

:root {
  --purple: #8B2AA8;
  --plum: #2B1546;
  --cream: #F5EEDF;
  --paper: #FFFBF0;
  --green: #45E33A;
  --yellow: #FFDE1A;
  --orange: #FF6B1A;
  --sunset: #FF8A3D;
  --pink: #FF2E86;

  --font-caps: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;

  --shadow: 8px 8px 0 rgba(43, 21, 70, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--plum);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.lu-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.lu-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */

.lu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.lu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border: 3px solid var(--plum);
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--plum);
  transition: transform 0.1s, box-shadow 0.1s;
}

.lu-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--plum);
}

.lu-btn--green { background: var(--green); }
.lu-btn--yellow { background: var(--yellow); }

.lu-link {
  padding: 10px 0;
  color: var(--plum);
  font-weight: 700;
}

.lu-link:hover { color: var(--paper); }

/* ---------- Hero: sunset orange ---------- */

.lu-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(255, 222, 26, 0.45), transparent 70%),
    linear-gradient(180deg, var(--orange) 0%, var(--sunset) 100%);
  color: var(--plum);
}

.lu-swooshes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lu-swooshes path {
  fill: none;
  stroke: #FFFFFF;
  stroke-opacity: 0.16;
  stroke-width: 64;
}

.lu-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.lu-hero__title {
  margin: 0;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 10.5rem);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--plum);
  text-shadow: 6px 6px 0 rgba(255, 251, 240, 0.35);
}

.lu-hero__sub {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lu-emoji {
  font-style: normal;
  display: inline-block;
  transform: rotate(8deg);
  animation: lu-float 2.8s ease-in-out infinite;
}

/* Gentle hover: drifts up and back, rocking a little like a tipped hat */
@keyframes lu-float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.lu-tape {
  margin: 8px 0 8px;
  padding: 10px 20px;
  background: var(--yellow);
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--plum);
}

/* ---------- Ticker ---------- */

.lu-ticker-wrap {
  overflow: hidden;
  background: var(--plum);
}

.lu-ticker {
  display: flex;
  width: max-content;
  padding: 12px 0;
  color: var(--yellow);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: lu-ticker 135s linear infinite; /* 6 copies, slides 3: slow enough to read */
}

@keyframes lu-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Last year's lineup ---------- */

.lu-section {
  padding: 56px 0 112px;
  background: var(--cream);
}

.lu-h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lu-lede {
  max-width: 40rem;
  margin: 0 0 48px;
}

.lu-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}

.lu-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lu-card:hover {
  transform: translate(-2px, -3px) rotate(-0.4deg);
  box-shadow: 11px 11px 0 rgba(43, 21, 70, 0.25);
}

.lu-card__photo {
  position: relative;
  margin: 0;
  border-bottom: 4px solid var(--plum);
}

.lu-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 582 / 407;
  object-fit: cover;
}

.lu-card__body {
  padding: 16px 18px 18px;
}

.lu-card__day {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lu-card--fri .lu-card__day { background: var(--purple); color: var(--cream); }
.lu-card--sat .lu-card__day { background: var(--green); color: var(--plum); }

.lu-card__name {
  margin: 0 0 12px;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

/* Bio toggle */
.lu-card__bio summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
  list-style: none;
}

.lu-card__bio summary::-webkit-details-marker {
  display: none;
}

.lu-card__bio summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  font-size: 16px;
  line-height: 1;
}

.lu-card__bio[open] summary::after {
  content: "−";
}

.lu-card__bio[open] summary {
  font-size: 0;
}

.lu-card__bio[open] summary::before {
  content: "Hide bio";
  font-size: 15px;
}

.lu-card__bio p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.lu-card__bio summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* Headliner: wide card, photo beside text */
.lu-card--headliner {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  background: var(--yellow);
}

.lu-card--headliner .lu-card__photo {
  flex: 1 1 420px;
  border-bottom: 0;
  border-right: 4px solid var(--plum);
}

.lu-card--headliner .lu-card__body {
  flex: 1 1 360px;
  padding: 28px 32px 30px;
  align-self: center;
}

.lu-card--headliner .lu-card__name {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.9;
}

.lu-card--headliner .lu-card__bio p {
  font-size: 17px;
}

.lu-card--headliner .lu-card__bio summary {
  color: var(--plum);
}

.lu-card__badge {
  position: absolute;
  top: 14px;
  left: -8px;
  padding: 6px 14px;
  background: var(--pink);
  color: var(--plum);
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--plum);
}

.lu-genres {
  display: inline-block;
  margin: 56px 0 0;
  padding: 12px 16px;
  background: var(--yellow);
  font-size: 16px;
  transform: rotate(-1deg);
  box-shadow: 5px 5px 0 rgba(43, 21, 70, 0.25);
}

/* ---------- Closing ---------- */

.lu-close {
  padding: 80px 0 96px;
  background: var(--plum);
  color: var(--cream);
}

.lu-close__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.lu-close__title {
  margin: 0;
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--green);
}

.lu-close__sub {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.lu-close .lu-btn { box-shadow: 5px 5px 0 var(--purple); }
.lu-close .lu-link { color: var(--yellow); }
.lu-close .lu-link:hover { color: var(--green); }

/* ---------- Footer ---------- */

.lu-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 24px;
  background: var(--plum);
  color: var(--cream);
  font-size: 14px;
  border-top: 1px solid rgba(245, 238, 223, 0.1);
}

.lu-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.lu-footer a {
  color: var(--yellow);
  padding: 8px 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .lu-hero { padding: 40px 0 64px; }

  .lu-card--headliner .lu-card__photo {
    border-right: 0;
    border-bottom: 4px solid var(--plum);
  }

  .lu-card--headliner .lu-card__body {
    padding: 20px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lu-ticker,
  .lu-emoji { animation: none; }
  .lu-card,
  .lu-btn { transition: none; }
}

.lu-nowrap {
  white-space: nowrap;
}

/* ---------- Typewriter (driven by lineup-2027.js) ---------- */

.tw-word { white-space: nowrap; }
.tw-char { visibility: hidden; }
.tw-char.is-typed { visibility: visible; }

/* Zero-width caret, so moving it never shifts the letters */
.tw-caret {
  position: relative;
  display: inline-block;
  width: 0;
}

.tw-caret::after {
  content: "";
  position: absolute;
  left: 0.05em;
  bottom: 0.02em;
  width: 0.09em;
  height: 0.8em;
  background: currentColor;
  animation: tw-blink 1s steps(1) infinite;
}

/* Solid while typing, blinks once finished */
[data-typewriter]:not(.tw-done) .tw-caret::after {
  animation: none;
}

@keyframes tw-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-caret::after { animation: none; }
}

/* ---------- "Howdy partner." letter drop (driven by lineup-2027.js) ---------- */

.drop-word {
  display: inline-block;
  white-space: nowrap;
}

.drop-char {
  display: inline-block;
  transform-origin: 50% 90%;
}

.is-dropping .drop-char {
  opacity: 0;
  animation: lu-drop 0.75s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * var(--stagger, 55ms));
}

@keyframes lu-drop {
  0%   { opacity: 0; transform: translateY(-0.9em) rotate(-14deg); }
  55%  { opacity: 1; transform: translateY(0.07em) rotate(5deg); }
  75%  { transform: translateY(-0.04em) rotate(-3deg); }
  90%  { transform: translateY(0.01em) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

/* After landing: hover sends a wave through the letters */
.is-landed:hover .drop-char {
  animation: lu-wave 0.6s ease-in-out;
  animation-delay: calc(var(--i) * 35ms);
}

@keyframes lu-wave {
  0%, 100% { transform: none; }
  40% { transform: translateY(-0.12em) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .is-dropping .drop-char,
  .is-landed:hover .drop-char {
    animation: none;
    opacity: 1;
  }
}
