/* ==========================================================================
   BASE.CSS
   Global resets and default typography. Nothing page-specific goes here —
   only rules that should apply to EVERY screen in the app.
   ========================================================================== */

/* Reset: remove default browser spacing so every element starts from zero
   and spacing is fully controlled by our own --space-* tokens. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Smooth scrolling for in-page anchors (e.g. landing page nav links) */
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Prevents horizontal scroll glitches on mobile from any overflow */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Data / IDs / addresses use monospace everywhere in the app —
   this is intentional and part of the visual identity, don't remove it. */
.mono {
  font-family: var(--font-mono);
}

/* Respect users who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible keyboard focus state — accessibility floor, never remove this
   without replacing it with something equally visible. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}