/* ============================================================
   base.css — reset, fontes, tipografia e primitivas de layout
   Depende de tokens.css.
   ============================================================ */

/* ---------- Fontes ------------------------------------------
   Inter Tight é uma fonte variável: um único arquivo cobre os
   pesos 300–700, por isso o range em font-weight.
   Os subsets latin / latin-ext repetem o mesmo unicode-range do
   Google Fonts para o navegador só baixar o que precisar.
   ------------------------------------------------------------ */

@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-var-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400-latin-ext.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Ícones sociais do rodapé. */
@font-face {
  font-family: "Fa Brands 400";
  src: url("../assets/fonts/fa-brands-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Fa Solid 900";
  src: url("../assets/fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Fa 400";
  src: url("../assets/fonts/fa-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ---------- Reset ------------------------------------------- */

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

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

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--white);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-120);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img,
video {
  height: auto;
}

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

figure,
blockquote {
  margin: 0;
}

/* ---------- Títulos e texto ---------------------------------
   Todos os níveis compartilham família, cor, entrelinha e peso;
   só o corpo muda. Margens zeradas — o espaçamento é sempre
   responsabilidade do container.
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  line-height: var(--lh-140);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p {
  margin: 0;
}

/* Trecho em serifa itálica usado no meio dos títulos. */
.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Estado inicial das linhas criadas pelo SplitText. A máscara controla
   o recorte; a entrada usa somente transform para permanecer leve. */
.line {
  transform: translateY(100%);
  will-change: transform;
}

/* ---------- Layout ------------------------------------------ */

.page {
  overflow: clip;
}

.container {
  max-width: 83rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: var(--section-gap);
}

/* Sections que encostam na anterior sem respiro no topo. */
.section--flush-top {
  padding-top: var(--space-0);
}

/* Utilitário de acessibilidade: visível só para leitores de tela. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
