/* Tokens, tipografia e reset. Compartilhado pelas três telas do evento. */

@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/saira-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/saira-condensed-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root {
  --asfalto: #10141a;
  --carroceria: #19202a;
  --faixa: #2b3542;
  --gelo: #7dc4ec;
  --farol: #f2c14e;
  --neve: #eef3f8;
  --bruma: #8b9bad;
  --certo: #3fbf88;
  --errado: #e2606b;

  --display: 'Saira Condensed', 'Arial Narrow', system-ui, sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dados: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --raio: 10px;
  --toque: 56px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--asfalto);
  color: var(--neve);
  font-family: var(--corpo);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gelo);
  outline-offset: 3px;
  border-radius: 4px;
}

.dados {
  font-family: var(--dados);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.oculto {
  display: none !important;
}

/* Visível só para leitores de tela. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- marca ---- */

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.marca-sigla {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--gelo), #3d7ea3);
  display: grid;
  place-items: center;
  color: var(--asfalto);
  font: 800 15px/1 var(--display);
}

.marca-nome {
  font: 600 13px/1.2 var(--corpo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marca-sub {
  font-size: 11px;
  line-height: 1.3;
  color: var(--bruma);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
