body {
  background-color: #f8f8f8;
  color: #282828;
  text-align: center;
  font-family: monospace;
  font-size: 18px;
}

a {
  color: #324b64;
}

a:focus-visible {
  outline: 2px solid #327de1;
  outline-offset: 3px;
}

.site-header {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

.site-header h1 {
  margin: 0;
  color: #324b64;
  font-size: clamp(40px, 10vw, 80px);
  font-weight: 600;
}

.profile-image {
  width: 180px;
  height: 240px;
  flex-shrink: 0;
  object-fit: cover;
  border: 4px solid #647d96;
  border-radius: 16px;
  box-shadow: 8px 8px 0 #c8e1fa;
}

.introduction p {
  margin: 0.5rem 0 0;
  color: #6b6b6b;
  font-size: 30px;
  font-weight: 500;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

section {
  margin-top: 3rem;
}

h2 {
  color: #324b64;
}

.period {
  color: #6b6b6b;
}

.cv-link {
  display: inline-block;
  border-bottom: 2px solid #647d96;
  padding: 0.25rem 0;
  text-decoration: none;
  font-weight: 600;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.cv-link::after {
  content: " →";
  color: #327de1;
}

.cv-link:hover {
  border-color: #327de1;
  transform: translateX(3px);
}

.cv-link:active {
  transform: translateX(0);
}

.contact-links {
  margin-top: 5%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links a {
  background-color: #f8f8f8;
  border-radius: 4px;
  box-shadow: 0 2px 0 #647d96;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.contact-links a:hover {
  color: #f8f8f8;
  background-color: #324b64;
  box-shadow: 0 4px 0 #327de1;
  transform: translateY(-2px);
}

.contact-links a:active {
  box-shadow: 0 2px 0 #647d96;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-link,
  .contact-links a {
    transition: none;
  }

  .cv-link:hover,
  .contact-links a:hover {
    transform: none;
  }
}
