/* ===== CSS Reset / Normalize ===== */
/* Based on modern-reset approach — minimal, opinionated */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  min-height: 100vh;
  line-height: var(--leading-normal, 1.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Reset anchors */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Reset form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Remove built-in form typography styles */
input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: var(--color-text-muted, #64748B);
}

/* Remove default textarea resize */
textarea {
  resize: vertical;
}

/* Remove default table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Focus visible for keyboard only */
:focus-visible {
  outline: 2px solid var(--color-primary, #0066FF);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark, #0B0F1A);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-light, rgba(255,255,255,0.15));
  border-radius: var(--radius-full, 9999px);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary, #00CCFF);
}

/* Selection */
::selection {
  background: var(--color-primary, #0066FF);
  color: var(--color-on-primary, #FFFFFF);
}
