/* PlayJazz Festival — folha de estilo única (landing "Holofote").
   Identidade: preto + amarelo do logo e do cartaz; Archivo (largura e peso variáveis) como tipografia única.
   Contraste dos pares de cor: docs/contraste.md. Sem <style> nem style="" no HTML (o CSP do servidor proíbe). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-normal-latin.woff2") format("woff2");
}

:root {
  /* cor */
  --pj-black: #0a0a0b;
  --pj-ink-1: #121215;
  --pj-ink-2: #1b1b20;
  --pj-line: #34343c;
  --pj-line-ui: #7a7a85;
  --pj-line-ticket: #a3a3ae;
  --pj-white: #f6f3ec;
  --pj-mute: #b9b6ae;
  --pj-yellow: #f5d13d;
  --pj-yellow-press: #ffe066;
  --pj-on-yellow: #0a0a0b;

  /* tipografia */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --display-stretch: 62%;
  --display-weight: 900;
  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: 1.625rem;
  --fs-5: clamp(2.25rem, 4.2vw, 3.75rem);
  --lh-tight: 0.86;
  --lh-body: 1.6;
  --track-caps: 0.16em;

  /* foto do trompete em duotone preto -> âmbar (a camada âmbar é .tom, em multiply) */
  --photo-duo: grayscale(1) contrast(1.12) brightness(1.45);

  /* espaço, forma */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --radius-s: 3px;
  --radius-m: 10px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--pj-black);
  color: var(--pj-white);
  font: 400 var(--fs-2) / var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--pj-yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.sprite { position: absolute; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--pj-yellow); color: var(--pj-on-yellow); padding: 10px 16px; font-weight: 700; }
.pular:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.disp { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); text-transform: uppercase; line-height: var(--lh-tight); letter-spacing: -0.005em; }
.caps { font-size: var(--fs-0); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; }
.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* botões: 1 primário na página (WhatsApp); o resto é contorno ou link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); font: 700 var(--fs-1) / 1.1 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; background: none; color: inherit; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn-primary { background: var(--pj-yellow); color: var(--pj-on-yellow); min-height: 58px; padding: 0 32px; font-size: 1.0625rem; }
.btn-primary:hover { background: var(--pj-yellow-press); transform: translateY(-2px); }
.btn-ghost { border-color: var(--pj-line-ui); color: var(--pj-white); min-height: 48px; padding: 0 22px; }
.btn-ghost:hover { border-color: var(--pj-yellow); color: var(--pj-yellow); }
.link-quiet { display: inline-flex; align-items: center; gap: 8px; color: var(--pj-white); font-weight: 600; font-size: var(--fs-1); text-decoration: underline; text-decoration-color: var(--pj-line-ui); text-underline-offset: 6px; text-decoration-thickness: 1.5px; padding-block: 12px; }
.link-quiet:hover { text-decoration-color: var(--pj-yellow); color: var(--pj-yellow); }

