/* Llamador: the loom. The page is a San Jacinto hammock: bands of solid colour from edge to
   edge, with the rhythm woven inside the bands. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-var.woff2?v=9965ee51c8") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --amarillo: #FFC928;  /* yellow hammock thread */
  --fucsia: #E8268F;    /* fuchsia thread */
  --naranja: #FF6A13;   /* orange thread */
  --verde: #2BA84A;     /* green thread */
  --morado: #5B2A86;    /* purple thread */
  --crudo: #FFF0C8;     /* undyed cotton */
  --tinta: #000;        /* the gaita head: beeswax and charcoal */
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--amarillo);
  color: var(--tinta);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 450;
  font-stretch: 100%;
  font-optical-sizing: auto;
  line-height: 1.35;
}

p, h2, dl, dd { margin: 0; }

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

.oculto {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header: one line, like the label sewn into the hammock */
.cabeza {
  padding: 14px var(--gutter);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 500;
}
.cabeza strong { font-weight: 800; }

/* ---------- The loom ---------- */

.telar {
  position: relative;
  display: grid;
}

.banda {
  position: relative;
  width: 100%;
}
.banda > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.banda-maraca   { background: var(--verde);   height: clamp(30px, 5vh, 60px); }
.banda-llamador { background: var(--naranja); height: clamp(60px, 12vh, 130px); }
.banda-tambora  { background: var(--fucsia);  height: clamp(70px, 14vh, 150px); }
.banda-alegre   { background: var(--morado);  height: clamp(90px, 18vh, 200px); }

.golpe { transition: fill 90ms linear; }
.banda-maraca   .golpe.fuerte { fill: var(--tinta); } .banda-maraca   .golpe.suave { fill: var(--crudo); }
.banda-llamador .golpe.fuerte { fill: var(--tinta); }
.banda-tambora  .golpe.fuerte { fill: var(--tinta); } .banda-tambora  .golpe.suave { fill: var(--crudo); }
.banda-alegre   .golpe.fuerte { fill: var(--crudo); } .banda-alegre   .golpe.suave { fill: var(--amarillo); }
.banda .golpe.on { fill: #fff; }
.banda-alegre .golpe.on { fill: var(--amarillo); }

/* The needle: the shuttle crossing the loom at the tempo of the air */
.aguja {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  margin-left: -1px;
  background: var(--tinta);
  opacity: 0;
  pointer-events: none;
}
.telar.anda .aguja { opacity: 0.6; }

/* Title band */
.banda-titulo {
  background: var(--amarillo);
  padding: clamp(18px, 3.5vw, 48px) var(--gutter) clamp(26px, 4vw, 60px);
  display: grid;
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: end;
}
@media (min-width: 900px) {
  .banda-titulo { grid-template-columns: minmax(0, 1fr) auto; }
  .banda-titulo .marca { grid-column: 1 / -1; }
  .banda-titulo .titulo-texto { grid-column: 1; }
  .banda-titulo .mando { grid-column: 2; justify-self: end; }
}

.marca {
  font-weight: 800;
  font-stretch: 100%;
  font-size: min(17.2vw, 20rem); /* «LLAMADOR» measures about 4.9 em in Bricolage 800: fits from 320 px */
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.08em -0.03em;
  white-space: nowrap;
}
h1 {
  margin: 0;
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.frase {
  font-weight: 450;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.3;
  max-width: 40ch;
  margin-top: 12px;
}

.mando {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.mando button {
  font: inherit;
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  min-height: 46px;
  padding: 0.5em 0.95em;
  border: 3px solid var(--tinta);
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
  border-radius: 0;
}
.mando .aire[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--amarillo);
}
.mando .oir {
  background: var(--crudo);
  margin-left: 4px;
}
.mando .oir[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--crudo);
}

.leyenda {
  padding: 16px var(--gutter) 22px;
  max-width: calc(68ch + 2 * var(--gutter));
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

/* ---------- One music, four nights ---------- */

.que {
  background: var(--crudo);
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(36px, 5.5vw, 80px);
  display: grid;
  gap: 32px clamp(24px, 5vw, 96px);
}
@media (min-width: 900px) {
  .que { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
h2 {
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 0.5em;
}
.que-texto p {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}
.que-texto p + p { margin-top: 1em; }

.conjunto {
  display: grid;
  gap: 14px 24px;
  align-self: end;
}
@media (min-width: 560px) {
  .conjunto { grid-template-columns: 1fr 1fr; }
}
.conjunto > div {
  border-top: 3px solid var(--tinta);
  padding-top: 10px;
}
.conjunto dt {
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1;
  margin-bottom: 6px;
}
.conjunto dd {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  max-width: 38ch;
}

/* ---------- The nights: five more bands ---------- */

.noche {
  padding: clamp(26px, 4.5vw, 64px) var(--gutter) clamp(30px, 5vw, 72px);
  display: grid;
  gap: 18px clamp(24px, 5vw, 96px);
}
@media (min-width: 760px) {
  .noche { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
}

.noche-gaita  { background: var(--verde);  color: var(--tinta); }
.noche-cumbia { background: var(--fucsia); color: var(--tinta); }
.noche-porro  { background: var(--naranja); color: var(--tinta); }
.noche-puya   { background: var(--morado); color: var(--crudo); }
.noche-dia    { background: var(--amarillo); color: var(--tinta); }

.noche-cuando p:first-child {
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.25;
}
.noche-aire {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4.2rem, 22vw, 9rem);
  line-height: 0.84;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0.1em 0 0 -0.02em;
}
@media (min-width: 760px) {
  .noche-aire { font-size: min(16vw, 20rem); }
}
.noche-que {
  display: grid;
  gap: 14px;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.35;
}
.noche-dato { font-weight: 700; }

.mini {
  width: 100%;
  aspect-ratio: 16 / 4.5;
  display: grid;
  grid-template-rows: 1fr 2fr 2.4fr 2.8fr;
  gap: 3px;
}
.mini > svg { width: 100%; height: 100%; display: block; }
.noche-gaita  .mini .fuerte { fill: var(--tinta); } .noche-gaita  .mini .suave { fill: var(--crudo); }
.noche-cumbia .mini .fuerte { fill: var(--tinta); } .noche-cumbia .mini .suave { fill: var(--crudo); }
.noche-porro  .mini .fuerte { fill: var(--tinta); } .noche-porro  .mini .suave { fill: var(--crudo); }
.noche-puya   .mini .fuerte { fill: var(--crudo); } .noche-puya   .mini .suave { fill: var(--amarillo); }
.mini .fondo { fill: rgba(0, 0, 0, 0.14); }
.noche-puya .mini .fondo { fill: rgba(255, 255, 255, 0.12); }

/* ---------- Getting there ---------- */

.llegar {
  background: var(--crudo);
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(36px, 5.5vw, 80px);
}
.llegar-cols {
  display: grid;
  gap: 18px clamp(24px, 5vw, 96px);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}
@media (min-width: 760px) {
  .llegar-cols { grid-template-columns: 1fr 1fr; }
}
.llegar-cols p { max-width: 52ch; }

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

.pie {
  background: var(--tinta);
  color: var(--crudo);
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 88px);
  display: grid;
  gap: 32px clamp(24px, 5vw, 96px);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  align-items: end;
}
@media (min-width: 760px) {
  .pie { grid-template-columns: 1fr 1fr; }
}
.pie h2 {
  color: var(--crudo);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 10px;
}
.pie p { max-width: 54ch; }
.pie .credito { color: var(--amarillo); font-weight: 600; }
.pie .pie-fecha { margin-top: 12px; }
.pie :focus-visible { outline-color: var(--amarillo); }

@media (prefers-reduced-motion: reduce) {
  .golpe { transition: none; }
}
