:root {
  color-scheme: light dark;
  --background: #f8f9fa;
  --surface: #ffffff;
  --text: #212529;
  --muted: #495057;
  --border: #ced4da;
  --link: #0645ad;
  --focus: #0d6efd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111827;
    --surface: #1f2937;
    --text: #f3f4f6;
    --muted: #d1d5db;
    --border: #4b5563;
    --link: #93c5fd;
    --focus: #60a5fa;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  padding: 1.5rem 1rem;
  display: grid;
  place-items: center;
  color: var(--text);
  line-height: 1.5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
}

.profile-card {
  width: min(100%, 24rem);
  padding: 2rem 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 8%);
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
}

.profile-header {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}

h1 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 .5rem;
  font-weight: 600;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

.links {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.links li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.links li:last-child {
  border-bottom: 0;
}

.links a {
  padding: .25rem 0;
  color: var(--link);
  overflow-wrap: anywhere;
  text-underline-offset: .15em;
}

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

@media (max-width: 24rem) {
  .profile-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .links li {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }
}