/* ---------- topo (sobre a foto do início) ---------- */
.topo { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.marca-logo { display: block; line-height: 0; }
.marca-logo img { width: auto; height: 48px; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a { font-size: var(--fs-1); font-weight: 600; text-decoration: none; color: var(--pj-white); padding-block: 10px; }
.nav a:hover { color: var(--pj-yellow); }
.menu-botao { display: none; }

/* ---------- início: foto do trompete em duotone preto -> âmbar, escurecida à esquerda para o texto ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 940px); display: flex; flex-direction: column; overflow: hidden; padding-top: 88px; }
.fundo { position: absolute; inset: 0; z-index: -1; background: var(--pj-black); }
.fundo .foto { position: absolute; top: 0; right: 0; bottom: 0; width: 78%; }
.fundo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 46%; filter: var(--photo-duo); }
.fundo .tom { position: absolute; inset: 0; background: var(--pj-yellow); mix-blend-mode: multiply; }
.fundo .escurece { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--pj-black) 0, var(--pj-black) 34%, rgba(10, 10, 11, 0.74) 50%, rgba(10, 10, 11, 0.12) 78%, rgba(10, 10, 11, 0) 100%),
  linear-gradient(180deg, rgba(10, 10, 11, 0.7) 0, rgba(10, 10, 11, 0) 22%, rgba(10, 10, 11, 0) 62%, var(--pj-black) 100%); }
.hero[data-estado="cartaz"] .fundo .foto { opacity: 0.55; }

.hero > .wrap { width: 100%; }
.hero__miolo { width: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; flex: 1; padding-block: clamp(8px, 2vh, 28px) clamp(20px, 3vh, 36px); }
.kicker { color: var(--pj-yellow); margin-bottom: var(--s-4); }
.kicker span { color: var(--pj-white); }
.marca { font-size: clamp(5.5rem, 8.8vw, 8.5rem); line-height: 0.8; margin-left: -0.04em; }
.marca__play, .marca__jazz { display: block; }
.marca__play { color: var(--pj-yellow); }
.marca__jazz { color: var(--pj-white); }
.lead { font-size: var(--fs-4); line-height: 1.28; font-weight: 500; max-width: 19ch; margin-top: var(--s-5); color: var(--pj-white); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }

/* cartaz (só no estado "com evento") */
.hero__cartaz { justify-self: center; position: relative; isolation: isolate; }
.hero__cartaz::before { content: ""; position: absolute; z-index: -1; inset: -12% -26% -8%; background: radial-gradient(closest-side, rgba(255, 243, 201, 0.2), rgba(255, 243, 201, 0)); }
.cartaz { position: relative; display: block; width: min(100%, clamp(230px, 23vw, 300px)); border-radius: var(--radius-s); overflow: hidden; box-shadow: 0 0 0 1px var(--pj-line-ui), 0 36px 80px -20px #000; cursor: zoom-in; line-height: 0; }
.cartaz img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.chip { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; background: rgba(10, 10, 11, 0.9); color: var(--pj-white); padding: 8px 12px; border-radius: var(--radius-pill); font-size: var(--fs-0); font-weight: 700; line-height: 1.2; }

/* ---------- ingresso: o card da próxima edição, com recorte tracejado ---------- */
.ingresso { --stub: clamp(196px, 26%, 300px); --line: clamp(3px, 0.28vw, 4px); --notch: clamp(10px, 1.1vw, 15px); --pad: clamp(16px, 2vw, 28px); position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr) auto; align-items: stretch;
  background: linear-gradient(180deg, rgba(27, 27, 32, 0.96), rgba(18, 18, 21, 0.96)); border: 1px solid var(--pj-line-ui); border-radius: var(--radius-m); margin-bottom: clamp(28px, 5vh, 56px);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(var(--stub) + 1px - var(--line) / 2) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(var(--stub) + 1px - var(--line) / 2) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at calc(var(--stub) + 1px - var(--line) / 2) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(var(--stub) + 1px - var(--line) / 2) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.stub { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--pad) clamp(18px, 2.2vw, 32px); border-right: var(--line) dashed var(--pj-line-ticket); }
.stub .caps { color: var(--pj-mute); }
.stub .big { font-size: clamp(3.75rem, 5.6vw, 5.5rem); line-height: 0.8; color: var(--pj-yellow); }
.stub .big small { display: block; font: 700 var(--fs-0) / 1.2 var(--font-body); letter-spacing: var(--track-caps); margin-top: 10px; color: var(--pj-white); }
.tbody { padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: var(--s-2); }
.tbody h2 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1.08; font-weight: 800; font-stretch: 78%; letter-spacing: 0.01em; }
.tbody p { color: var(--pj-mute); max-width: 46ch; }
.tbody .stat { display: flex; align-items: center; gap: 14px; color: var(--pj-white); margin-top: 4px; }
.tbody .stat strong { font-size: 2.75rem; line-height: 0.8; color: var(--pj-yellow); }
.tbody .stat span { color: var(--pj-white); font-size: var(--fs-1); }
.tcta { display: flex; flex-direction: column; justify-content: center; gap: var(--s-2); padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 26px) 0; }
.tcta .btn { white-space: nowrap; }
.elenco { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.elenco li { font-size: var(--fs-1); color: var(--pj-white); }
.elenco i { font-style: normal; color: var(--pj-mute); margin-left: 6px; }
.tbody .onde { color: var(--pj-white); font-size: var(--fs-1); line-height: 1.45; max-width: 60ch; }
.onde b { font-size: var(--fs-2); }

/* ---------- seções ---------- */
section { scroll-margin-top: 16px; }
main { overflow-x: clip; }
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec--sem-topo { padding-top: 0; }
.h2 { font-size: var(--fs-5); line-height: 0.95; color: var(--pj-white); }
.sec-topo { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.sec-topo .caps { color: var(--pj-mute); }

/* Confira: lista de faixas */
.faixas h3 { color: var(--pj-yellow); margin: var(--s-7) 0 var(--s-3); }
.faixas h3:first-child { margin-top: 0; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: clamp(18px, 2.2vw, 28px) var(--s-3); margin-inline: calc(var(--s-3) * -1); border-top: 1px solid var(--pj-line); text-decoration: none; transition: background 0.2s; }
.lista li:last-child .row { border-bottom: 1px solid var(--pj-line); }
.row:hover { background: var(--pj-ink-1); }
.row .no { font-size: 2rem; color: var(--pj-yellow); line-height: 1; }
.row .t { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; font-stretch: 78%; text-transform: uppercase; line-height: 1.05; }
.row .m { display: block; color: var(--pj-mute); font-size: var(--fs-1); margin-top: 6px; }
.row .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-1); color: var(--pj-white); }
.row:hover .go { color: var(--pj-yellow); }

