/* CSS Reset - Normalize and create consistent base */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg-page);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin: 0;
}

/* Paragraphs */
p {
  margin: 0;
}

/* Lists */
ul,
ol,
dl {
  list-style: none;
}

li {
  list-style: none;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

/* Forms */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

textarea {
  resize: vertical;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 0;
}

/* Code */
code,
pre {
  font-family: var(--font-family-mono);
}

/* Blockquote */
blockquote {
  margin: 0;
}

/* HR */
hr {
  height: 1px;
  border: none;
  background-color: var(--color-text-secondary);
  opacity: 0.2;
  margin: 0;
}

/* Hidden elements */
[hidden] {
  display: none !important;
}

/* Utility: visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
