/*
 * Base styles
 *
 * Minimal global defaults aligned with the UEC visual direction. Keep broad
 * selectors conservative so Bricks controls remain predictable.
 */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--uec-green-400);
}

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

::selection {
  color: var(--uec-white);
  background: var(--uec-green-500);
}

.uec-bg-dark {
  color: var(--uec-white-soft);
  background: var(--uec-black);
}

.uec-bg-light {
  color: var(--uec-black);
  background: var(--uec-light-100);
}

.uec-text-muted {
  color: var(--uec-dark-200);
}

.uec-bg-light .uec-text-muted {
  color: var(--uec-dark-400);
}

.uec-accent {
  color: var(--uec-green-400);
}

.uec-bg-light .uec-accent {
  color: var(--uec-green-500);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--uec-black);
  background: var(--uec-white);
}

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

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