/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

/* Import Google Web Fonts of high-contrast styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Dynamic Theme Variable Sets */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

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

/* Custom Display Typography Rules */
h1, h2, h3, .font-display {
  font-family: var(--font-display) !important;
}

code, pre, .font-mono {
  font-family: var(--font-mono) !important;
}

/* Fluid Micro Animations and Custom Transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Elegant Custom Styling for Input Range sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0; /* slate-200 */
  height: 6px;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb; /* blue-600 */
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s ease, background 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-webkit-slider-thumb:active {
  background: #1d4ed8; /* blue-700 */
  transform: scale(0.95);
}

/* Emerald variant range styling for web custom budget */
.accent-indigo-600::-webkit-slider-thumb {
  background: #4f46e5 !important; /* indigo-600 */
}
.accent-indigo-600::-webkit-slider-thumb:active {
  background: #4338ca !important; /* indigo-700 */
}

/* Custom Utilities */
.small-caps {
  font-variant: small-caps;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
