/* The Atlas Protocol — Author Website Styles (Light Theme) */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --primary: #1e1b4b;
  --accent: #b45309;
  --accent-light: #d97706;
  --text: #0c0a09;
  --muted: #57534e;
  --border: #e7e5e4;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Selection */
::selection {
  background: rgba(180, 83, 9, 0.15);
  color: var(--text);
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d6d3d1;
}

/* Typography enhancement */
h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Location cards — subtle cinematic lift */
.location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.location-card:hover::before {
  opacity: 1;
}

/* Utility: prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Ensure images are responsive by default */
img {
  max-width: 100%;
  height: auto;
}

/* Button and link cursor consistency */
a, button {
  cursor: pointer;
}

/* Form input autofill fix for light theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset;
  transition: background-color 5000s ease-in-out 0s;
}
