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

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

body {
  background-color: var(--c-bg-1);
  color: var(--c-text-0);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 70% 45% at 10% -8%,  rgba(37,99,235,0.16), transparent),
    radial-gradient(ellipse 55% 38% at 92% -6%,  rgba(230,57,70,0.12), transparent),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(124,58,237,0.08), transparent);
  background-attachment: fixed;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { appearance: none; }

textarea { resize: vertical; }

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

ul, ol { list-style: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--c-blue-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Selection */
::selection { background: rgba(37,99,235,0.32); color: var(--c-text-0); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-border-3); }

/* Utility */
.is-hidden    { display: none !important; }
.collapsible  { overflow: hidden; transition: height var(--t-smooth); }
.collapsible[hidden] { height: 0 !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
