/* ============================================================
   Reset and base element styles.
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-1);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--bg-1) 0%, var(--bg-0) 70%) fixed,
    var(--bg-0);
  overflow-x: hidden;

  /* dvh with a vh fallback: older engines ignore the second line. */
  min-height: 100vh;
  min-height: 100dvh;

  transition: background var(--speed-slow) ease, color var(--speed-slow) ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(var(--accent-b-rgb), 0.4);
}

:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Slim, theme-aware scrollbars (WebKit + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

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

.noscript {
  padding: 24px;
  text-align: center;
  color: var(--text-2);
}