/* ==========================================================================
   Base: reset, tipografia e layout
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-header) + var(--e-5));
}

body {
  margin: 0;
  background: var(--abismo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

h1,
h2,
h3 {
  font-family: var(--fonte-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h4 {
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--ciano);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--texto);
}

strong {
  font-weight: 600;
  color: var(--texto);
}

button,
input {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--royal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.pular {
  position: absolute;
  left: var(--e-4);
  top: -100px;
  z-index: 100;
  padding: var(--e-2) var(--e-4);
  background: var(--texto);
  color: var(--abismo);
  border-radius: var(--raio-p);
}

.pular:focus {
  top: var(--e-4);
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Seção padrão
   Toda seção de conteúdo usa .secao + cabeçalho .secao__cabeca.
   O marcador Λ antes do título é o motivo gráfico da marca.
   -------------------------------------------------------------------------- */

.secao {
  padding-block: var(--e-9);
  border-top: 1px solid var(--linha);
}

.secao--noite {
  background: var(--noite);
}

.secao__cabeca {
  display: grid;
  gap: var(--e-4);
  max-width: var(--largura-texto);
  margin-bottom: var(--e-8);
}

.secao__cabeca--larga {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  column-gap: var(--e-8);
}

.secao__titulo {
  font-size: var(--t-2xl);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.secao__titulo::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.54em;
  background: var(--gradiente);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.secao__intro {
  color: var(--texto-suave);
  font-size: var(--t-lg);
  line-height: 1.55;
  max-width: 36em;
}

.texto-suave {
  color: var(--texto-suave);
}

/* Texto corrido longo */
.prosa {
  max-width: var(--largura-texto);
  display: grid;
  gap: var(--e-4);
  color: var(--texto-suave);
}

.prosa strong {
  color: var(--texto);
}

@media (max-width: 760px) {
  .secao__cabeca--larga {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
}
