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

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --grid-bg: #f5f5f5;
  --profile-gradient-start: #e0e0e0;
  --profile-gradient-end: #c0c0c0;
  --button-bg: #000000;
  --button-text: #ffffff;
  --button-hover: #333333;
  --bio-color: #555555;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #8a8a8a;
    --border-color: #222222;
    --grid-bg: #111111;
    --profile-gradient-start: #333333;
    --profile-gradient-end: #555555;
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-hover: #dddddd;
    --bio-color: #cccccc;
  }
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

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