@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/sourceserif-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/fonts/worksans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BF Serifada";
  src: local("Georgia"), local("Times New Roman"), local("Times");
  size-adjust: 94%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "BF Grotesca";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial");
  size-adjust: 103%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --bx-papel: #ffffff;
  --bx-tinta: #111111;
  --bx-tinta-forte: #000000;
  --bx-realce: #d6122a;
  --bx-realce-fundo: #b70f23;
  --bx-secundaria: #565656;
  --bx-superficie: #f4f4f4;
  --bx-fio: #d8d8d8;

  --bx-titular: "Source Serif 4", "BF Serifada", Georgia, "Times New Roman", serif;
  --bx-corrida: "Work Sans", "BF Grotesca", system-ui, -apple-system, Arial, sans-serif;

  --bx-medida: 1180px;
  --bx-margem: clamp(18px, 4vw, 44px);
  --bx-coluna-texto: 36em;

  --bx-ar-xl: clamp(64px, 9vw, 124px);
  --bx-ar-l: clamp(48px, 6vw, 92px);
  --bx-ar-m: clamp(32px, 4vw, 60px);
  --bx-ar-s: 20px;

  --bx-corte: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --bx-corte-mini: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

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

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

body {
  margin: 0;
  background-color: var(--bx-papel);
  color: var(--bx-tinta);
  font-family: var(--bx-corrida);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--bx-realce);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bx-realce-fundo);
}

:focus-visible {
  outline: 2.5px solid var(--bx-realce);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--bx-titular);
  font-weight: 700;
  color: var(--bx-tinta-forte);
  margin: 0 0 0.5em;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.06rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.05em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.5em;
}

table {
  border-collapse: collapse;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background-color: var(--bx-superficie);
  padding: 1px 5px;
}

.bx-limite {
  width: 100%;
  max-width: var(--bx-medida);
  margin-inline: auto;
  padding-inline: var(--bx-margem);
}

.bx-faixa {
  background-color: var(--bx-papel);
}

.bx-etiqueta {
  display: inline-block;
  font-family: var(--bx-corrida);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bx-realce);
  margin-bottom: 10px;
}

.bx-sobretitulo {
  font-family: var(--bx-corrida);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bx-secundaria);
  margin: 0 0 14px;
}

.bx-ficha {
  font-family: var(--bx-corrida);
  font-size: 0.82rem;
  color: var(--bx-secundaria);
  margin: 0;
}

.bx-ficha__nome {
  color: var(--bx-tinta);
  font-weight: 600;
}

.bx-entrada {
  font-family: var(--bx-titular);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.48;
  color: #262626;
  max-width: var(--bx-coluna-texto);
}

.bx-texto {
  max-width: var(--bx-coluna-texto);
}

.bx-texto p {
  line-height: 1.68;
}

.bx-figura {
  margin: 0;
}

.bx-figura__legenda {
  font-family: var(--bx-corrida);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--bx-secundaria);
  padding-top: 9px;
  max-width: 34em;
}

.bx-acao {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--bx-corrida);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  clip-path: var(--bx-corte);
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.bx-acao--forte {
  background-color: var(--bx-realce);
  color: var(--bx-papel);
}

.bx-acao--forte:hover,
.bx-acao--forte:focus-visible {
  background-color: var(--bx-tinta-forte);
  color: var(--bx-papel);
  transform: translate(-2px, -2px);
}

.bx-acao--fio {
  background-color: var(--bx-papel);
  color: var(--bx-tinta);
  box-shadow: inset 0 0 0 1.5px var(--bx-tinta);
}

.bx-acao--fio:hover,
.bx-acao--fio:focus-visible {
  background-color: var(--bx-tinta-forte);
  color: var(--bx-papel);
  transform: translate(-2px, -2px);
}

.bx-elo-seta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--bx-corrida);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bx-realce);
  text-decoration: none;
  padding: 12px 0;
  min-height: 44px;
}

.bx-elo-seta span {
  border-bottom: 1.5px solid var(--bx-realce);
  padding-bottom: 2px;
}

.bx-elo-seta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease;
}

.bx-elo-seta:hover svg,
.bx-elo-seta:focus-visible svg {
  transform: translateX(4px);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
