/* NASH — base do site: a fonte local, o reset, a grade e as classes de
   medida. Sem componente aqui; o vidro e o movimento ficam em
   nash-vidro.css. Lê nash-tokens.css. */

/* A letra do site: Geist e Geist Mono, variáveis de 100 a 900, locais. São
   elas que o --font-sans e o --font-mono resolvem desde 2026-10-01, por
   decisão do dono — o site fala a mesma letra do ReactIO, em vez de duas
   tipografias conviverem no domínio. Um arquivo por família, com os pesos
   todos dentro, então o navegador interpola o que a página pedir. Licença em
   ../assets/fonts/Geist-OFL.txt. */
@font-face {
  font-family: 'Geist';
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Geist-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2');
}

/* A Nash Geometric, a fonte que a casa construiu em tipos/nash-geometric/,
   segue declarada em sete pesos e alcançável pelo nome da família; ela ganha
   token no dia em que uma peça o ler. Cada arquivo pina o peso e continua
   variável no tamanho óptico (opsz 9–40), que o navegador ajusta sozinho pelo
   font-size: por isso nenhum font-variation-settings. O navegador só baixa os
   pesos que a página usa. */
@font-face {
  font-family: 'Nash Geometric';
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Geometric';
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/NashGeometric-Black.woff2') format('woff2');
}

/* A Nash Grotesk continua declarada e alcançável pelo nome da família.
   Deixou de ser a default em 2026-10-01. */
@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Nash Grotesk';
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/NashGrotesk-Black.woff2') format('woff2');
}

/* A Archivo fica só na marca — wordmark e slogan — até o dono decidir se ela
   também passa para a Nash Grotesk. */
@font-face {
  font-family: 'Archivo';
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Archivo-Variable-latin.woff2') format('woff2');
}

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

html {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--nash-type-size-4);
  line-height: var(--nash-type-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Com movimento reduzido a âncora salta: rolar 300vh animando é movimento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}

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

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

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

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

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

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

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

[hidden] {
  display: none !important;
}

/* ---------- a grade ---------- */
.nash-page-width {
  width: 100%;
  max-width: calc(var(--nash-grid-width) + 2 * var(--nash-grid-margin));
  margin-inline: auto;
  padding-inline: var(--nash-grid-margin);
}

.nash-grid {
  display: grid;
  grid-template-columns: repeat(var(--nash-grid-columns), minmax(0, 1fr));
  gap: var(--nash-grid-gutter);
}

.nash-grid > * {
  grid-column: span var(--nash-runtime-column-span, 12);
  min-width: 0;
}

.nash-measure {
  width: 100%;
  max-width: var(--nash-measure-width);
  margin-inline: auto;
}

/* ---------- tipo: os papéis ---------- */
.nash-type-label {
  font-family: var(--font-mono);
  font-size: var(--nash-type-size-1);
  font-weight: 500;
  letter-spacing: var(--nash-type-tracking-wide);
  text-transform: uppercase;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}

.nash-type-title {
  font-weight: 600;
  letter-spacing: var(--nash-type-tracking-tight);
  line-height: var(--nash-type-leading-title);
  color: var(--text-forte);
}

.nash-type-display {
  font-weight: 800;
  letter-spacing: var(--nash-type-tracking-display);
  line-height: var(--nash-type-leading-display);
  color: var(--text-forte);
}

.nash-type-body {
  font-size: var(--nash-type-size-4);
  line-height: var(--nash-type-leading-body);
  color: var(--text);
}

.nash-meio {
  color: var(--text-mid);
}

.nash-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nash-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
