:root {
  --bg: #1f2a30;
  --surface: #27343b;
  --text: #e6ecef;
  --muted: #a9b7bf;
  --accent: #7fb2a6;
  --border: #3a4a52;
  --max-width: 760px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Header / intro */
.profile {
  text-align: center;
  padding-top: 1rem;
}

.profile__photo {
  width: 160px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1.25rem;
}

.profile__name {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.profile__credential {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.contact li {
  margin: 0.15rem 0;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover,
.contact a:focus {
  text-decoration: underline;
}

/* Divider */
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Bio content */
.bio p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

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

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Larger screens */
@media (min-width: 640px) {
  .wrapper {
    padding: 2.5rem 2rem 4rem;
  }

  .profile__photo {
    width: 190px;
  }

  .profile__name {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
