/* =============================================================================
   AlphaFlux base
   -----------------------------------------------------------------------------
   Reset and accessibility floor, shared by both surfaces. Tokens only.

   Load order: tokens.css, base.css, components.css.
   ========================================================================== */

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

* {
  margin: 0;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-inline-size: 100%;
}

/* Form controls do not inherit type by default, which is why every unstyled
   input in a hurried build looks like it came from a different site. */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--primary);
}

table {
  border-collapse: collapse;
}

/* Keyboard focus is one decision, made once. Pointer users do not see it,
   keyboard users always do, and it never animates. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Available to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Reduce; do not delete. Feedback that a control responded stays. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
