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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: var(--color-accent-soft);
  color-scheme: only light;
}

:root { scrollbar-color: var(--color-border-strong) transparent; }

:where(body *) { scrollbar-width: thin; }

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

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

input, textarea, select {
  font-size: max(1em, var(--text-input-min));
}

button { background: none; border: none; cursor: pointer; }

[hidden] { display: none !important; }

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

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

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

::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}

::selection { background: var(--color-accent-ring); }
