/* base.css: fontes locais, cores "Brasa" (só tema escuro), reset e tipografia. */

/* ---------- Fontes (arquivos em fonts/, licença em fonts/OFL*.txt) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Identidade "Brasa" ---------- */
:root {
  color-scheme: dark;

  --cor-fundo: #0D0D0F;
  --cor-cartao: #17171A;
  --cor-borda: #2A2A30;
  --cor-texto: #F3F0EA;
  --cor-texto-2: #9A979F;
  --cor-destaque: #F2783C;
  --cor-sobre-destaque: #1A0E06;
  --cor-aviso-fundo: #2A1A10;

  --fonte-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fonte-texto: "Manrope", system-ui, sans-serif;

  --raio: 16px;
  --raio-botao: 999px;
  --toque-min: 44px;
  --gutter: 16px;
  --altura-topo: 56px;
  --altura-abas: 64px;
}

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ---------- Tipografia ---------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }

strong, b {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--cor-destaque);
  outline-offset: 2px;
}
