/* קלאנגו / Calango Batucada
   Woodcut ink + lambe-lambe poster + fitas do Bonfim, painted logo on top. RTL. See DESIGN.md. */

:root {
  /* sampled from the logo */
  --paper: #FBF0DF;
  --paper-2: #F1E2C8;
  --ink: #17130E;
  --green: #2E592A;
  --green-lt: #7FAE62;
  --red: #D72E14;
  --sun: #F59B10;
  --sun-lt: #F6BC54;

  --display: "Karantina", "Rubik", sans-serif;
  --body: "Rubik", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --shadow: -6px 6px 0 var(--ink);
  --ease-hit: cubic-bezier(.2, 1.6, .4, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1vw + 11px, 19px);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

/* paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .05  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; right: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .5em 1em;
}
.skip:focus { top: 8px; }

.label {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6em;
}
.label::before { content: ""; width: 1.8em; height: 3px; background: currentColor; }
.label--light { color: var(--paper); }

/* faint lizard: background texture only */
.bg-lizard {
  position: absolute; z-index: 0;
  pointer-events: none;
  color: var(--ink); fill: var(--ink);
  opacity: .035;
}
.bg-lizard--hero { width: clamp(90px, 11vw, 170px); aspect-ratio: 1 / 2; left: 2%; bottom: 4%; transform: rotate(-58deg); }
.bg-lizard--dark { width: clamp(200px, 26vw, 400px); aspect-ratio: 1 / 2; left: 4%; top: -4%; transform: rotate(152deg); color: var(--paper); fill: var(--paper); opacity: .045; }
.bg-lizard--foot { width: clamp(110px, 14vw, 210px); aspect-ratio: 1 / 2; left: 6%; bottom: -8%; transform: rotate(64deg); opacity: .07; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .75em 1.25em;
  border: 3px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, -2px); box-shadow: -8px 8px 0 var(--ink); }
.btn:active { transform: translate(-4px, 4px); box-shadow: -2px 2px 0 var(--ink); }
.btn--play { background: var(--red); color: var(--paper); }
.btn--ghost { background: transparent; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: -6px 6px 0 var(--red); }
.btn--ink:hover { box-shadow: -8px 8px 0 var(--red); }
.btn--wa { background: var(--green); color: var(--paper); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.btn--ig { background: var(--paper); color: var(--ink); }
.btn__wa { width: 1.3em; height: 1.3em; flex: none; }

/* play / stop icon */
.btn__icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: .5em 0 .5em .8em;
  border-color: transparent transparent transparent currentColor;
}
[aria-pressed="true"] .btn__icon { width: .8em; height: .8em; border: 0; background: currentColor; }
[aria-pressed="true"].btn--play { animation: pulse-btn .5s ease-in-out infinite alternate; }
@keyframes pulse-btn { to { box-shadow: -10px 10px 0 var(--ink); } }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
}
.top__brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-family: var(--display); font-weight: 700;
  font-size: 2.1rem; line-height: .8;
}
.top__brand em { display: block; font-style: normal; font-family: var(--body); font-weight: 800; font-size: .38em; line-height: 1.3; color: var(--red); }
.top__logo { width: 52px; height: 48px; object-fit: contain; }
.top__nav { display: flex; gap: clamp(.8rem, 2.2vw, 2rem); align-items: center; }
.top__nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.top__nav a:not(.top__cta):hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.top__cta { background: var(--ink); color: var(--paper); padding: .4em .9em; transform: rotate(2deg); display: inline-block; }
.top__cta:hover { background: var(--red); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(48px, 6vw, 80px);
  border-top: 3px solid var(--ink);
  margin-inline: var(--gutter);
  padding-inline: 0;
}
.hero > *:not(.bg-lizard) { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__logo { position: relative; justify-self: center; }
.hero__logo img {
  width: auto;
  height: min(62svh, 620px);
  max-width: 100%;
  object-fit: contain;
  transform-origin: 50% 40%;
}
.hero__logo img.thump { animation: thump .26s var(--ease-hit); }
@keyframes thump {
  0% { transform: scale(.96) rotate(-1.4deg); }
  45% { transform: scale(1.03) rotate(.8deg); }
  100% { transform: none; }
}
.confetti { position: absolute; left: 45%; top: 32%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.confetti i {
  position: absolute; left: 0; top: 0;
  width: var(--w, 10px); height: var(--h, 22px);
  background: var(--c);
  border: 1.5px solid var(--ink);
  animation: confetti var(--t, 1.1s) cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0deg) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; }
}
.hero__tag {
  position: absolute; left: -6%; bottom: -7%;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .9;
  color: var(--paper);
  background: var(--green);
  padding: .02em .3em .1em;
  transform: rotate(-6deg);
  box-shadow: var(--shadow);
}

