/* ===================================================================
   BASE — reset, fontes, tipografia, foco
   =================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-600.woff2") format("woff2");
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--surface-dark);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: var(--text-on-dark);
  background-color: var(--accent);
}

/* ---------- Tipografia ---------- */

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.1;
}

h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
}

/* Corpo nunca abaixo de 18px — regra inegociável nº 3. */
.lead {
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* ---------- Eyebrow — sempre acima do H2, nunca em gutter ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 1px;
  background-color: currentColor;
}

.eyebrow--on-dark {
  color: var(--rule-on-dark);
}

/* ---------- Foco ---------- */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--focus-on-dark);
}

/* ---------- Escala responsiva ---------- */

@media (min-width: 768px) {
  body {
    font-size: 19px;
    line-height: 1.6;
  }

  h1 {
    line-height: 1.0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
