/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

/* Modern CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  /* Mobile browser theme color support */
  background-color: #0a0a0f;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  position: relative;
  /* Ensure mobile browser UI matches theme */
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove default button styles */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Improve form defaults */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
