/* ==========================================================================
   BASE — reset, tipografia de elemento, estrutura e movimento
   Valores visíveis vêm de tokens.css.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

/* Serifada SÓ em h1/h2. Todo o resto é Montserrat. */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400; /* DM Serif Display só existe em 400 */
  line-height: var(--lh-title);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 {
  font-family: var(--font);
  font-size: var(--t-h3);
  font-weight: var(--w-semi);
  line-height: 1.3;
  text-wrap: balance;
}

p { text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { font-weight: var(--w-semi); }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* destaque em degradê dentro de um título ou frase */
.hl {
  color: var(--c-bronze-deep);
  background: var(--grad-hl);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--night { color: var(--c-logo-light); background-image: var(--grad-hl-night); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Entrada por scroll: só transform e opacity ---------------------------- */
.js-ready .reveal,
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html:not(.no-js) .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
