/* =========================================================
   Reset & base normalization
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "kern", "liga", "calt";
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }
img, video, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hide the default focus ring on mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hi); }

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Better defaults for text inputs */
input, textarea, select {
  width: 100%;
}
input::placeholder, textarea::placeholder {
  color: var(--text-faint);
}
