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

/* === BASE === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--text-1);
}

p {
  line-height: var(--lh-relaxed);
  color: var(--text-2);
}

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

/* === MEDIA === */
img,
svg {
  display: block;
  max-width: 100%;
}

/* === LISTS === */
ul,
ol {
  list-style: none;
}

/* === FORMS === */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

input,
select,
textarea {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-ring);
}

/* === FOCUS === */
:where(button, input, textarea, select, a):focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring);
  border-radius: var(--radius-sm);
}

/* === UTILITY === */
.hidden {
  display: none !important;
}
