/* Lil Strk grunge layer
   Loaded after styles.css so the base layout and palette stay reusable. */

:root {
  --grunge-paper: #e7e1d2;
  --grunge-charcoal: #20201d;
  --grunge-rust: #a73527;
  --grunge-tape: #d4c5a5;
}

/* A warmer paper field with a coarse photocopy grain. */
body {
  background-color: var(--grunge-paper);
  background-image:
    linear-gradient(106deg, transparent 0 18%, #ffffff16 18.1% 18.3%, transparent 18.4% 100%),
    radial-gradient(ellipse at 12% 21%, #ffffff20 0 1px, transparent 2px),
    radial-gradient(ellipse at 78% 68%, #20201d0c 0 1px, transparent 2px);
  background-size: auto, 97px 83px, 131px 119px;
}

body::before {
  opacity: .075;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 29;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 4px, #20201d08 4px 5px),
    repeating-linear-gradient(91deg, transparent 0 7px, #a7352710 7px 8px);
}

/* Make oversized display type feel like a two-pass screen print. */
h1,
.section-title,
.stage h2,
.flock-heading h2 {
  text-shadow: 2px 1px 0 #a7352755, -1px 1px 0 #20201d20;
  mask-image: url('./assets/ink-wear.svg');
  mask-mode: luminance;
  mask-size: 640px 240px;
  mask-repeat: repeat;
}

h1::after,
.section-title::after,
.stage h2::after,
.flock-heading h2::after {
  content: none;
}

.hero-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  color: var(--paper);
  background: var(--grunge-charcoal);
  box-shadow: 3px 3px 0 var(--grunge-rust);
  transform: rotate(-1.5deg);
}

.hero-eyebrow .tiny-cross {
  color: var(--yellow);
}

.button-red {
  box-shadow: 3px 3px 0 var(--ink);
}

.photo-frame {
  background-color: #eee7d7;
  box-shadow: 8px 9px 0 #20201d26;
}

/* Physical border language: small marks and tape at major poster blocks. */
.header,
.lore,
.roadmap,
.footer {
  position: relative;
}

.header::after,
.lore::after,
.roadmap::after,
.footer::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 17px;
  background: var(--grunge-tape);
  opacity: .48;
  mix-blend-mode: multiply;
  clip-path: polygon(0 12%, 9% 0, 19% 10%, 32% 3%, 43% 12%, 58% 2%, 74% 9%, 100% 0, 96% 89%, 80% 100%, 63% 91%, 48% 98%, 31% 89%, 17% 100%, 4% 90%);
}

.header::after { right: 10%; bottom: -8px; transform: rotate(-3deg); }
.lore::after { left: 7%; top: 48px; transform: rotate(7deg); }
.roadmap::after { right: 5%; bottom: 50px; transform: rotate(-8deg); }
.footer::after { left: 23%; top: -8px; transform: rotate(4deg); }

/* Sparse ink damage on the hero field rather than a second competing image. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: 48px 9% 92px 2%;
  opacity: .25;
  mix-blend-mode: multiply;
  background:
    linear-gradient(173deg, transparent 0 22%, #a7352718 22.2% 22.8%, transparent 23% 100%),
    radial-gradient(ellipse at 6% 78%, #20201d26 0 1px, transparent 2px),
    radial-gradient(ellipse at 93% 27%, #20201d22 0 2px, transparent 3px);
  clip-path: polygon(0 5%, 17% 1%, 31% 4%, 48% 0, 62% 3%, 80% 1%, 100% 5%, 98% 98%, 80% 95%, 63% 99%, 41% 96%, 22% 100%, 2% 96%);
}

.hero::after {
  width: 150px;
  height: 24px;
  right: 18%;
  bottom: 142px;
  background: var(--grunge-tape);
  opacity: .4;
  transform: rotate(-5deg);
  clip-path: polygon(0 10%, 15% 0, 31% 11%, 51% 3%, 68% 12%, 84% 2%, 100% 10%, 96% 90%, 81% 100%, 61% 89%, 45% 98%, 28% 90%, 9% 100%);
}

.hero-copy,
.hero-art,
.hero-bottom { z-index: 1; }

/* Xerox misregistration on stickers and paper labels. */
.floating-sticker,
.swag-sticker,
.lore-sticker,
.flock-stamp {
  box-shadow: 3px 4px 0 var(--grunge-rust), 6px 7px 0 #20201d30;
}

.floating-sticker::after,
.swag-sticker::after,
.lore-sticker::after,
.flock-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #20201d38;
  pointer-events: none;
  clip-path: polygon(0 4%, 26% 0, 48% 3%, 73% 0, 100% 4%, 97% 48%, 100% 96%, 72% 100%, 49% 97%, 22% 100%, 0 95%, 3% 50%);
}

/* The yellow tape ticker gets a rough hand-torn edge. */
.ticker {
  border-top-color: var(--grunge-charcoal);
  border-bottom-color: var(--grunge-charcoal);
  filter: saturate(.94);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 2;
  pointer-events: none;
  background: var(--grunge-paper);
  clip-path: polygon(0 25%, 5% 75%, 10% 32%, 17% 80%, 23% 35%, 30% 72%, 39% 22%, 46% 76%, 54% 31%, 62% 83%, 70% 25%, 78% 74%, 86% 30%, 94% 79%, 100% 26%, 100% 100%, 0 100%);
}

.ticker::before { top: -1px; }
.ticker::after { bottom: -1px; transform: rotate(180deg); }

/* Dark stage feels like a pasted concert print with worn corners. */
.stage {
  border-block: 2px solid var(--grunge-charcoal);
  clip-path: polygon(0 9px, 3% 4px, 7% 11px, 11% 2px, 15% 8px, 19% 0, 23% 9px, 28% 4px, 32% 12px, 37% 2px, 41% 7px, 45% 0, 49% 10px, 54% 3px, 59% 9px, 64% 1px, 68% 8px, 73% 3px, 78% 11px, 82% 0, 87% 8px, 92% 2px, 96% 10px, 100% 4px, 100% calc(100% - 9px), 96% calc(100% - 2px), 92% calc(100% - 10px), 87% calc(100% - 4px), 82% 100%, 77% calc(100% - 7px), 72% calc(100% - 1px), 67% calc(100% - 10px), 62% calc(100% - 4px), 57% 100%, 53% calc(100% - 9px), 48% calc(100% - 3px), 43% calc(100% - 11px), 38% calc(100% - 2px), 34% calc(100% - 7px), 29% 100%, 24% calc(100% - 9px), 19% calc(100% - 4px), 14% calc(100% - 10px), 9% calc(100% - 1px), 4% calc(100% - 8px), 0 calc(100% - 3px));
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .38;
  mix-blend-mode: screen;
  background: linear-gradient(97deg, transparent 0 38%, #f5f2e80a 38.2% 39%, transparent 39.2% 100%);
  clip-path: polygon(0 0, 100% 0, 98% 4%, 100% 8%, 98% 13%, 100% 18%, 98% 25%, 100% 32%, 98% 41%, 100% 49%, 98% 57%, 100% 64%, 98% 74%, 100% 82%, 98% 91%, 100% 100%, 0 100%, 2% 92%, 0 84%, 2% 75%, 0 67%, 2% 57%, 0 48%, 2% 40%, 0 30%, 2% 21%, 0 12%, 2% 5%);
}

.stage-content {
  position: relative;
  z-index: 2;
}

.stage-corner { z-index: 2; }

.tracklist {
  border-left: 2px solid #a7352744;
  border-right: 1px solid #20201d24;
  transform: rotate(-.25deg);
}

.track summary:hover,
.track[open] { background-image: linear-gradient(97deg, #a735270d 0 18%, transparent 18.5% 100%); }

/* Make the purple flock panel read like a pasted back-page poster. */
.flock {
  background-image:
    linear-gradient(166deg, transparent 0 71%, #20201d12 71.2% 71.8%, transparent 72%),
    radial-gradient(ellipse at 78% 22%, #ffffff1c 0 1px, transparent 2px);
  background-size: auto, 91px 79px;
}

.social-card {
  position: relative;
}

.social-card::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--grunge-rust);
  opacity: .35;
  transform: rotate(.8deg);
}

/* Preserve clear keyboard focus above every texture layer. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline-color: var(--grunge-rust);
  outline-offset: 7px;
}

@media (max-width: 600px) {
  body::after { opacity: .16; }
  .header::after { right: 20%; width: 54px; height: 13px; }
  .lore::after { left: 12%; top: 26px; width: 56px; height: 13px; }
  .roadmap::after { right: 11%; bottom: 28px; width: 54px; height: 13px; }
  .footer::after { left: 31%; width: 51px; height: 12px; }
  .hero::before { inset: 20px 0 40px; }
  .hero::after { right: 7%; bottom: 72px; width: 92px; height: 15px; }
  .tracklist { border-left-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { opacity: .12; }
  .hero::before,
  .hero::after,
  .ticker::before,
  .ticker::after { transform: none; }
}

/* A live B-side printed on the same underground poster. */
.market-panel {
  margin-top: 48px;
  background: #171716;
  color: #e7e1d2;
  border: 2px solid #171716;
  box-shadow: 7px 7px 0 rgba(23, 23, 22, .2);
}
.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 22px;
  border-bottom: 1px dashed #656052;
}
.market-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.market-heading h3 { font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1; margin: 9px 0 0; }
.market-chart-link { padding: 12px 15px; border: 1px solid #e7e1d2; font-size: 11px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.market-chart-link:hover { background: #f4cb37; color: #171716; }
.contract-strip { display: flex; align-items: center; gap: 16px; padding: 17px 28px; border-bottom: 1px dashed #656052; flex-wrap: wrap; }
.contract-strip code { font-size: 12px; word-break: break-all; color: #f4cb37; flex: 1; min-width: 130px; }
.contract-strip button { background: #f4cb37; color: #171716; border: 0; padding: 10px 13px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.market-chart { height: 340px; }
.market-chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: repeating-linear-gradient(-9deg, transparent 0 35px, rgba(231,225,210,.025) 36px 37px); }
.chart-record { color: #f4cb37; font-size: 52px; line-height: 1; }
.chart-placeholder strong { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.chart-placeholder p { color: #aaa699; font-size: 13px; margin: 0; }
.flock-links:not(:has(a:not([hidden]))) { display: none; }
@media (max-width: 600px) {
  .market-heading { padding: 22px 18px; align-items: flex-start; }
  .market-heading h3 { font-size: 34px; }
  .market-chart-link { padding: 11px 9px; font-size: 9px; }
  .contract-strip { padding: 17px 18px; gap: 10px; }
  .contract-strip .market-label { width: 100%; }
  .market-chart { height: 280px; }
  .chart-placeholder strong { font-size: 26px; }
}

[hidden] { display: none !important; }
