/* Base: reset, tipografia, utilitários */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--marfim);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
h4 { font-size: var(--fs-h4); line-height: 1.15; }
em, .italic { font-style: italic; }

::selection { background: var(--floresta); color: var(--marfim); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--areia); }

/* Utilitários */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 200;
  background: var(--floresta); color: var(--marfim);
  padding: .8rem 1.2rem; font-size: var(--fs-sm); letter-spacing: .08em;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before {
  content: ""; width: 2.5rem; height: 1px; background: currentColor;
}
.on-dark .eyebrow { color: var(--areia); }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-soft); }
.on-dark .lead { color: var(--marfim-80); }

.note {
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.on-dark .note { color: var(--marfim-60); }

.on-dark { color: var(--marfim); }
