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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent);
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Typography utilities */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }
.font-ui      { font-family: var(--font-ui); }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-family: var(--font-ui);
}

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

/* Focus visible */
:focus-visible {
  outline: 1px solid rgba(0, 212, 255, 0.55);
  outline-offset: 2px;
}
