/* ============================================
   Jade — Base Styles (Typography & Body)
   ============================================ */

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
}

/* ── Headings ── */

.display-hero {
  font-size: var(--text-display-hero);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.display-section {
  font-size: var(--text-display-section);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

/* ── Body Text ── */

.body-text {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
}

.body-small {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

/* ── Captions & Labels ── */

.caption {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

.label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: 1.33;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Monospace (Wallet addresses, token amounts) ── */

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

/* ── Links ── */

a.link {
  color: var(--green-text);
  transition: color var(--duration-fast) var(--ease-out);
}

a.link:hover {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.link-muted {
  color: var(--text-secondary);
}

a.link-muted:hover {
  color: var(--text-primary);
}

/* ── Selection ── */

::selection {
  background: var(--green-muted);
  color: var(--text-primary);
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* ── Focus Visible ── */

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-radius: 4px;
}