html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Tri-Font Editorial Typography */
.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.02em;
}

.micro-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Subtle Paper/Film Grain Overlay */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  z-index: 1;
}

.dark .film-grain {
  opacity: 0.035;
}

.coffee-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #E5DAC9;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px -12px rgba(62, 36, 22, 0.14);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .coffee-card {
  background: rgba(22, 17, 14, 0.86);
  border-color: rgba(212, 163, 115, 0.14);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.72);
}

.coffee-card-interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 90, 60, 0.45);
}

.dark .coffee-card-interactive:hover {
  border-color: rgba(212, 163, 115, 0.38);
}

/* Slow Image Zoom (600ms cubic-bezier) */
.coffee-card .product-img {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  will-change: transform;
}

.coffee-card:hover .product-img {
  transform: scale(1.05);
}

.btn-press {
  touch-action: manipulation;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.btn-press:active {
  transform: scale(0.97);
}

@keyframes microBounce {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.22); }
}

.animate-micro-bounce {
  animation: microBounce 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Word-by-word reveal for GSAP */
.gsap-reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.gsap-reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(140, 90, 60, 0.08) 25%, rgba(140, 90, 60, 0.18) 50%, rgba(140, 90, 60, 0.08) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile-First Touch & Typography Optimizations */
@media (max-width: 640px) {
  /* Prevent iOS Safari / Android auto-zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pb-safe {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

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