/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Hero: two-column layout (same width as content so title/social align with paragraph) */
.hero {
  padding: 2rem 1.5rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.hero-left {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2.5rem;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  margin-right: 3.5rem;
}

.name {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 7.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-links a:hover,
.social-links a:focus {
  opacity: 1;
  text-decoration: underline;
}

.social-links .icon {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
  .profile-photo {
    width: 240px;
    height: 240px;
  }
}

/* Narrow/tall screens: center headshot when layout stacks */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-left {
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-left .social-links {
    margin-bottom: 0;
  }

  .hero-right {
    justify-content: center;
    margin-right: 0;
    margin-top: -7rem;
    padding-top: 0;
  }

  .hero-right .profile-photo {
    display: block;
  }
}

/* Main content */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.content p {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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