/* back.zone design system: base layer. Needs bz.tokens.css and bz.fonts.css loaded before it. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bz-surface-desk);
  color: var(--bz-ink-body);
  font-family: var(--bz-font-sans);
  font-size: var(--bz-text-body-size);
  line-height: var(--bz-text-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--bz-accent-link);
  text-decoration: none;
}

a:hover {
  color: var(--bz-accent-link-hover);
}

/* Keyboard focus only; the ring is an outline, so it never shifts the layout. */
:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bz-focus-color);
  outline-offset: 2px;
}

/* Reduced motion: durations go to zero, only opacity transitions remain meaningful. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography helpers: one class per step of the type scale that pages use directly. */
.bz-label {
  font-size: var(--bz-text-label-size);
  font-weight: var(--bz-text-label-weight);
  line-height: var(--bz-text-label-lh);
  letter-spacing: var(--bz-text-label-ls);
  text-transform: uppercase;
  color: var(--bz-ink-label);
}

.bz-mono {
  font-family: var(--bz-font-mono);
}

.bz-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Icons: Material Symbols Rounded, written as ligature text. FILL 0 by default, .bz-icon--filled for FILL 1. */
.bz-icon {
  display: inline-block;
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: var(--bz-icon-md);
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.bz-icon--filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
