/* critical.css | svelte-osint v2 | primeiro paint. Tokens vem daqui; a
   biblioteca de classes vem de app.css. Sem JS o html nao recebe .js. */

:root {
  --bg: #030406;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --dim: #8A8A93;
  --accent: #E5B05C;
  --accent-hover: #F0C170;
  --accent-soft: rgba(229, 176, 92, 0.08);
  --on-accent: #000000;
  --focus: #E5B05C;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(229, 176, 92, 0.22);
  --line-gold-strong: rgba(229, 176, 92, 0.38);
  --danger: #E5484D;
  --danger-line: rgba(229, 72, 77, 0.35);
  --danger-soft: rgba(229, 72, 77, 0.08);
  --info: #3B82F6;
  --info-soft: rgba(59, 130, 246, 0.10);
  --success: #10B981;
  --success-soft: rgba(16, 185, 129, 0.10);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.10);
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-h2: clamp(2.5rem, 5vw, 4rem);
  --fs-h3: 1.375rem;
  --fs-lede: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-tag: 0.8125rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --content: 760px;
  --wide: 1200px;
  --chrome: 1320px;
  --wrap: 1200px;
  --gutter: 32px;
  --gutter-m: 20px;
  --section-y: 140px;
  --section-y-m: 64px;
  --radius: 2px;
  --t-fast: 90ms;
  --t-med: 120ms;
  --t-slow: 160ms;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html,
body,
#app {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  scrollbar-color: rgba(229, 176, 92, 0.35) #010203;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--muted);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

/* O user-agent aplica margin: 1em 0 em todo <p>. Sem este reset o
   .num-item__no desce 15px e deixa de alinhar com o titulo do passo. */
p {
  margin: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #010203;
}

::-webkit-scrollbar-thumb {
  background: rgba(229, 176, 92, 0.28);
  border-radius: 8px;
  border: 2px solid #010203;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 176, 92, 0.5);
}

/* Reveal on scroll: o IntersectionObserver (src/lib/reveal.js) adiciona
   .is-visible. Sem JS tudo fica visivel. Elementos ja no load entram sem
   transicao (.reveal-static) para nao atrasar o LCP. */
.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.reveal-static {
  transition: none;
}

/* Tipografia base do titulo do hero (elemento LCP): fica no critical path
   para o primeiro paint ja sair estilizado. */
.hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__title .rx-hero__hl { color: var(--accent); }

/* O titulo do hero e o elemento LCP: nunca anima, nunca transiciona. */
.js .hero__title,
.js .hero__title-accent,
.js .hero__img {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}