.main-header .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;
}

.main-header {
  border-bottom: 1px solid var(--border);
}

.main-header nav {
  padding: 1.1rem 0;
}

.main-header nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 32px;
}

.main-header .nav-left {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  color: #000000;
}

.main-header .nav-left .name {
  color: #000000;
  font-weight: 400;
  text-decoration: none;
}

.main-header .nav-left .name:hover {
  text-decoration: none;
}

.role-letters {
  display: inline;
}

.role-space {
  white-space: pre;
}

.role-letter {
  cursor: pointer;
  transition: color 0.2s ease;
}

.role-letter.revealed {
  transition: color 0.35s ease;
}

.main-header .nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.main-header .resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: transparent;
  color: #1a1a1a;
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.main-header .resume-button:hover {
  color: #007A9E;
  border-color: #007A9E;
  background: rgba(0, 159, 205, 0.12);
  text-decoration: none;
}

.main-header .resume-button:focus {
  text-decoration: none;
}

.main-header .resume-button:focus {
  outline: none;
}

.main-header .resume-button:focus-visible {
  color: #007A9E;
  border-color: #007A9E;
  background: rgba(0, 159, 205, 0.12);
  outline: none;
  text-decoration: none;
}

.main-header .resume-button:active {
  color: #006687;
  border-color: #006687;
  background: rgba(0, 159, 205, 0.18);
  text-decoration: none;
}

.main-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

.main-header .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: center;
}

@media (max-width: 768px) {
  .main-header nav .container {
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.75rem;
  }

  .main-header .nav-right {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .main-header .nav-left {
    order: 1;
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
  }

  .main-header .resume-button {
    font-size: 14px;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .main-header nav .container {
    padding: 0 1.25rem;
  }
}
