/**
 * AGautomations - Base Global Styles
 * Typography, links, and accessibility support
 */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   BODY STYLES
   ============================================ */

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ============================================
   HEADINGS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-gold);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

h5, h6 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/**
 * Respect user's motion preferences
 * WCAG 2.1 Level AA compliance for vestibular disorders
 */
@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;
  }
}
