/* Forró do Querosene: preto de carvão, brasa e chama, como no cartaz. */

/* Fontes hospedadas no próprio site (licença SIL OFL). */
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}

:root {
  --carvao: #0d0605;
  --fuligem: #1f110c;
  --linha: #4a2a1f;
  --brasa: #ee3b1c;
  --chama: #ff8f1f;
  --fagulha: #ffc54d;
  --papel: #fff0dc;
  --cinza: #c4a596;
  --erro: #ff9a85;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --texto: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --notch: 13px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--carvao);
  color: var(--papel);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
}

/* brilho de fogueira atrás da página, fixo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% -5%, rgba(255, 106, 20, 0.3), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(238, 59, 28, 0.14), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--fagulha);
  text-underline-offset: 3px;
}

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

/* ---------- Página de venda ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'content' 'poster';
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.content {
  grid-area: content;
  min-width: 0;
}

.poster {
  grid-area: poster;
  margin: 0;
}

.poster img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 143, 31, 0.25),
    0 30px 80px -24px rgba(255, 90, 10, 0.5);
}

.logo {
  margin: 0 0 20px;
}

.logo img {
  width: 100%;
  max-width: 520px;
  animation: acender 1.4s ease-out both;
}

@keyframes acender {
  from {
    opacity: 0;
    filter: brightness(0.5) drop-shadow(0 0 0 rgba(255, 110, 20, 0));
  }
  to {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 6px 36px rgba(255, 110, 20, 0.45));
  }
}

.lede {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--papel);
}

.facts {
  margin: 0 0 32px;
}

.when {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 15vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.when .time {
  font-weight: 700;
  font-size: 0.42em;
  color: var(--cinza);
}

.where {
  margin: 0;
  font-size: 18px;
}

.where strong {
  font-weight: 650;
}

.where span {
  display: block;
  color: var(--cinza);
}

/* ---------- Ingresso ---------- */

.ticket {
  max-width: 520px;
  scroll-margin-top: 20px;
}

.stub,
.ticket-form {
  --r: var(--notch);
}

.stub {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 20px;
  padding: 22px 24px 26px;
  color: #230904;
  background: linear-gradient(100deg, #ffb83f 0%, #ff7d1a 48%, #ee3b1c 100%);
  border-radius: 18px 18px 0 0;
  -webkit-mask-image: radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + 0.5px)),
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + 0.5px));
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + 0.5px)),
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + 0.5px));
  mask-composite: intersect;
}

.stub-kind {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 650;
}

.stub-price {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 84px;
  line-height: 0.9;
}

.stub-price small {
  margin-right: 6px;
  font-size: 0.42em;
  font-weight: 800;
}

.stub-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.ticket-form {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--fuligem);
  border-radius: 0 0 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + 0.5px)),
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + 0.5px));
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + 0.5px)),
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + 0.5px));
  mask-composite: intersect;
}

/* picote entre o canhoto e o formulário */
.ticket-form::before {
  content: '';
  position: absolute;
  top: -1px;
  left: calc(var(--notch) + 10px);
  right: calc(var(--notch) + 10px);
  border-top: 2px dashed var(--linha);
}

.field {
  margin: 0 0 18px;
}

.field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--papel);
  background: var(--carvao);
  border: 1.5px solid var(--linha);
  border-radius: 10px;
}

.field input::placeholder {
  color: #85685b;
}

.field input[aria-invalid='true'] {
  border-color: var(--erro);
}

.err {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--erro);
}

.err:empty {
  display: none;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 10px 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: #230904;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(100deg, #ffb83f, #ff7d1a 55%, #ee3b1c);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  filter: saturate(0.5) brightness(0.8);
}

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--papel);
  background: rgba(238, 59, 28, 0.18);
  border-left: 4px solid var(--brasa);
  border-radius: 6px;
}

.form-error[hidden] {
  display: none;
}

.help {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cinza);
}

.closed {
  padding: 8px 0 4px;
}

.closed h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.05;
}

.closed p {
  margin: 0;
  color: var(--cinza);
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-size: 14px;
  color: var(--cinza);
}

/* ---------- Tela de confirmação ---------- */

.thanks {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.thanks .logo img {
  max-width: 300px;
  margin: 0 auto;
}

.state h1,
.state h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
}

.state p {
  margin: 0 0 14px;
}

.state .muted {
  color: var(--cinza);
}

.state[hidden] {
  display: none;
}

.chama {
  position: relative;
  width: 44px;
  height: 56px;
  margin: 6px 0 20px;
  background: linear-gradient(to top, var(--brasa), var(--chama) 60%, var(--fagulha));
  border-radius: 50% 50% 46% 46% / 70% 70% 30% 30%;
  clip-path: path('M22 0C24 14 40 20 40 38a18 18 0 0 1-36 0C4 30 8 24 12 20c0 7 3 9 7 10C16 18 18 10 22 0z');
  animation: bruxulear 0.9s ease-in-out infinite alternate;
}

@keyframes bruxulear {
  from {
    transform: scale(1) rotate(-2deg);
    filter: brightness(1);
  }
  to {
    transform: scale(1.06, 0.96) rotate(2deg);
    filter: brightness(1.15);
  }
}

.pass .stub-price {
  font-size: 44px;
  line-height: 1;
}

.pass-name {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 10vw, 52px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.pass-code {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--fagulha);
}

.pass-meta {
  margin: 0 0 14px;
}

.pass-meta span {
  display: block;
  color: var(--cinza);
}

.link-btn {
  margin-top: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Telas largas ---------- */

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  .stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: 'poster content';
    gap: 64px;
    padding: 48px 32px 72px;
    align-items: start;
  }

  .poster {
    position: sticky;
    top: 32px;
  }

  .poster img {
    margin: 0;
    max-width: none;
  }

  .site-footer {
    padding: 0 32px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo img {
    animation: none;
    filter: drop-shadow(0 6px 36px rgba(255, 110, 20, 0.45));
  }

  .chama {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
