/* Ground Layer Color Palette */
:root {
  --ground-primary: #D4A373;
  --ground-secondary: #F2E8CF;
  --ground-accent: #A0785A;
  --ground-light: #FEFAE0;
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --text-blend: rgba(168, 120, 90, 0.7);
  --text-subtle: rgba(168, 120, 90, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--ground-light) 0%, var(--ground-secondary) 100%);
  color: var(--ground-accent);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ground-layer {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

.metrics-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 800px; /* Reasonable max width for readability */
  margin: 0 auto;
  text-align: center;
}

.timeline-wrapper {
  width: 100%;
  padding: 0;
  margin: 0;
  /* Timeline takes the top section */
}

/* Responsive Design */

@media (min-width: 768px) {
  .metrics-display {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    gap: 2rem;
    max-width: 1000px; /* Slightly wider on larger screens */
  }
}

@media (min-width: 1024px) {
  .metrics-display {
    justify-content: space-evenly;
    gap: 3rem;
    max-width: 1200px; /* Wider on desktop */
  }
}

@media (max-width: 600px) {
  .metrics-display {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
}

/* Location display */
.location-display {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-blend);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.location-display.visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .location-display {
    bottom: 1.5rem;
    font-size: 0.75rem;
  }
}

/* High contrast mode and reduced motion are now handled in ground-layer.css */
