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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

html {
  /* App shell: the page never scrolls; inner regions own their scroll */
  height: 100%;
  overscroll-behavior: none;
  /* App-like touch: panning only — no pinch zoom, no double-tap zoom,
     no grey tap flash */
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--color-text);
  text-decoration: underline;
}

a:hover {
  color: var(--color-text-secondary);
}

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