/* Custom styles for Smith Street Brewery */

/* Base reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(27, 67, 50, 0.15);
  color: #1B4332;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .float-card-1,
  .float-card-2,
  .float-card-3 {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift on images */
aspect-ratio {
  overflow: hidden;
}
