/* Reset + base typography */

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

html {
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background: var(--color-accent-muted);
  color: var(--color-text-primary);
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Buttons reset */
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Inputs reset */
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* List reset */
ul,
ol {
  list-style: none;
}

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

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
}
