/**
 * RankCrackers Next — CSS Reset & Baseline Protection
 * Conforming to P1-04 Accessibility & Zoom Standards
 */

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

html {
  font-family: var(--rc-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--rc-text-primary);
  background-color: var(--rc-canvas-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: only light;
}

body {
  min-height: 100vh;
  background-color: var(--rc-canvas-bg);
  color: var(--rc-text-primary);
  /* Do not clip horizontal overflow globally to permit 200% zoom pan */
  overflow-x: visible;
}

/* Strict Brand Protection: prevent browser / OS auto-darkening or filters on logo */
.brand-mark,
.brand-mark img,
.brand-mark svg {
  forced-color-adjust: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

@media (forced-colors: active) {
  .brand-mark,
  .brand-mark img,
  .brand-mark svg {
    forced-color-adjust: none !important;
  }
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--rc-gold-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility: High-contrast focus outline for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--rc-gold-accent);
  outline-offset: 2px;
}

/* Reduced motion preference */
@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;
  }
}
