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

html {
  font-size: 16px;
}

body {
  font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
}

main {
  max-width: 960px;
  width: 100%;
}

.profile {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.role {
  font-size: 1rem;
  color: #777;
  margin-bottom: 2rem;
}

.bio p {
  font-size: 1rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

.role a {
  color: #777;
  text-decoration: underline;
  text-decoration-color: #ddd;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.role a:hover {
  text-decoration-color: #777;
}

.bio a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bio a:hover {
  color: #111;
}

.links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #888;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.links a:hover {
  color: #111;
}

.links a svg {
  flex-shrink: 0;
}

.photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.updated {
  font-size: 0.75rem;
  color: #ccc;
}

@media (max-width: 600px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    order: -1;
  }

  .photo {
    width: 240px;
    height: auto;
    margin: 0 auto;
  }

  body {
    align-items: flex-start;
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }
}