/* Como nasceu */
.historia { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.retrato { position: sticky; top: 24px; }
.retrato img { width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--pj-line); }
.abertura { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.3; font-weight: 500; margin: var(--s-5) 0 var(--s-6); max-width: 30ch; }
.abertura strong { color: var(--pj-yellow); font-weight: 700; }
.bloco { padding-block: var(--s-5); border-top: 1px solid var(--pj-line); max-width: 62ch; }
.bloco strong { color: var(--pj-yellow); font-weight: 700; }
.bloco p + p { margin-top: var(--s-3); }

/* Assista e ouça */
.assista { border-top: 1px solid var(--pj-line); background: var(--pj-ink-1); }
.assista__grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.assista .bloco { border-top: 0; padding-block: 0; max-width: none; }
.assista .bloco p { font-size: var(--fs-3); line-height: 1.55; max-width: 44ch; }
.assista .cta { margin-top: var(--s-6); }

/* rodapé */
.rodape { border-top: 3px solid var(--pj-yellow); padding-block: var(--s-7); }
.rodape__grade { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); align-items: center; justify-content: space-between; }
.marca-logo--rodape img { height: 56px; }
.redes ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.redes a { font-weight: 600; font-size: var(--fs-1); text-decoration: none; padding-block: 10px; display: inline-block; color: var(--pj-white); }
.redes a:hover { color: var(--pj-yellow); }
.rodape__texto { color: var(--pj-mute); font-size: var(--fs-1); flex-basis: 100%; text-align: center; }
.rodape__linha { display: block; }
.rodape__texto a { color: var(--pj-white); }

/* cartaz ampliado */
.ampliado { border: 0; padding: 0; background: transparent; max-width: min(94vw, 560px); max-height: 94vh; color: var(--pj-white); }
.ampliado::backdrop { background: rgba(0, 0, 0, 0.86); }
.ampliado img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: var(--radius-s); }
.ampliado form { margin: 0; }
.ampliado .btn { display: flex; margin: 12px auto 0; background: var(--pj-black); }

