/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  user-select: auto;
  -webkit-user-select: auto;
}

input, textarea, button, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

input, textarea, [contenteditable], [contenteditable="true"], .selectable, .story-wysiwyg-editor, .story-expandable-content, .story-content-input, .text-input-field {
  user-select: text !important;
  -webkit-user-select: text !important;
  -webkit-touch-callout: default !important;
  touch-action: auto !important;
}

button, .btn, .icon-btn, .bottom-nav, .nav-item, [role="button"], [role="tab"] {
  user-select: none;
  -webkit-user-select: none;
}

button {
  cursor: pointer;
}

button, a, input, textarea, select, [tabindex]:not([tabindex="-1"]) {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

@media (max-width: 340px) {
  html, body { font-size: 15px; }
}

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

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

ul, ol {
  list-style: none;
}
