/* ═══════════════════════ BASE ═══════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--ardosia);
  color: var(--tinta-clara);
  font-family: var(--texto);
  font-size: var(--t-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p  { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }          /* nenhuma foto é esticada, jamais */

/* <picture> não deve gerar caixa própria: introduzi-lo em volta de um
   <img> não pode mudar layout nenhum. Sem isto ele entraria como
   elemento inline — viraria o filho do flex em .nav__brand, e nas
   figuras deixaria uma folga de linha-base sob a foto. */
picture { display: contents; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }

/* ouro cheio, não o claro: passa de 3:1 sobre o campo escuro (7,8:1)
   e é o mais escuro da família, o que ajuda sobre --luz */
:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ouro); color: var(--tinta-pilula); }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* Quebra rígida que só vale onde a linha é larga. No mobile ela
   somaria à quebra natural e produziria seis linhas esfarrapadas. */
.br-lg { display: none; }
@media (min-width: 48rem) { .br-lg { display: inline; } }

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

.skip {
  position: fixed; top: var(--s3); left: var(--s3);
  z-index: var(--z-skip);
  transform: translateY(-160%);
  background: var(--ouro); color: var(--tinta-pilula);
  padding: 0.7rem 1.1rem; border-radius: var(--pilula);
  font: 600 var(--t--1)/1 var(--texto);
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--expo);
}
.skip:focus { transform: translateY(0); }

/* ── Títulos de seção ─────────────────────────────── */
.sec-h {
  font-family: var(--display);
  font-size: var(--t-4);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--tinta-clara);
}
.sec-h--dark { color: var(--tinta-escura); }

/* ── Botões ───────────────────────────────────────── */
.btn {
  --btn-shift: 0px;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.02rem 1.7rem;
  font: 600 var(--t--1)/1 var(--texto);
  letter-spacing: 0.055em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--pilula);
  cursor: pointer; position: relative;
  transition: background-color 0.4s var(--expo), color 0.4s var(--expo),
              border-color 0.4s var(--expo), transform 0.4s var(--expo);
}
.btn svg {
  width: 1.05em; height: 1.05em; fill: none;
  stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transform: translateX(var(--btn-shift));
  transition: transform 0.45s var(--expo);
}
.btn:hover  { --btn-shift: 4px; }
.btn:active { transform: translateY(1px); }

/* Ouro com tinta quase preta (8,7:1) e clareando no hover: o ouro é
   um tom claro, então o gesto natural é subir a luz, não aprofundar. */
.btn--ouro { background: var(--ouro); color: var(--tinta-pilula); border-color: var(--ouro); }
.btn--ouro:hover { background: var(--ouro-claro); border-color: var(--ouro-claro); }

.btn--ghost { color: var(--tinta-clara); border-color: var(--linha-clara); }
.btn--ghost:hover { border-color: var(--ouro); color: var(--ouro-claro); }

/* Dupla do hero: o ouro da marca é mais pálido que o --ouro da
   página, então também carrega tinta quase preta (7,8:1) — branco
   sobre ele daria 2,4:1, que é o que a referência fazia. */
.btn--marca { background: var(--ouro-marca); color: var(--tinta-pilula); border-color: var(--ouro-marca); }
.btn--marca:hover {
  background: color-mix(in oklab, var(--ouro-marca) 78%, white);
  border-color: color-mix(in oklab, var(--ouro-marca) 78%, white);
}

/* contorno para campo claro: o --ghost é de campo escuro e sumiria */
.btn--linha { color: var(--tinta-escura); border-color: color-mix(in oklab, var(--tinta-escura) 26%, transparent); }
.btn--linha:hover { background: var(--tinta-escura); color: var(--marfim); border-color: var(--tinta-escura); }

.btn--dark { background: var(--tinta-escura); color: var(--luz); border-color: var(--tinta-escura); }
.btn--dark:hover { background: var(--ardosia); border-color: var(--ardosia); }

/* ── Régua fina ───────────────────────────────────── */
.rule {
  display: block; height: 1px; width: 100%;
  background: var(--linha-clara); transform-origin: left;
}
