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

html {
  min-width: 320px;
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% -10%, rgba(79, 70, 229, 0.045), transparent 26rem),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-overlay { overflow: hidden; }

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

button { color: inherit; }

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--color-primary); }

::selection {
  color: var(--color-text);
  background: rgba(79, 70, 229, 0.16);
}

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--color-primary-ring);
  outline-offset: 2px;
}

input::placeholder, textarea::placeholder { color: var(--color-subtle); }

input:disabled, select:disabled, textarea:disabled {
  color: var(--color-muted);
  cursor: not-allowed;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden { display: none !important; }
.muted { color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
