/* ============ base.css — Robinhood Chain Dashboard ============ */

:root {
  /* palette — brutalist terminal · orange accent (matches / homepage) */
  --bg:        #0a0a0a;
  --bg-2:      #0d0d0d;
  --panel:     #111111;
  --panel-2:   #151515;
  --panel-3:   #1a1a1a;
  --ink:       #f4f4f0;
  --ink-dim:   #9a9a94;
  --ink-mute:  #6a6a64;
  --ink-quiet: #3a3a34;
  --line:      #1e1e1e;
  --line-2:    #262626;
  --line-3:    #333333;

  /* Orange accent — one primary */
  --hood:      #ff5c1a;
  --hood-dim:  #b8420f;
  --hood-glow: rgba(255, 92, 26, 0.15);
  --hood-hair: rgba(255, 92, 26, 0.08);

  /* semantic */
  --up:        #4ade80;
  --down:      #f43f5e;
  --warn:      #facc15;
  --whale:     #f43f5e;   /* whale-flagged traffic */
  --herd:      #4ade80;   /* herd-flagged traffic */

  /* typography — Space Grotesk display + JetBrains Mono */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* scale */
  --text-xs:   11px;
  --text-sm:   12.5px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  44px;
  --text-hero: clamp(3.2rem, 2rem + 5.5vw, 6.5rem);

  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --nav-h: 56px;
  --shadow-panel: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.4);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 92, 26, 0.05), transparent 70%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 92, 26, 0.03), transparent 60%);
  z-index: 0;
}

a { color: var(--hood); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.serif { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; font-style: normal; }
.dim { color: var(--ink-dim); }
.mute { color: var(--ink-mute); }
.tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }
.whale { color: var(--whale); }
.herd { color: var(--herd); }

::selection { background: var(--hood); color: #0a0a0a; }

/* italic overrides — kill italics globally on explorer */
.serif em, em.serif,
.pos__title em,
.herd-panel__lead em,
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--hood); font-weight: inherit; }

/* headings should use Space Grotesk in this new theme */
h1, h2, h3, h4, h5, h6,
.pos__title,
.herd-panel__lead {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
