/* ===================================
   BASE STYLES
   =================================== */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--brand-cream);
  line-height: 1.6;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--mabl-green);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--mabl-gold);
  transform: translateX(2px);
}

a:active {
  color: var(--mabl-gold-dark);
  transform: translateX(0);
}

/* Subtle underline animation for links */
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mabl-gold);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:focus-visible {
  outline: 3px solid rgba(218, 165, 32, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

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

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