/* main.css - shared styles for Find A Voice */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Space+Grotesk:wght@600&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  z-index: 0;
  filter: brightness(0.5);
}

.overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  z-index: 1;
}

.overlay img {
  width: 150px;
  margin-bottom: 1rem;
}

.overlay h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin: 0.5rem 0;
  text-align: center;
}

.overlay p {
  max-width: 600px;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.overlay p a {
  color: #ccc;
  text-decoration: underline;
}

.overlay p a:hover {
  color: #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 1.05rem;
}

nav a:hover {
  color: #fff;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  transition: background 0.3s;
  text-align: left;
}

.card p,
.card a,
.card strong {
  text-align: left;
  align-self: stretch;
}

.card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card a {
  color: #9cf;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
  background-color: #0d0d0d;
  z-index: 1;
  line-height: 1.6;
  margin: 0;
}

.site-footer a {
  color: #9cf;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(255,255,255,0.15);
  color: inherit;
}

@media (max-width: 768px) {
  .overlay {
    padding: 1rem;
  }

  .overlay img {
    width: 100px;
  }

  .overlay h1 {
    font-size: 1.5rem;
  }

  .overlay p {
    font-size: 0.95rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .card {
    aspect-ratio: unset;
  }
}

@media (min-width: 768px) {
  .card {
    aspect-ratio: 4 / 3;
  }
}