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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background-color: var(--surface-alt);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

code {
  background-color: var(--surface-alt);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
