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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-muted);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  body {
    background: var(--bg);
  }

  #app {
    max-width: none;
  }
}

.screen {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-md);
  padding-bottom: calc(var(--footer-height) + var(--safe-bottom) + var(--space-md));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
}

.screen.no-footer {
  padding-bottom: var(--space-md);
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

p {
  line-height: 1.5;
  color: var(--text);
}

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