/* Page basics. The colours, sizes and type are design tokens: css/tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  overflow: hidden;
  font-family: var(--font);
  font-size: var(--t-md);
  color: var(--c-text);
  background: linear-gradient(#3fa9f5, #bfe9ff);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#view {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

[hidden],
.hidden {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* calm motion: the system asks for it, or the settings do (ui/applySettings.js sets html.calm) */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) *,
  html:not(.motion-full) *::before,
  html:not(.motion-full) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.calm *,
html.calm *::before,
html.calm *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
