/* ARA-HUNTER Dashboard V2 — base / reset / typography (V2 §17). */

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;           /* wide content scrolls in its own container, never the page */
}
.shell { max-width: 100vw; overflow-x: clip; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

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

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.icon {
  width: 18px; height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

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

.eyebrow {
  font-size: var(--fs-11);
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.u-up   { color: var(--up); }
.u-down { color: var(--down); }
.u-flat { color: var(--flat); }
.u-muted{ color: var(--text-muted); }

/* focus ring — visible, consistent (accessibility foundation) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* scrollbars — quiet */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); border: 3px solid var(--bg); }

/* boot splash (before main.mjs mounts) */
#app[data-loading] { display: grid; place-items: center; min-height: 100vh; }
#app[data-loading] .boot { color: var(--text-faint); font-size: var(--fs-13); letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
