html, body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    height: 100%;
}

body {
  min-height: 100vh;
  background-color: hsl(0, 0%, 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 1rem;
  box-sizing: border-box;
}

h1 {
    margin: 0 auto;
}

.card h2 {
    margin-bottom: -0.3125rem; 
}

.card {
    width: 20.3125rem;           
    background-color: hsl(0, 0%, 12%);
    border-radius: 0.625rem;     
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    overflow: hidden;
    padding: 1.25rem;            
}

.card img {
    width: 4.6875rem;            
    height: 4.6875rem;           
    border-radius: 50%;
    margin-top: 0.625rem;        
}

.location {
    font-size: 0.875rem;        
    color: hsl(75, 94%, 57%);
    font-weight: 700;
    margin-bottom: 0.625rem;     
}

.about {
    font-size: 0.75rem;          
    font-weight: 400;
}

.link {
    width: 85%;
    padding: 0.75rem;            
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: hsl(0, 0%, 20%);
    border-radius: 0.625rem;     
    margin: 0.5rem 0;           
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: hsl(0, 0%, 100%);
    font-size: 1rem;            
}

.link:hover,
.link:focus {
    background-color: hsl(75, 94%, 57%);
    color: black;
    cursor: pointer;
    transform: scale(1.05);
}

.attribution {
    font-size: 0.6875rem;       
    text-align: center;
}

.attribution a {
    color: hsl(75, 94%, 57%);
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

/* Responsive layout tweaks for larger screens */
@media (min-width: 768px) {
  .card {
    padding: 1.25rem;
  }

  .link {
    font-size: 1.125rem;
  }

  .location {
    font-size: 1rem;       
  }
  .about {
    font-size: 0.8125rem;
  }

  .attribution {
    font-size: 0.75rem;
  }
}

/* Ensure body fills the entire viewport */
html, body {
  height: 100%;
  width: 100%;
}
