/* ============================================================
 * reset.css — Base, reset e utilitários globais
 * ============================================================ */

/* ── RESET ──────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;          /* reserva o espaço da barra — elimina o layout shift */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ── SELEÇÃO ────────────────────────────────────────────────── */

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

/* ── SCROLLBAR ──────────────────────────────────────────────── */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) transparent;
}

*::-webkit-scrollbar       { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: var(--radius-full);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── SISTEMA DE TELAS ───────────────────────────────────────── */

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

/* ── CAMADAS DE FUNDO ───────────────────────────────────────── */

.bg-fixed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  display: none; /* ruído de textura removido — fundo preto limpo */
}

.bg-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.bg-blackfire,
.bg-cinders,
.bg-scar,
.bg-orbit,
.bg-embers {
  /* Sem gradientes decorativos — minimalismo leve */
  background: none;
}

/* ── UTILITÁRIOS ────────────────────────────────────────────── */

.empty-msg {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--text-faint);
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.auto-grow {
  resize: vertical;
  min-height: 80px;
}

[hidden] {
  display: none !important;
}

/* ── TIPOGRAFIA BASE ────────────────────────────────────────── */

.eyebrow,
.section-label,
.panel-kicker {
  font-family: var(--font-ui);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-ritual);
  text-transform: uppercase;
  color: var(--accent);
}

.item-meta {
  font-family: var(--font-ui);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ── BARRA DE PROGRESSO ─────────────────────────────────────── */

.bar-track {
  width: 100%;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
  transition: width var(--transition);
}
