/* ==========================================================================
   Kindle Hope Fund — Design System & Custom Styles
   Anti-Slop Modern UI/UX Architecture
   ========================================================================== */

:root {
  --font-sans: 'Switzer', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Low-chroma Stone & Charcoal Palette */
  --color-ground: #FAF9F6;
  --color-ground-alt: #F3F1EC;
  --color-ink: #1C1917;
  --color-ink-muted: #57534E;
  
  --color-emerald-deep: #064E3B;
  --color-emerald: #15803D;
  --color-amber: #D97706;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-ground);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-ground);
  padding-bottom: 90px;
}

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

/* Guarantee no text is under 13px */
.text-xs, .text-sm {
  font-size: 14px !important;
}

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

.font-editorial {
  font-family: var(--font-serif);
}

/* Keyframe entrance animations for motion layer */
@keyframes elementEntrance {
  0% {
    opacity: 0.85;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-item {
  animation: elementEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Shutter Image reveal */
.shutter-image-wrapper {
  overflow: hidden;
  position: relative;
}

.shutter-image {
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shutter-image-wrapper:hover .shutter-image {
  transform: scale(1);
}

/* WebYodas Agency Signature Link Style */
.webyodas-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1C1917;
  color: #FBBF24 !important;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 14px !important;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.webyodas-link:hover {
  transform: translateY(-1px);
  color: #FEF3C7 !important;
}

/* Active tab button */
.sim-tab-active {
  background-color: #064E3B !important;
  color: #FFFFFF !important;
}

/* Slider custom styling */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #E7E5E4;
  border-radius: 4px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #15803D;
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

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