/*
 * Base document styling, ported from the reference build's `@layer base`.
 * Applies site-wide so every page starts from the same typographic floor.
 */

/*
 * Border-box everywhere. The parent theme sets this too, but the design system
 * depends on padding sitting inside declared widths, so it is pinned here
 * rather than inherited.
 */
.rq-page,
.rq-page *,
.rq-page *::before,
.rq-page *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--rq-background);
  color: var(--rq-foreground);
  font-family: var(--rq-font-body);
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--rq-font-heading);
  letter-spacing: 0;
}

::selection {
  background: var(--rq-primary);
  color: var(--rq-primary-foreground);
}

@media (prefers-reduced-motion: no-preference) {
  .rq-reveal-up {
    animation: rq-reveal-up 700ms ease-out both;
  }

  @keyframes rq-reveal-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
