:root {
  --color-bg: #eeece8;
  --color-overlay: rgba(250, 249, 246, 0.6);
  --color-text: #1c1c1a;
  --color-muted: #55534d;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
}

body::before {
  z-index: -2;
  background-image: url("img/optimized/background-small.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 640px) {
  body::before {
    background-image: url("img/optimized/background.jpg");
  }
}

body::after {
  z-index: -1;
  background-color: var(--color-overlay);
}

.card {
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1.25rem;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role {
  margin: 0.4rem 0 2rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.links li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.links span {
  color: var(--color-muted);
}

.links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem;
}

.links a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-text);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .avatar {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.15rem;
  }

  .links a {
    font-size: 1rem;
  }
}
