/* === BASE — reset, tipografia global, scrollbar === */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: var(--font-display);
  line-height: 1.2;
}

.mono {
  font-family: var(--font-mono);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 180px;
}

/* === SCROLLBAR === */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* === ACCESSIBILITY — reduced motion === */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === APP ROOT === */

#app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === VIEWS (SPA shell) === */

.view {
  display: none;
}
.view.active {
  display: flex;
}

/* === PAGE (conteúdo injetado pelo router) === */

.page {
  display: none;
  flex: 1;
  padding: var(--page-padding);
  flex-direction: column;
  gap: 1.75rem;
  overflow-y: auto;
}
.page.active {
  display: flex;
}
