/*
 * Element defaults shared by every APMly UI. Canonical source:
 * packages/apmly-theme/base.css. App stylesheets build on top of this.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--apmly-site);
  color: var(--apmly-ink);
  font-family: var(--apmly-font-sans);
  font-feature-settings: 'ss01' off;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

code,
kbd,
pre,
samp {
  font-family: var(--apmly-font-mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(10, 10, 10, 0.12);
}

:root[data-theme='dark'] ::selection {
  background: rgba(255, 255, 255, 0.2);
}

:focus-visible {
  outline: 2px solid var(--apmly-ring);
  outline-offset: 2px;
}

/* Dotted grid backdrop used behind hero and sign-in areas. */
.apmly-dots {
  background-image: radial-gradient(var(--apmly-dots) 1px, transparent 1px);
  background-size: 22px 22px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
