/* ==========================================================================
   BASE — reset, tipografia de elemento, estrutura e movimento

   Cada valor visível aqui vem de um token: nenhuma cor, tamanho ou espaço
   literal. É o que faz esta folha ser copiável para um projeto novo sem
   arrastar junto a identidade da Novena. Os @font-face moram em fonts.css.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip preserva position:sticky; hidden no body sozinho não chega ao
     viewport em parte dos navegadores móveis                                */
  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, #efeada);
  -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; }

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

/* --- Tipografia de elemento ---------------------------------------------- */
h1, h2, h3 {
  font-weight: var(--w-bold);
  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-size: var(--t-h3); letter-spacing: -0.012em; }

p { text-wrap: pretty; }

p + p { margin-top: 1em; }

strong, b { font-weight: var(--w-bold); }

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

.section {
  position: relative;
  padding-block: var(--sp-3xl);
  isolation: isolate;
}

.measure { max-width: var(--measure); }

.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  font-weight: var(--w-medium);
}

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

/* --- Movimento: entra desfocado, resolve, e fica resolvido ---------------- */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(26px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform, filter;
}

.reveal.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
  will-change: auto;
}

/* Sem JS o conteúdo aparece. A primeira dobra nunca entra na lista: é o LCP. */
.no-js .reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

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