:root {
  color-scheme: light;
  --text: #212529;
  --muted: #212529;
  --link: #0d6efd;
  --link-hover: #0a58ca;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--page);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.profile {
  width: min(100%, 1140px);
  display: grid;
  gap: 1.5rem;
}

.portrait {
  text-align: center;
}

.portrait img {
  display: block;
  width: min(100%, 978px);
  height: auto;
  border-radius: 2rem;
}

.content {
  color: var(--muted);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 500;
  color: #208ecb;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
}

.social-link:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.25);
  outline-offset: 4px;
}

.social-link img {
  display: block;
  width: 30px;
  height: 30px;
}

.links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.45;
}

.links img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 4px;
}

footer {
  margin-top: -0.5rem;
  color: #6c757d;
  font-size: 1rem;
  text-align: left;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
}

@media (min-width: 576px) {
  body {
    align-items: center;
  }

  .profile {
    grid-template-columns: 1fr 2fr;
  }

  footer {
    grid-column: 1 / -1;
  }
}
