/* Fontes (self-hosted, subconjunto latin) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-soft0-wonk1-opsz.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400-soft0-wonk1-opsz.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Salsa";   /* só "Belina" e "Katara" (subconjunto) */
  src: url("../fonts/salsa-400-nomes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;   /* links internos rolam em vez de pular (desligado com prefers-reduced-motion) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--creme-kalina);
  color: var(--navy-kalina);
  font-family: var(--fonte-texto);
  font-weight: 300;
  font-size: var(--fs-corpo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--dourado-kalina);
  outline-offset: 3px;
}

/* Utilitários */
/* O layout é ancorado à esquerda: a linha da grade fica sempre a 96px da borda
   (a 1440 ou mais); acima de 1440 o espaço extra vai para a direita. */
.container {
  position: relative;
  width: 100%;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tipografia reutilizável */
.fonte-display {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-optical-sizing: auto;
}

.etiqueta {
  font-family: var(--fonte-mono);
  font-weight: 400;
  font-size: var(--fs-etiqueta);
  line-height: normal;
  text-transform: uppercase;
}

/* Título de seção (titulo-secao-display): etiqueta mono + linha dourada, título Fraunces 40, texto Inter 20/30 */
.etiqueta-secao {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 49px;
  margin-bottom: -13px;   /* título começa 36px abaixo do topo da etiqueta */
  color: var(--navy-kalina);
  font-family: var(--fonte-mono);
  font-weight: 300;
  font-size: var(--fs-etiqueta);
  letter-spacing: 1.2px;
  line-height: normal;
  text-transform: uppercase;
}

.etiqueta-secao::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--dourado-kalina);
}

.titulo-secao-display__titulo {
  color: var(--navy-kalina);
  font-size: clamp(2rem, 1.6rem + 1.1vw, 2.5rem);   /* 40 */
  line-height: 1.23;
}

.titulo-secao-display__texto {
  color: var(--texto-claro);
  font-size: var(--fs-lead);     /* 18, igual ao subtítulo do hero */
  line-height: var(--lh-lead);
}

/* Etiqueta centrada entre duas linhas douradas de 60px (tag-titulo / tag-secao: Sobre, Contato) */
.tag-titulo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-kalina);
  font-family: var(--fonte-mono);
  font-weight: 300;
  font-size: var(--fs-etiqueta);
  letter-spacing: 1.2px;
  line-height: normal;
  text-transform: uppercase;
}

.tag-titulo::before,
.tag-titulo::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--dourado-kalina);
}

/* Seta (componente "Arrow right" do Figma) */
.seta {
  flex: none;
  width: 25px;
  height: 25px;
}

.seta--esquerda {
  transform: rotate(180deg);
}

/* Linha vertical da grade: atravessa a página inteira em x = 96px (a 1440) */
.trilho {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--trilho-x);
  width: var(--linha-grade);
  background: var(--fundo-cinza);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
