/* Small, site-wide finish pass. Intentionally inherits each page's original design. */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin-top: max(0px, env(safe-area-inset-top));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  height: auto;
}

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

a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease;
}

a:hover, button:hover, [role="button"]:hover {
  filter: brightness(1.08);
}

a:active, button:active, [role="button"]:active {
  transform: translateY(1px);
}

:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: rgba(124, 58, 237, 0.72);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.72) rgba(5, 7, 15, 0.75);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(5, 7, 15, 0.75); }
::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.72);
  border: 2px solid rgba(5, 7, 15, 0.75);
  border-radius: 999px;
}

@media (max-width: 720px) {
  button, a, [role="button"] { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button, [role="button"] { transition: none; }
}
