/* ----- Importação de fontes ----- */
@font-face {
  font-family: "PlayfairDisplay";
  src: url("../assets/fonts/PlayfairDisplay-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "PlayfairDisplay-Italic";
  src: url("../assets/fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/Quicksand-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

/* ----- Switchers de fontes ----- */
:root {
  /* --- Fontes padrão (tema escuro) --- */
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-accent: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Tema de fontes: padrão (Quicksand) --- */
[data-font="default"] {
  --font-body: "Quicksand", sans-serif;
  --font-heading: "Quicksand", sans-serif;
  --font-accent: "Quicksand", sans-serif;
}

/* --- Tema de fontes: PlayfairDisplay --- */
[data-font="playfair"] {
  --font-body: "PlayfairDisplay", serif;
  --font-heading: "PlayfairDisplay", serif;
  --font-accent: "PlayfairDisplay-Italic", serif;
}

/* --- Tema de fontes: Segoe UI --- */
[data-font="segoeUI"] {
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-accent: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ----- Estilização dos textos ----- */
/* Famílias de fontes */
body * {
  font-family: var(--font-body);
  color: var(--bg-color-4);
}

/* Font weights utilitários */
b,
strong {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

em,
i,
blockquote {
  font-family: var(--font-accent);
}

small {
  font-size: 0.875rem;
  color: var(--bg-color-5);
}

/* Citações */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--bg-color-6);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--bg-color-5);
}

cite {
  font-style: normal;
  font-weight: 500;
  color: var(--bg-color-5);
}

/* Tamanhos base para texto */
a,
p,
span,
li,
td,
th {
  font-size: 1.2rem;
  font-weight: 500;
}

label {
  line-height: 1.25;
  margin: 0.5rem 0 0.5rem;
  font-weight: 600;
}

/* Cabeçalhos responsivos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--bg-color-4);
  line-height: 1.25;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.75rem;
}
h5 {
  font-size: 1.5rem;
}
label,
h6 {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Responsividade: tablets */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.125rem;
  }
  label,
  h6 {
    font-size: 1rem;
  }

  p,
  span,
  li,
  td,
  th {
    font-size: 0.95rem;
  }
}

/* Responsividade: celulares */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  } /* antes 1.75rem */
  h2 {
    font-size: 1.75rem;
  } /* antes 1.5rem */
  h3 {
    font-size: 1.5rem;
  } /* antes 1.25rem */
  h4 {
    font-size: 1.25rem;
  } /* antes 1.125rem */
  h5 {
    font-size: 1.125rem;
  } /* antes 1rem */
  h6 {
    font-size: 1rem;
  } /* antes 0.95rem */

  p,
  span,
  li,
  td,
  th {
    font-size: 1.1rem; /* antes 0.9rem */
  }

  blockquote {
    font-size: 1.05rem; /* antes 0.95rem */
    padding-left: 0.75rem;
  }
}
