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

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px 64px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 64px;
}

.header-text {
  flex: 1;
  min-width: 0;
}

.profile-pic {
  display: block;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

h1 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.tagline {
  margin: 0;
  font-size: 0.9375rem;
  color: #555;
}

/* Experience */

h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 32px;
}

.role {
  margin-bottom: 36px;
}

.role:last-child {
  margin-bottom: 0;
}

.role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin-bottom: 6px;
}

.role-title {
  font-size: 0.9375rem;
  font-weight: 500;
}

.role-company {
  font-size: 0.9375rem;
  color: #555;
}

.role-company::before {
  content: "—";
  margin-right: 10px;
  color: #ccc;
}

.role-dates {
  font-size: 0.8125rem;
  color: #aaa;
  margin-left: auto;
}

.role p {
  margin: 0;
  font-size: 0.9375rem;
  color: #444;
}

.role p + p {
  margin-top: 12px;
}

.role a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.15s;
}

.role a:hover {
  border-color: #1a1a1a;
}

/* Footer */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

footer a {
  font-size: 0.875rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

footer a:hover {
  border-color: #1a1a1a;
}

/* Responsive */

@media (max-width: 600px) {
  main {
    padding: 48px 20px 48px;
  }

  header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .role-dates {
    margin-left: 0;
    flex-basis: 100%;
  }
}