.hero__side { position: relative; padding-top: clamp(40px, 5vw, 72px); max-width: 540px; }
.hero__stamp {
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: .9;
  color: var(--red);
  border: 4px solid currentColor;
  padding: .35em .6em .45em;
  transform: rotate(-8deg);
  filter: url(#ink);
  text-align: center;
}
.hero__stamp strong { font-size: 2.2em; display: block; line-height: .8; }
.hero__stamp.whistle { animation: shake .45s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotate(-8deg); }
  20% { transform: rotate(-16deg) scale(1.12); }
  40% { transform: rotate(0deg) scale(1.08); }
  60% { transform: rotate(-13deg) scale(1.05); }
  80% { transform: rotate(-5deg); }
}

.hero__word { font-family: var(--display); font-weight: 700; line-height: .78; user-select: none; }
.hero__small { display: block; font-size: clamp(2.4rem, 4.6vw, 4.4rem); color: var(--green); }
.hero__big { display: block; font-size: clamp(7rem, 17vw, 17rem); white-space: nowrap; margin-top: .05em; }

/* letters that dance to the recording */
.dance .w { display: inline-block; transform-origin: 50% 90%; --hc: var(--ink); }
.dance .w:nth-child(3n+1) { --hc: var(--red); }
.dance .w:nth-child(3n+2) { --hc: var(--sun); }
.dance .w:nth-child(3n) { --hc: var(--green); }
.dance .w:hover { color: var(--hc); }
.dance .w.hit { animation: jump var(--dur, .42s) var(--ease-hit); }
@keyframes jump {
  0% { transform: none; }
  35% { transform: translate(var(--dx, 0), var(--dy, -.18em)) rotate(var(--rot, 0deg)) scale(var(--s, 1.1)); color: var(--hc); }
  100% { transform: none; }
}
.is-live .dance { transform: scale(calc(1 + var(--energy, 0) * .05)); transform-origin: 50% 80%; }

.hero__lede { max-width: 36ch; font-size: 1.12em; font-weight: 500; margin: clamp(20px, 2.6vw, 32px) 0 clamp(22px, 3vw, 34px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; }
.ig-link {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem;
  padding: .45rem .9rem .45rem 1.1rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none; font-weight: 500;
  transform: rotate(-1.5deg);
  transition: transform .15s, background .15s;
}
.ig-link svg { width: 1.35em; height: 1.35em; flex: none; color: var(--red); }
.ig-link b { font-weight: 800; }
.ig-link:hover { background: var(--sun); transform: rotate(0deg) scale(1.03); }

/* ---------- fitas ---------- */
.fitas { position: relative; z-index: 2; margin: 0 -2vw; }
.fita {
  overflow: hidden; white-space: nowrap;
  font-weight: 800;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  padding: .25em 0;
  border-block: 2px solid var(--ink);
}
.fita span { display: inline-block; animation: fita 28s linear infinite; }
.fita--sun { background: var(--sun); transform: rotate(1.2deg); }
.fita--green { background: var(--green); color: var(--paper); transform: rotate(-.6deg); margin-top: -4px; }
.fita--green span { animation-duration: 36s; animation-direction: reverse; }
.fita--red { background: var(--red); color: var(--paper); transform: rotate(.4deg); margin-top: -4px; }
.fita--red span { animation-duration: 22s; }
.fitas.bump .fita--sun { animation: bump-sun .32s var(--ease-hit); }
.fitas.bump .fita--green { animation: bump-green .32s var(--ease-hit) .04s; }
.fitas.bump .fita--red { animation: bump-red .32s var(--ease-hit) .08s; }
@keyframes bump-sun { 40% { transform: translateY(-7px) rotate(2.2deg); } }
@keyframes bump-green { 40% { transform: translateY(-6px) rotate(-1.6deg); } }
@keyframes bump-red { 40% { transform: translateY(-5px) rotate(1.3deg); } }
/* RTL: the text overflows to the left, so the loop moves right */
@keyframes fita { to { transform: translateX(50%); } }

/* ---------- shows ---------- */
.shows {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(72px, 11vw, 150px) var(--gutter);
}
.shows__photo {
  position: relative;
  background: #fff;
  padding: 12px 12px 44px;
  transform: rotate(3deg);
  box-shadow: -10px 12px 0 var(--ink);
  justify-self: center;
  max-width: 460px;
}
.shows__photo img { width: 100%; height: auto; }
.shows__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(4rem, 9vw, 8.5rem); line-height: .78;
  margin-bottom: 1.4rem;
}
.shows__intro { max-width: 44ch; font-size: 1.12em; }

.events { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0; border-top: 3px solid var(--ink); }
.events li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .2rem 1.6rem; align-items: baseline;
  padding: .8rem 0;
  border-bottom: 1px solid var(--ink);
  transition: padding .15s, background .15s;
}
.events li:hover { padding-inline-start: .8rem; background: var(--sun); }
.events b { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; }
.shows__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.shows__note { font-weight: 500; }

