:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #555;
  --link: #0b57d0;
  --focus: #ffab00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #f4f4f4;
    --muted: #b5b5b5;
    --link: #8ab4f8;
    --focus: #ffd166;
  }
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font: 1rem/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

main.container {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  width: 100%;
}

.profile {
  display: flex;
  margin-bottom: 1rem;
  gap: 1rem;
}

.profile img {
  width: 130px;
  height: auto;
  object-fit: cover;
}

h1,
h2 {
  line-height: 1.25;
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
p {
  margin: 0.25rem 0;
}
ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

address {
  font-style: normal;
}
ul {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

section + section {
  margin-top: 1rem;
}

@media (max-width: 580px) {
  body {
    padding: 1rem;
  }
  .profile img {
    width: 96px;
    height: 96px;
  }
}
