/* ============================================================
   Tokens, fontes e reset
   ============================================================ */

/* ---- Archivo: variavel, eixos wght 100..900 e wdth 62..125 ---- */
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- JetBrains Mono: variavel, wght 400..800 ---- */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- paleta ---- */
  --tinta: #0C0A09;
  --superficie: #16130F;
  --borda: #2A231C;
  --ambar: #E89B2C;
  --neutro: #8A8175;
  --osso: #F4F1EA;

  /* ---- tipografia ---- */
  --fonte-texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- ritmo ---- */
  --gap: clamp(1rem, 2.5vw, 2rem);
  --margem: clamp(1.25rem, 5vw, 6rem);

  /* titulo de abertura da linha do tempo; ajustavel por ?lt_tf=N */
  --lt-tf: 10vw;

  /* vao entre os cards de projetos; ajustavel por ?pj_gap=N */
  --pj-gap: 4px;
  --respiro-secao: clamp(6rem, 14vh, 12rem);

  /* ---- movimento ---- */
  --transicao: 320ms cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tinta);
  color: var(--osso);
  font-family: var(--fonte-texto);
  font-weight: 400;
  font-size: clamp(1rem, .55vw + .9rem, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* ============================================================
   Tipografia
   ============================================================ */

/* Titulos: Archivo Expanded, peso 800 */
.titulo {
  font-family: var(--fonte-texto);
  font-weight: 800;
  font-stretch: 125%;              /* Expanded */
  font-variation-settings: 'wdth' 125, 'wght' 800;
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}
.titulo-xl { font-size: clamp(2.5rem, 8vw, 7rem); }
.titulo-g  { font-size: clamp(2rem, 5.5vw, 4.5rem); }
.titulo-m  { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* Corpo */
.texto { font-weight: 400; max-width: 62ch; }
.texto-forte { font-weight: 500; }

/* Tecnico: anos, skills, marcadores, rotulos */
.mono {
  font-family: var(--fonte-mono);
  font-weight: 400;
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mono-500 { font-weight: 500; }

.rotulo-secao {
  font-family: var(--fonte-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neutro);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.rotulo-secao::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--borda);
}

/* ============================================================
   Utilidades
   ============================================================ */
.secao { padding-block: var(--respiro-secao); position: relative; }
.envelope { padding-inline: var(--margem); }
.limite { max-width: 90rem; margin-inline: auto; }

/* Seta de link externo. SVG no lugar do caractere ↗: nem a Archivo nem
   a JetBrains Mono carregadas tem esse glifo, e ele caia na fonte do
   sistema. currentColor: herda a cor do link, inclusive no hover. */
.seta-ext{display:inline-block;width:.72em;height:.72em;vertical-align:-.06em;margin-left:.3em}

/* visivel so para leitor de tela */
.sr-so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pular-para-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ambar);
  color: var(--tinta);
  padding: .75rem 1.25rem;
  font-family: var(--fonte-mono);
}
.pular-para-conteudo:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
}

/* ============================================================
   prefers-reduced-motion: o conteudo continua todo legivel,
   so o movimento sai de cena.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
