/* ==========================================================================
   BE | Belkar Business Engineering — Modern CSS Reset & Accessibility
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--be-nav-height) + var(--be-space-lg));
  background-color: var(--be-canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--be-canvas);
  color: var(--be-text-secondary);
  font-family: var(--be-font-body);
  font-size: var(--be-text-prose);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: var(--be-accent-muted);
  color: var(--be-text-primary);
}

/* Keyboard Focus Visibility */
:focus-visible {
  outline: 2px solid var(--be-accent);
  outline-offset: 3px;
}

/* Skip Link for Keyboard & Screen Reader Users */
.skip-link {
  position: fixed;
  inset-block-start: var(--be-space-md);
  inset-inline-start: var(--be-space-md);
  z-index: 2000;
  padding: var(--be-space-sm) var(--be-space-lg);
  background: var(--be-accent);
  color: var(--be-accent-ink);
  font-family: var(--be-font-body);
  font-size: var(--be-text-body);
  font-weight: 600;
  border-radius: var(--be-radius-md);
  transform: translateY(-200%);
  transition: transform 0.15s var(--be-ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Inert state (modal / mobile drawer open) */
[inert],
[inert] * {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

