/* Base: reset, tipografia, layout e utilitários. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

/* Lenis (rolagem suave) — CSS recomendado pela biblioteca */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

::selection { background: var(--accent); color: var(--black); }

/* Tipografia */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
}

.h1,
.h2,
.h3 {
  font-family: var(--font-text);
  font-weight: 500;
  line-height: var(--lh-title);
  letter-spacing: -0.035em;
}
.h1 { font-size: var(--fs-h1); line-height: 1.05; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }

.lead { font-size: var(--fs-body-lg); line-height: 1.5; max-width: var(--measure); }
.small { font-size: var(--fs-small); }
.micro {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted { color: var(--fg-muted); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-16); }
.nums { font-variant-numeric: tabular-nums; }

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: var(--stack, var(--s-24)); }

/* 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: var(--s-8);
  left: var(--s-8);
  z-index: 100;
  padding: var(--s-12) var(--s-16);
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  --focus: var(--black);
}
.skip-link:focus { transform: none; }

[hidden] { display: none !important; }

/* Placeholder visível de conteúdo que ainda não existe (CLAUDE.md: nunca inventar). */
.tbd {
  display: inline;
  padding: 0.05em 0.35em;
  border: var(--border) dashed currentColor;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 0.85em;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.placeholder-media {
  display: grid;
  place-items: center;
  padding: var(--s-24);
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--fg);
  text-align: center;
}