/* ---------- batucada ---------- */
.batucada {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
}
.batucada > *:not(.bg-lizard) { position: relative; z-index: 1; }
.batucada__head { display: grid; gap: 1.2rem; justify-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.batucada__head .label { margin: 0; }
.batucada__intro { max-width: 46ch; }
.batucada__title { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 10vw, 9rem); line-height: .78; color: var(--sun); }
.batucada__intro { color: var(--paper-2); font-size: 1.1em; }

.kit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); }
.kit li {
  display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: .2rem 1.4rem; align-items: baseline;
  padding: 1rem 0;
  border-top: 1px dashed rgba(251, 240, 223, .35);
}
.kit b { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: .9; color: var(--c); }
.kit span { color: var(--paper-2); }

/* ---------- join ---------- */
.join {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(72px, 11vw, 150px) var(--gutter);
}
.poster-wrap { position: relative; filter: drop-shadow(-10px 12px 0 rgba(23, 19, 14, .92)); }
.poster {
  position: relative;
  background: var(--sun);
  padding: clamp(40px, 5vw, 64px) clamp(22px, 4vw, 56px) clamp(40px, 5vw, 60px);
  transform: rotate(1.8deg);
  /* torn top/bottom edges */
  clip-path: polygon(0% 2%, 6% 0%, 13% 1.6%, 21% .3%, 30% 1.8%, 38% .2%, 47% 1.4%, 55% 0%, 63% 1.9%, 72% .5%, 80% 1.6%, 88% .1%, 95% 1.5%, 100% .4%,
    100% 98.6%, 94% 100%, 86% 98.3%, 78% 99.8%, 69% 98.4%, 60% 100%, 52% 98.7%, 43% 99.9%, 35% 98.2%, 26% 99.7%, 18% 98.5%, 9% 100%, 3% 98.4%, 0% 99.6%);
}
.poster::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 19, 14, .16) 1.2px, transparent 1.4px);
  background-size: 9px 9px;
  mask-image: linear-gradient(225deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(225deg, transparent 40%, #000 100%);
}
.poster > * { position: relative; }
.tape {
  position: absolute; z-index: 2; top: 4px; width: 110px; height: 30px;
  background: rgba(251, 240, 223, .8);
  border-left: 2px dashed rgba(23, 19, 14, .15); border-right: 2px dashed rgba(23, 19, 14, .15);
}
.tape--l { left: -18px; transform: rotate(-32deg); }
.tape--r { right: -18px; transform: rotate(28deg); }
.shows__photo .tape { top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.poster__kicker { font-weight: 800; font-size: 1.05rem; border-bottom: 3px solid var(--ink); padding-bottom: .3rem; display: inline-block; }
.poster__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(5rem, 10.5vw, 10rem); line-height: .75;
  margin: 1.2rem 0 .6rem;
}
.poster__list { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: .7rem; }
.poster__list li { padding-inline-start: 1.7rem; position: relative; max-width: 44ch; }
.poster__list li::before { content: ""; position: absolute; right: 0; top: .5em; width: .75rem; height: .75rem; background: var(--red); border: 2px solid var(--ink); transform: rotate(45deg); }

.join__side h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: .85; margin-bottom: 1rem; }
.join__side p { max-width: 38ch; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--red); color: var(--paper); padding: clamp(56px, 9vw, 120px) var(--gutter) 28px; }
.foot > *:not(.bg-lizard) { position: relative; z-index: 1; }
.foot__big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(6rem, 20vw, 19rem); line-height: .74;
  color: var(--ink);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.foot__cols { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem clamp(2rem, 8vw, 8rem); padding-top: 1.4rem; border-top: 3px solid var(--ink); }
.foot__cols .label { color: var(--ink); }
.foot .btn--ink { box-shadow: -6px 6px 0 var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { margin-bottom: 1.6rem; }
  .hero__logo img { height: auto; width: min(74vw, 440px); }
  .confetti { position: absolute; left: 45%; top: 32%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.confetti i {
  position: absolute; left: 0; top: 0;
  width: var(--w, 10px); height: var(--h, 22px);
  background: var(--c);
  border: 1.5px solid var(--ink);
  animation: confetti var(--t, 1.1s) cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0deg) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; }
}
.hero__tag { left: -2%; bottom: -6%; }
  .shows { grid-template-columns: 1fr; }
  .shows__photo { max-width: 340px; }
  .kit { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top__nav a:not(.top__cta) { display: none; }
  .hero__big { font-size: 38vw; }
  .events li, .kit li { grid-template-columns: 1fr; }
  .tape { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fita span { animation: none; }
  .dance .w.hit, .hero__logo img.thump, .hero__stamp.whistle, [aria-pressed="true"].btn--play, .fitas.bump .fita { animation: none; }
  .confetti { display: none; }
  .is-live .dance { transform: none; }
  * { transition-duration: 0s !important; }
}
