:root {
  color-scheme: dark;
  --page-bg: hsl(0, 0%, 8%);
  --card-bg: hsl(0, 0%, 12%);
  --button-bg: hsl(0, 0%, 20%);
  --accent: hsl(75, 94%, 57%);
  --text: hsl(0, 0%, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background-color: var(--page-bg);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
}

.card {
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

.avatar {
  border-radius: 50%;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.location {
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
}

.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.social-links a {
  background-color: var(--button-bg);
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

@media (hover: hover) {
  .social-links a:hover {
    background-color: var(--accent);
    color: var(--page-bg);
  }
}

.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 27rem) {
  .card {
    padding: 2.5rem;
  }
}
