/* ==========================================================================
   Base — reset, tipografia e acessibilidade
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-cabecalho) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-size: var(--t-corpo);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: var(--e-4);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin-bottom: var(--e-4);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
  color: inherit;
}

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

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

::selection {
  background: var(--pink-claro);
  color: var(--slate);
}

/* --- título de seção: The Seasons em caixa alta, como no layout --- */
.titulo-secao {
  margin-bottom: var(--e-3);
  font-family: var(--fonte-titulo);
  font-size: var(--t-secao);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--nude-titulo);
}

.titulo-secao--slate {
  color: var(--slate);
}

.titulo-secao--pink {
  color: var(--pink-texto);
}

/* Na prancheta este título é slate claro (#738386), não nude.
   Pantone 431 CP — 5,54:1 sobre branco. */
.titulo-secao--slate-claro {
  color: var(--slate-3);
}

.subtitulo-secao {
  max-width: 46ch;
  margin-bottom: 0;
  font-size: var(--t-secao-sub);
  line-height: 1.35;
  color: var(--texto);
}

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

.pular-para {
  position: fixed;
  inset: var(--e-3) auto auto var(--e-3);
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--raio);
  background: var(--slate);
  color: var(--sobre-escuro);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--t-medio);
}

.pular-para:focus {
  transform: translateY(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;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .botao,
  .menu-alternar {
    border: 1px solid ButtonText;
  }
}
