/* Fontes servidas pelo próprio domínio (copiadas no build para /fonts). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --papel: #F7F4EF;
  --tinta: #1E1E22;
  --cinza: #8A8A8E;

  --arquiteto: #2C5F6E;
  --faminto: #D4622A;
  --malabarista: #D9A430;
  --diplomata: #7A8B6F;
  --colecionador: #8E3B4A;

  /* Derivados de interface (não são cores de mecanismo). */
  --cinza-claro: #D4D0C8;
  --erro: #A8321F;

  --fonte-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --fonte-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largura-texto: 40rem;
  --margem: 1.25rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

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

.conteudo {
  width: 100%;
  max-width: var(--largura-texto);
  margin: 0 auto;
  padding: 3rem var(--margem);
}

.discreto { color: var(--cinza); }

[tabindex="-1"]:focus { outline: none; }

/* Botão de ação principal (landing e teste). */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--fonte-texto);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.botao:active { transform: scale(0.98); }
.botao:focus-visible,
.opcao:focus-visible {
  outline: 2px solid var(--arquiteto);
  outline-offset: 3px;
}
.botao[disabled] { opacity: 0.3; cursor: not-allowed; transform: none; }

/* Palavra cortada por um traço cinza que se desenha. */
.riscavel { position: relative; display: inline-block; }
.riscavel::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 54%;
  height: 0.075em;
  min-height: 2px;
  background: var(--cinza);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1);
}

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

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .conteudo { padding: 5rem var(--margem); }
}
