/**
 * Atlas Tours - Base Styles
 * Typography, reset, and utility classes
 */

/* ============================================
 * Base Typography
 * ============================================ */

body {
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  color: var(--color-stone-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
}

/* ============================================
 * Selection Styling
 * ============================================ */

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

/* ============================================
 * Focus States
 * ============================================ */

:focus-visible {
  outline: 2px solid var(--color-orange-500);
  outline-offset: 2px;
}

/* ============================================
 * Screen Reader Only (Accessibility)
 * ============================================ */

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

.sr-only:focus,
.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: revert;
  margin: revert;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============================================
 * Reduced Motion Preferences
 * ============================================ */

@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;
  }
}

/* ============================================
 * Link Base Styles
 * ============================================ */

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--color-orange-300);
}

/* ============================================
 * Image Base Styles
 * ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
 * Button Reset
 * ============================================ */

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--color-orange-500);
  outline-offset: 2px;
}
