@import url('./ares-tokens.css');

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

html {
  min-width: 20rem;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ares-color-bg);
  scroll-behavior: smooth;
}

body.ares-redesign,
body.ares-terminal,
body[data-ares-ui='terminal'],
.ares-shell,
.ares-app {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ares-color-text);
  background: var(--ares-color-bg);
  font-family: var(--ares-font-body);
  font-size: var(--ares-text-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ares-redesign a,
body.ares-terminal a,
body[data-ares-ui='terminal'] a,
.ares-shell a,
.ares-app a {
  color: inherit;
  text-decoration: none;
}

body.ares-redesign img,
body.ares-terminal img,
body[data-ares-ui='terminal'] img,
.ares-shell img,
.ares-app img {
  display: block;
  max-width: 100%;
}

body.ares-redesign button,
body.ares-redesign input,
body.ares-redesign select,
body.ares-redesign textarea,
body.ares-terminal button,
body.ares-terminal input,
body.ares-terminal select,
body.ares-terminal textarea,
body[data-ares-ui='terminal'] button,
body[data-ares-ui='terminal'] input,
body[data-ares-ui='terminal'] select,
body[data-ares-ui='terminal'] textarea,
.ares-shell button,
.ares-shell input,
.ares-shell select,
.ares-shell textarea {
  font: inherit;
}

::selection {
  color: var(--ares-color-bg);
  background: var(--ares-color-gold-bright);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 1px solid var(--ares-color-gold-bright);
  outline-offset: 2px;
  box-shadow: var(--ares-shadow-focus);
}

.ares-skip-link,
.skip-link {
  position: fixed;
  top: -5rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.55rem 0.8rem;
  color: var(--ares-color-bg);
  background: var(--ares-color-gold-bright);
  border-radius: var(--ares-radius-button);
  font-family: var(--ares-font-mono);
  font-size: var(--ares-text-small);
}

.ares-skip-link:focus,
.skip-link:focus {
  top: 0.75rem;
}

.ares-display,
.ares-page-title h1,
.ares-page-title .title,
.page-hero h1,
.home-hero h1,
.hero-copy h1 {
  color: var(--ares-color-text);
  font-family: var(--ares-font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.ares-mono,
.mono,
.ares-score,
.ares-market-score,
.ares-confidence,
.ares-rank,
.ares-metadata,
.ares-label {
  font-family: var(--ares-font-mono);
}

.ares-muted,
.muted {
  color: var(--ares-color-text-muted) !important;
}

.ares-dim,
.dim {
  color: var(--ares-color-text-dim) !important;
}

.ares-positive,
.positive,
.u {
  color: var(--ares-color-positive) !important;
}

.ares-negative,
.negative,
.d {
  color: var(--ares-color-negative) !important;
}

.ares-gold,
.gold,
.g {
  color: var(--ares-color-gold-bright) !important;
}

.ares-confidence-color {
  color: var(--ares-color-confidence) !important;
}

.ares-risk-color {
  color: var(--ares-color-risk) !important;
}

.ares-shell-width,
.shell {
  width: min(100%, var(--ares-shell-max));
  margin-inline: auto;
}

.ares-surface-1 {
  background: var(--ares-color-surface-1);
}

.ares-surface-2 {
  background: var(--ares-color-surface-2);
}

.ares-surface-3 {
  background: var(--ares-color-surface-3);
}

.ares-section-label,
.eyebrow,
.section-kicker,
.sh-t,
.label,
.stat-lbl,
.live-label,
.panel-label,
.hero-label {
  color: var(--ares-color-text-muted);
  font-family: var(--ares-font-mono);
  font-size: var(--ares-text-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ares-screen-reader,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

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