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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: #222222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: large;
  color: #fff;
  line-height: 1.6;
  padding: 0 1rem;
  text-align: left;
}

p + p {
  margin-top: 1.5rem;
}

h1 {
  margin: 0.5rem 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.profile-image {
  border-radius: 50%;
  object-fit: cover;
  width: 200px;
  height: 200px;
  box-shadow: 0 2px 8px rgba(126, 126, 126, 0.4);
  margin: 1rem auto;
  display: block;
  max-width: 100%;
}

.about-section,
.contact-section {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  padding: 0 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

.contact-section {
  margin-top: 1.5rem;
  font-size: 0;
  text-align: center;
}

.contact-section a {
  margin: 1rem;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.15s;
  outline: none;
}

.contact-section a:focus,
.contact-section a:hover {
  transform: scale(1.1);
  border-radius: 50%;
}

.dotted-divider {
  border: none;
  border-top: 2px dotted #aaa;
  margin: 1.5rem auto;
}

.workplace-link {
  font-weight: bold;
  color: #e67a15;
  text-decoration: none;
  transition: color 0.2s;
}

.workplace-link:focus,
.workplace-link:hover {
  color: #ffb366;
  text-decoration: underline dotted;
}

.name-header {
  color: #e67a15;
}

.site-footer {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
  color: #aaa;
  font-size: 0.8rem;
}

/* Visually Hidden (Screen Reader Only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 700px) {
  .about-section,
  .contact-section {
    max-width: 100vw;
    padding: 0 0.5rem;
    font-size: 1rem;
  }
  .profile-image {
    width: 100px;
    height: 100px;
    min-width: 80px;
    min-height: 80px;
  }
  h1 {
    font-size: 1.1rem;
  }
  .contact-section a img {
    width: 44px;
    height: 44px;
  }
}