/* página 404 */
.pagina-erro { min-height: 100vh; }
.erro { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-6) var(--gutter); text-align: center; }
.erro img { height: 64px; width: auto; }
.erro__kicker { color: var(--pj-yellow); }
.erro h1 { font-size: clamp(3rem, 9vw, 6rem); }
.erro__texto { color: var(--pj-mute); max-width: 36ch; margin-bottom: var(--s-3); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .fundo .foto { width: 100%; height: 300px; bottom: auto; }
  .fundo img { object-position: 66% 50%; }
  .fundo .escurece { background: linear-gradient(180deg, rgba(10, 10, 11, 0.88) 0, rgba(10, 10, 11, 0.74) 64px, rgba(10, 10, 11, 0.12) 124px, rgba(10, 10, 11, 0.4) 170px, var(--pj-black) 232px); }
  .hero[data-estado="cartaz"] .fundo .foto { opacity: 0.4; }
  .hero__miolo { display: flex; flex-direction: column; align-items: stretch; padding-block: 148px var(--s-4); }
  .hero__texto { display: contents; }
  .kicker { order: 1; }
  .marca { order: 2; font-size: clamp(5rem, 26vw, 8.5rem); }
  .lead { order: 3; max-width: 22ch; font-size: 1.375rem; margin-top: var(--s-3); }
  .hero__cartaz { order: 4; align-self: flex-start; margin-top: var(--s-6); }
  .cartaz { width: min(100%, 260px); }
  .cta { order: 5; flex-direction: column; align-items: stretch; gap: 0; margin-top: var(--s-4); }
  /* o gap: 0 acima é do CTA do hero (botão + link discreto, que já têm respiro próprio); na seção Assista são dois botões com contorno e precisam de vão */
  .assista .cta { gap: var(--s-3); }
  .btn-primary { width: 100%; }
  .link-quiet { justify-content: center; padding-block: 8px; }
  /* menu do topo: sem JavaScript os links ficam à mostra (em outra linha se faltar espaço); com JavaScript (html.js) viram um painel aberto pelo botão hambúrguer */
  .topo { flex-wrap: wrap; row-gap: 0; }
  .nav { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--s-5); margin-top: var(--s-2); }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; text-shadow: 0 1px 6px rgba(10, 10, 11, 0.9), 0 0 2px rgba(10, 10, 11, 0.9); }
  .js .topo { flex-wrap: nowrap; }
  .js .menu-botao { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; margin-right: -8px; border: 1.5px solid var(--pj-line-ui); border-radius: var(--radius-s); background: rgba(10, 10, 11, 0.6); color: var(--pj-white); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
  .js .menu-botao:hover, .js .menu-botao[aria-expanded="true"] { border-color: var(--pj-yellow); color: var(--pj-yellow); }
  .menu-icone { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-icone path { transform-box: fill-box; transform-origin: center; transition: transform 0.2s, opacity 0.2s; }
  .menu-botao[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
  .menu-botao[aria-expanded="true"] .l2 { opacity: 0; }
  .menu-botao[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; padding: var(--s-2) var(--gutter) var(--s-4); background: var(--pj-black); border-bottom: 1px solid var(--pj-line); box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s; }
  .js .nav.aberto { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s, visibility 0s; }
  .js .nav a { display: flex; min-height: 52px; text-shadow: none; border-bottom: 1px solid var(--pj-line); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--fs-4); text-transform: uppercase; letter-spacing: 0.01em; }
  .js .nav a:last-child { border-bottom: 0; }
  .js .nav a:hover, .js .nav a:focus-visible { color: var(--pj-yellow); }
  .js .nav a:focus-visible { outline-offset: -3px; }
  /* ingresso em coluna: canhoto em cima, linha tracejada horizontal e dois recortes semicirculares nas laterais (como no desktop, girado 90°) */
  .ingresso { --stub: 0px; --line: 3px; --notch: clamp(13px, 4vw, 20px); --pad: clamp(16px, 4.5vw, 28px); grid-template-columns: 1fr; -webkit-mask: none; mask: none; margin-bottom: var(--s-7); }
  .stub { position: relative; border-right: 0; border-bottom: var(--line) dashed var(--pj-line-ticket); gap: 2px; padding-block: var(--pad) calc(var(--pad) - 2px); }
  .stub::before, .stub::after { content: ""; position: absolute; bottom: calc(var(--notch) * -1 - var(--line) / 2); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--pj-black); border: 1px solid var(--pj-line-ui); box-shadow: inset 0 2px 6px #000; pointer-events: none; }
  .stub::before { left: calc(var(--notch) * -1 - 0.5px); clip-path: inset(0 0 0 50%); }
  .stub::after { right: calc(var(--notch) * -1 - 0.5px); clip-path: inset(0 50% 0 0); }
  .stub .big { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .stub .big small { display: inline; margin: 0 0 0 10px; }
  .tbody h2 { font-size: 1.875rem; }
  .tcta { flex-direction: column; align-items: stretch; padding: 0 var(--pad) var(--pad); }
  .tcta .btn { width: 100%; white-space: normal; }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row .go { grid-column: 2; }
  .row .no { font-size: 1.5rem; }
  .historia, .assista__grade { grid-template-columns: 1fr; }
  .retrato { position: static; }
  .retrato img { aspect-ratio: 16 / 11; object-position: 70% 22%; max-width: none; }
  .assista__grade { gap: var(--s-5); }
  .sec-topo { flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .row, .menu-botao, .menu-icone path, .nav { transition: none !important; }
  .btn-primary:hover { transform: none; }
}
